]> xenbits.xensource.com Git - people/dariof/xen-tools.git/commitdiff
Remove trailing space from make_fs_ options.
authorStéphane Jourdois <sjourdois@gmail.com>
Fri, 23 Jul 2010 21:03:57 +0000 (23:03 +0200)
committerAxel Beckert <abe@deuxchevaux.org>
Mon, 26 Jul 2010 17:28:28 +0000 (19:28 +0200)
The "-d name=" option doesn't appear as necessary with mkfs.xfs, at
least with version 3.1.2 of mkfs.xfs (of course, tested with a file
instead of a device).
This simplifies a TODO item.

TODO
bin/xen-create-image

diff --git a/TODO b/TODO
index e9b490a3632f6399d0d22b74e5aafb4fefe3269c..47d9ee7d43665ce3fb9210bf29d979ee56923f5a 100644 (file)
--- a/TODO
+++ b/TODO
@@ -15,8 +15,7 @@ Minor bugs to fix and features to add before a 4.2 release
 * Test and support more file system types.
 
    Actually this should be pretty simple now that the parameters are
-   stored in the configuration hash.  The only issue is that trailing
-   whitespace is missing from the "make_fs_foo" option.
+   stored in the configuration hash.
 
 * Setup locales in the hooks?
 
index fcaaffac991106baadb46d7e3844c0d489b7b8bc..576fb1a4fc8c084d9edcdd44a8d54af60dd71f77 100755 (executable)
@@ -1397,11 +1397,11 @@ sub setupDefaultOptions
     #         filesystem, even if it exists.  This script must detect
     #         prior existance itself.
     #
-    $CONFIG{ 'make_fs_ext2' }     = 'mkfs.ext2 -F ';
-    $CONFIG{ 'make_fs_ext3' }     = 'mkfs.ext3 -F ';
-    $CONFIG{ 'make_fs_ext4' }     = 'mkfs.ext4 -F ';
-    $CONFIG{ 'make_fs_xfs' }      = 'mkfs.xfs -f -d name=';
-    $CONFIG{ 'make_fs_reiserfs' } = 'mkfs.reiserfs -f -q ';
+    $CONFIG{ 'make_fs_ext2' }     = 'mkfs.ext2 -F';
+    $CONFIG{ 'make_fs_ext3' }     = 'mkfs.ext3 -F';
+    $CONFIG{ 'make_fs_ext4' }     = 'mkfs.ext4 -F';
+    $CONFIG{ 'make_fs_xfs' }      = 'mkfs.xfs -f';
+    $CONFIG{ 'make_fs_reiserfs' } = 'mkfs.reiserfs -f -q';
 
     #
     #  Flags to pass to "mount" to mount our image.
@@ -3358,7 +3358,7 @@ sub createFilesystem
     #
     logprint("\nCreating $fs filesystem on $image\n");
 
-    $command .= $image;
+    $command .= " " . $image;
 
     runCommand($command);
     logprint("Done\n");