Remove outdated FIXME comment from active_partitions_on_device_count()
Active LVM2 PVs have the partition class busy member set in GParted_Core::set_device_partitions() just as mounted file systems do. This is a basic requirement for GParted so that it only manipulates partitions and contained file systems when they are not in use.
This commit is contained in:
parent
5cb6c687ba
commit
85e9ce3428
|
@ -2599,8 +2599,6 @@ int Win_GParted::active_partitions_on_device_count( const Device & device )
|
||||||
//Count the active partitions on the device
|
//Count the active partitions on the device
|
||||||
for ( unsigned int k=0; k < device .partitions .size(); k++ )
|
for ( unsigned int k=0; k < device .partitions .size(); k++ )
|
||||||
{
|
{
|
||||||
//FIXME: Should also count other types of active partitions, such as LVM2 when we know how.
|
|
||||||
|
|
||||||
//Count the active primary partitions
|
//Count the active primary partitions
|
||||||
if ( device .partitions[ k ] .busy
|
if ( device .partitions[ k ] .busy
|
||||||
&& device .partitions[ k ] .type != TYPE_EXTENDED
|
&& device .partitions[ k ] .type != TYPE_EXTENDED
|
||||||
|
|
Loading…
Reference in New Issue