Work around faulty "complete disks" detection in mkdosfs (#693955)

Add -I option to 'mkdosfs' command to work around faulty detection of
"complete disks" vs. "partitions".

Bug #693955 - mkdosfs detects "complete disk" vs. "partition" incorrectly

Thanks to Kano for reporting this!

(This will also be needed if GParted ever allows formatting a device without
partitioning it.)
This commit is contained in:
Jan Claeys 2013-02-16 22:22:41 +01:00 committed by Curtis Gedak
parent 140b4953ba
commit cdb6cbfa80
2 changed files with 2 additions and 2 deletions

View file

@ -268,7 +268,7 @@ bool fat16::write_uuid( const Partition & partition, OperationDetail & operation
bool fat16::create( const Partition & new_partition, OperationDetail & operationdetail )
{
return ! execute_command( "mkdosfs -F16 -v -n \"" + new_partition .get_label() + "\" " + new_partition .get_path(), operationdetail ) ;
return ! execute_command( "mkdosfs -F16 -v -I -n \"" + new_partition .get_label() + "\" " + new_partition .get_path(), operationdetail ) ;
}
bool fat16::resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition )

View file

@ -257,7 +257,7 @@ bool fat32::write_uuid( const Partition & partition, OperationDetail & operation
bool fat32::create( const Partition & new_partition, OperationDetail & operationdetail )
{
return ! execute_command( "mkdosfs -F32 -v -n \"" + new_partition .get_label() + "\" " + new_partition .get_path(), operationdetail ) ;
return ! execute_command( "mkdosfs -F32 -v -I -n \"" + new_partition .get_label() + "\" " + new_partition .get_path(), operationdetail ) ;
}
bool fat32::resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition )