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



commit fb9653fd8efaebba09033db181ca359b87fa76cf
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Thu Jan 22 13:21:49 2015 +0000

    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

 src/reiserfs.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/reiserfs.cc b/src/reiserfs.cc
index adb0477..7bb4f0c 100644
--- a/src/reiserfs.cc
+++ b/src/reiserfs.cc
@@ -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 );
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]