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
This commit is contained in:
Mike Fleetwood 2016-11-21 21:42:30 +00:00 committed by Curtis Gedak
parent 36804b9634
commit f1e3d42b56
1 changed files with 2 additions and 1 deletions

View File

@ -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