virt-make-fs: In debug mode, print qemu-img command line.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 4 Mar 2011 12:13:12 +0000 (12:13 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 4 Mar 2011 12:13:12 +0000 (12:13 +0000)
tools/virt-make-fs

index 854cc08..3825f70 100755 (executable)
@@ -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";