Force creation of reiserfs on whole disk devices (#743181)

Creation of reiserfs file system fails in GParted with the this error.

    # mkreiserfs -f --label "" /dev/sdb < /dev/null
    mkreiserfs 3.6.24

    /dev/sdb is entire device, not just one partition!
    Continue  (y/n):
    # echo $?
    1

Add second force flag, -f, to the mkreiserfs command to make it work.

Bug 743181 - Add unpartitioned drive read-write support
This commit is contained in:
Mike Fleetwood 2015-01-22 13:21:49 +00:00 committed by Curtis Gedak
parent 70e17e9388
commit fb9653fd8e
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ bool reiserfs::write_uuid( const Partition & partition, OperationDetail & operat
bool reiserfs::create( const Partition & new_partition, OperationDetail & operationdetail )
{
return ! execute_command( "mkreiserfs -f --label \"" + new_partition.get_filesystem_label() + "\" " +
return ! execute_command( "mkreiserfs -f -f --label \"" + new_partition.get_filesystem_label() + "\" " +
new_partition.get_path(),
operationdetail, false, true );
}