[gparted] Prevent deletion of open LUKS mappings (#774818)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Prevent deletion of open LUKS mappings (#774818)
- Date: Sat, 14 Jan 2017 15:54:41 +0000 (UTC)
commit f1e3d42b5604d93dc954f5f218ef489649f11284
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Mon Nov 21 21:42:30 2016 +0000
Prevent deletion of open LUKS mappings (#774818)
At least until closing LUKS mappings is supported.
Bug 774818 - Implement LUKS read-write actions NOT requiring a
passphrase
src/Win_GParted.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index e261947..e9c03e2 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1245,7 +1245,8 @@ void Win_GParted::set_valid_operations()
allow_format( true ) ;
// only allow deletion of partitions within a partition table
- if ( ! selected_partition_ptr->whole_device )
+ // Also exclude open LUKS mappings until open/close is supported
+ if ( ! selected_partition_ptr->whole_device & ! selected_partition_ptr->busy )
allow_delete( true );
// Resizing/moving always requires the ability to update the partition
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]