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:
29b3ffd
)
virt-make-fs: Round disk size to integer, fix for qemu-img 0.14.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 4 Mar 2011 12:13:32 +0000
(12:13 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 4 Mar 2011 12:13:32 +0000
(12:13 +0000)
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.
tools/virt-make-fs
patch
|
blob
|
history
diff --git
a/tools/virt-make-fs
b/tools/virt-make-fs
index
3825f70
..
833c8a5
100755
(executable)
--- 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.