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:
parent
140b4953ba
commit
cdb6cbfa80
|
@ -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 )
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue