git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
897f9d2
)
virt-make-fs: In debug mode, print qemu-img command line.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 4 Mar 2011 12:13:12 +0000
(12:13 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 8 Mar 2011 14:57:36 +0000
(14:57 +0000)
(cherry picked from commit
29b3ffdad5d6774f988fd0e25f9c8242e5dd577a
)
tools/virt-make-fs
patch
|
blob
|
history
diff --git
a/tools/virt-make-fs
b/tools/virt-make-fs
index
f9f65d0
..
16f02a9
100755
(executable)
--- a/
tools/virt-make-fs
+++ b/
tools/virt-make-fs
@@
-397,6
+397,9
@@
if (!defined $size) {
# Take the unusual step of invoking qemu-img here.
my @cmd = ("qemu-img", "create", "-f", $format, $output, $size);
+if ($debug) {
+ print STDERR ("running: ", join (" ", @cmd), "\n");
+}
system (@cmd) == 0 or
die __"qemu-img create: failed to create disk image, see earlier error messages\n";