diff --git a/src/core/partitionrole.cpp b/src/core/partitionrole.cpp index 2805ce4..105ca16 100644 --- a/src/core/partitionrole.cpp +++ b/src/core/partitionrole.cpp @@ -1,6 +1,7 @@ /************************************************************************* * Copyright (C) 2008 by Volker Lanz * * Copyright (C) 2016 by Andrius Štikonas * + * Copyright (C) 2016 by Teo Mrnjavac * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * @@ -36,5 +37,8 @@ QString PartitionRole::toString() const if (roles() & Primary) return i18nc("@item partition role", "primary"); + if (roles() & LUKS) + return i18nc("@item partition role", "LUKS"); + return i18nc("@item partition role", "none"); } diff --git a/src/core/partitionrole.h b/src/core/partitionrole.h index 1834148..90ef7cb 100644 --- a/src/core/partitionrole.h +++ b/src/core/partitionrole.h @@ -1,5 +1,6 @@ /************************************************************************* * Copyright (C) 2008 by Volker Lanz * + * Copyright (C) 2016 by Teo Mrnjavac * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * @@ -41,7 +42,7 @@ public: Extended = 2, /**< Extended */ Logical = 4, /**< Logical inside an extended */ Unallocated = 8, /**< No real Partition, just unallocated space */ - LUKS = 16, + LUKS = 16, /**< Encrypted partition with LUKS key management */ Any = 255 /**< In case we're looking for a Partition with a PartitionRole, any will do */ }; diff --git a/src/fs/luks.cpp b/src/fs/luks.cpp index 1e99b8d..676f349 100644 --- a/src/fs/luks.cpp +++ b/src/fs/luks.cpp @@ -1,7 +1,7 @@ /************************************************************************* * Copyright (C) 2012 by Volker Lanz * * Copyright (C) 2013 by Andrius Štikonas * - * Copyright (C) 2015 by Teo Mrnjavac * + * Copyright (C) 2015-2016 by Teo Mrnjavac * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * diff --git a/src/fs/luks.h b/src/fs/luks.h index 478c7ef..45c48c2 100644 --- a/src/fs/luks.h +++ b/src/fs/luks.h @@ -1,7 +1,7 @@ /************************************************************************* * Copyright (C) 2012 by Volker Lanz * * Copyright (C) 2013 by Andrius Štikonas * - * Copyright (C) 2015 by Teo Mrnjavac * + * Copyright (C) 2015-2016 by Teo Mrnjavac * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as *