diff options
author | Stefan Weil <weil@mail.berlios.de> | 2009-10-26 16:11:16 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-09 08:43:01 -0600 |
commit | d191d12d5f479422e16ed1d12b0222547b29036a (patch) | |
tree | dafeb368cfc86e2a8b7d69100a5d167fc363febd /block.c | |
parent | b4558d7481aefc865b0b52bf9b285ebcf2e8b59f (diff) |
qcow2: Allow qcow2 disk images with size zero
Images with disk size 0 may be used for
VM snapshots, but not to save normal block data.
It is possible to create such images using
qemu-img, but opening them later fails.
So even "qemu-img info image.qcow2" is not
possible for an image created with
"qemu-img create -f qcow2 image.qcow2 0".
This is fixed here.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions