From f1e3d42b5604d93dc954f5f218ef489649f11284 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Mon, 21 Nov 2016 21:42:30 +0000 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index e261947e..e9c03e2f 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