diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-04 12:13:32 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-04 12:13:32 +0000 |
commit | eda9826d25336bcf661700270c580d4d62128750 (patch) | |
tree | 28eb80a6e347c02a9ef3be382c77ffa1dd1386c9 /tools | |
parent | 29b3ffdad5d6774f988fd0e25f9c8242e5dd577a (diff) | |
download | libguestfs-eda9826d25336bcf661700270c580d4d62128750.tar.gz libguestfs-eda9826d25336bcf661700270c580d4d62128750.tar.xz libguestfs-eda9826d25336bcf661700270c580d4d62128750.zip |
virt-make-fs: Round disk size to integer, fix for qemu-img 0.14.
qemu-img used to allow you to specify a fractional image size in bytes
(or at least, it used to ignore the part after the decimal place). In
qemu-img 0.14 it no longer does this so we round down the size to a
whole number of bytes.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/virt-make-fs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virt-make-fs b/tools/virt-make-fs index 3825f701..833c8a51 100755 --- a/tools/virt-make-fs +++ b/tools/virt-make-fs @@ -393,6 +393,8 @@ if (!defined $size) { } } +$size = int ($size); + # Create the output disk. # Take the unusual step of invoking qemu-img here. |