diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2010-04-24 09:12:12 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-05-03 10:07:32 +0200 |
commit | 8bc64a2cd2571cbdc49cbe7eb647518871e289bf (patch) | |
tree | b3a9d851a0a738db40e4e91137cf5a0c91bdff78 /qemu-img.texi | |
parent | 046c27dab6d4b8ef323153c4bc21bf46a389ee6b (diff) | |
download | qemu-8bc64a2cd2571cbdc49cbe7eb647518871e289bf.tar.gz qemu-8bc64a2cd2571cbdc49cbe7eb647518871e289bf.tar.bz2 qemu-8bc64a2cd2571cbdc49cbe7eb647518871e289bf.zip |
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.texi')
-rw-r--r-- | qemu-img.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qemu-img.texi b/qemu-img.texi index ac978542c2..c1b1f2717e 100644 --- a/qemu-img.texi +++ b/qemu-img.texi @@ -106,6 +106,18 @@ they are displayed too. @item snapshot [-l | -a @var{snapshot} | -c @var{snapshot} | -d @var{snapshot} ] @var{filename} List, apply, create or delete snapshots in image @var{filename}. + +@item resize @var{filename} [+ | -]@var{size} + +Change the disk image as if it had been created with @var{size}. + +Before using this command to shrink a disk image, you MUST use file system and +partitioning tools inside the VM to reduce allocated file systems and partition +sizes accordingly. Failure to do so will result in data loss! + +After using this command to grow a disk image, you must use file system and +partitioning tools inside the VM to actually begin using the new space on the +device. @end table Supported image file formats: |