Fix double quote error creating XFS file systems (#744108)

Trying to create an XFS file system causes the following error and
the create new xfs file system step to never complete.

    # ./gpartedbin
    ======================
    libparted : 2.4
    ======================

    (gpartedbin:15572): glibmm-CRITICAL **:
    unhandled exception (type Glib::Error) in signal handler:
    domain: g-shell-error-quark
    code  : 0
    what  : Text ended before matching quote was found for ". (The text was 'mkfs.xfs -f -L "mylabel" " /dev/sdb8')

Creation of XFS file systems was broken by the extra stray double quote
added to the command before the device name, by commit:

    63aeb150ac
    Rename member variables and methods in Partition class (#741424)

Bug 744108 - Creating an XFS file system never completes
This commit is contained in:
Mike Fleetwood 2015-02-06 19:27:48 +00:00 committed by Curtis Gedak
parent 900e0b7300
commit 70cc6187d5
1 changed files with 4 additions and 4 deletions

View File

@ -173,10 +173,10 @@ bool xfs::write_uuid( const Partition & partition, OperationDetail & operationde
bool xfs::create( const Partition & new_partition, OperationDetail & operationdetail )
{
return ! execute_command( "mkfs.xfs -f -L \"" + new_partition.get_filesystem_label() + "\" " +
"\" " + new_partition.get_path(),
operationdetail,
false,
true );
new_partition.get_path(),
operationdetail,
false,
true );
}
bool xfs::resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition )