[gparted] Populate active LUKS mountpoints with /dev/mapper/NAME entry (#760080)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Populate active LUKS mountpoints with /dev/mapper/NAME entry (#760080)
- Date: Sat, 30 Jan 2016 17:42:05 +0000 (UTC)
commit e9b893b4cbce9206c8aaee99aac9bc3dccaeff27
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Sun Dec 27 16:47:38 2015 +0000
Populate active LUKS mountpoints with /dev/mapper/NAME entry (#760080)
Populate the canonical device name, /dev/mapper/NAME, used to access the
encrypted file system into the mount points of the Partition object.
This is the equivalent of what is already done for the Volume Group name
and SWRaid Array device.
This does get displayed in the Mount Point column in the main window,
which isn't wanted. However the data will be needed when displaying
details of the encryption mapping in the Information dialog. Both will
be dealt with in following commits.
Bug 760080 - Implement read-only LUKS support
src/GParted_Core.cc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 5591fe0..ca936cd 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -1785,6 +1785,12 @@ void GParted_Core::set_mountpoints( Partition & partition )
if ( ! array_path.empty() )
partition.add_mountpoint( array_path );
}
+ else if ( partition.filesystem == FS_LUKS )
+ {
+ LUKS_Mapping mapping = LUKS_Info::get_cache_entry( partition.get_path() );
+ if ( ! mapping.name.empty() )
+ partition.add_mountpoint( DEV_MAPPER_PATH + mapping.name );
+ }
// Swap spaces don't have mount points so don't bother trying to add them.
else if ( supported_filesystem( partition.filesystem ) && partition.filesystem != FS_LINUX_SWAP )
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]