block-qcow2: keep highest allocated byte (Uri Lublin)
commit5d4cbd78aa33f6d034a62207c99ad0b64af44621
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 22 Jan 2009 18:57:22 +0000 (22 18:57 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 22 Jan 2009 18:57:22 +0000 (22 18:57 +0000)
tree0bcc9e9d74a6bccb8db744a0cb846d3f87aa88b2
parentf18be9010f3bf5ab0c7a24d441b5396640aebf07
block-qcow2: keep highest allocated byte (Uri Lublin)

We want to know the highest written offset for qcow2 images.
This gives a pretty good (and easy to calculate) estimation to how
much more allocation can be done for the block device.

It can be usefull for allocating more diskspace for that image
(if possible, e.g. lvm) before we run out-of-disk-space

Signed-off-by: Uri Lublin <uril@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6404 c046a42c-6fe2-441c-8c8c-71466251a162
block-qcow2.c