X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fvirt-make-fs;h=46edbea6b23c3d0f08a8e358f0c7c55b0a801c2c;hb=b83dc098ab79b99ae647cae38ac77b8c8f259321;hp=4e928af440a0d58b9318ab34b0df39d2d1412bd2;hpb=38bc7c98dff94b5ad451da86817f34a6fbc75b08;p=libguestfs.git diff --git a/tools/virt-make-fs b/tools/virt-make-fs index 4e928af..46edbea 100755 --- a/tools/virt-make-fs +++ b/tools/virt-make-fs @@ -84,7 +84,7 @@ store something in it. Don't forget that you can also use local commands including L and L to resize existing filesystems, -or rerun virt-make-resize to build another image from scratch. +or rerun virt-make-fs to build another image from scratch. =head3 EXAMPLE @@ -393,10 +393,15 @@ if (!defined $size) { } } +$size = int ($size); + # Create the output disk. # 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";