Fix size off by one sector with unrecognized disk label (#649444)
On disks with an unrecognized disk label, the end sector value was saved as one sector larger than actual. This caused the Partition Information dialog to report the end sector value and the total number of sectors on the disk as one larger than the actual value. Closes Bug #649444 - Partition information reports wrong sector count
This commit is contained in:
parent
ad129afa4d
commit
53b2b50f4a
|
@ -331,7 +331,7 @@ void GParted_Core::set_devices( std::vector<Device> & devices )
|
|||
Partition partition_temp ;
|
||||
partition_temp .Set_Unallocated( temp_device .get_path(),
|
||||
0,
|
||||
temp_device .length,
|
||||
temp_device .length - 1,
|
||||
temp_device .sector_size,
|
||||
false );
|
||||
//Place libparted messages in this unallocated partition
|
||||
|
|
Loading…
Reference in New Issue