qed: support for growing images
commit77a5a0001bd9eaee9da7dc8f0b69702d56b0cc67
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 16 May 2011 12:56:53 +0000 (16 13:56 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 18 May 2011 12:39:15 +0000 (18 14:39 +0200)
tree653123f56af00a2005064b47ec81af6edeeedde6
parentf6a00aa150ec685966ca9453601328fdb2f87f34
qed: support for growing images

The .bdrv_truncate() operation resizes images and growing is easy to
implement in QED.  Simply check that the new size is valid and then
update the image_size header field to reflect the new size.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qed.c