aboutsummaryrefslogtreecommitdiff
path: root/qemu-img-cmds.hx
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2010-04-24 09:12:12 +0100
committerKevin Wolf <kwolf@redhat.com>2010-05-03 10:07:32 +0200
commitae6b0ed6d4d4a41e77584f44d2888303645fa845 (patch)
treeb3a9d851a0a738db40e4e91137cf5a0c91bdff78 /qemu-img-cmds.hx
parent51762288b41f59d027073c404a29256fc4d4540e (diff)
downloadqemu-ae6b0ed6d4d4a41e77584f44d2888303645fa845.zip
qemu-ae6b0ed6d4d4a41e77584f44d2888303645fa845.tar.gz
qemu-ae6b0ed6d4d4a41e77584f44d2888303645fa845.tar.bz2
qemu-img: Add 'resize' command to grow/shrink disk images
This patch adds a 'resize' command to grow/shrink disk images. This allows changing the size of disk images without copying to a new image file. Currently only raw files support resize. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img-cmds.hx')
-rw-r--r--qemu-img-cmds.hx6
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu-img-cmds.hx b/qemu-img-cmds.hx
index f96876a..c079019 100644
--- a/qemu-img-cmds.hx
+++ b/qemu-img-cmds.hx
@@ -49,5 +49,11 @@ DEF("rebase", img_rebase,
"rebase [-f fmt] [-u] -b backing_file [-F backing_fmt] filename")
STEXI
@item rebase [-f @var{fmt}] [-u] -b @var{backing_file} [-F @var{backing_fmt}] @var{filename}
+ETEXI
+
+DEF("resize", img_resize,
+ "resize filename [+ | -]size")
+STEXI
+@item rebase @var{filename} [+ | -]@var{size}
@end table
ETEXI