mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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.
This commit is contained in:
@@ -393,6 +393,8 @@ if (!defined $size) {
|
||||
}
|
||||
}
|
||||
|
||||
$size = int ($size);
|
||||
|
||||
# Create the output disk.
|
||||
# Take the unusual step of invoking qemu-img here.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user