[xen-tools-dev] [PATCH 06/17] Remove trailing space from make_fs_ options.
Stéphane Jourdois
sjourdois at gmail.com
Sun Jul 25 14:12:38 CEST 2010
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 | 3 +--
bin/xen-create-image | 12 ++++++------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/TODO b/TODO
index b20199d..a244ab3 100644
--- 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?
diff --git a/bin/xen-create-image b/bin/xen-create-image
index 6d63e3a..6f961cf 100755
--- a/bin/xen-create-image
+++ b/bin/xen-create-image
@@ -1392,11 +1392,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.
@@ -3347,7 +3347,7 @@ sub createFilesystem
#
logprint("\nCreating $fs filesystem on $image\n");
- $command .= $image;
+ $command .= " " . $image;
runCommand($command);
logprint("Done\n");
--
1.7.2
More information about the xen-tools-dev
mailing list