Disable manipulation operations on "none" partition tables (#741430)

At this time we are providing read-only support for file systems on
whole disk devices.  Also all manipulation operations fail at the
calibrate step with libparted error "unrecognised disk label", and
manage flags is for real partitions only.

Bug 741430 - GParted cannot recognise LVM signature on unpartitioned
             drive
This commit is contained in:
Mike Fleetwood 2014-12-28 13:18:58 +00:00 committed by Curtis Gedak
parent cbf8bd741d
commit dd049e8b4b
1 changed files with 6 additions and 1 deletions

View File

@ -974,7 +974,12 @@ void Win_GParted::set_valid_operations()
//if there's something, there's some info ;)
allow_info( true ) ;
// No manipulation operations are currently supported on file systems using the
// whole disk device.
if ( devices[current_device].disktype == "none" )
return;
//flag managing..
if ( selected_partition .type != GParted::TYPE_UNALLOCATED && selected_partition .status == GParted::STAT_REAL )
allow_manage_flags( true ) ;