qemu-img: allow rebase to a NULL backing file when unsafe
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 13 Apr 2011 14:51:47 +0000 (15:51 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 27 Apr 2011 09:12:50 +0000 (11:12 +0200)
commit039ddff08386003d13b25c7593fd55d3da8394d7
tree40cf717dcfcbd28cfcefbe6958cb6046bd675bf1
parentf2cca1e957d570ac19902ff0a1be2f37a8f4904a
qemu-img: allow rebase to a NULL backing file when unsafe

QEMU can drop a backing file so that an image file no longer depends on
the backing file, but this feature has not been exposed in qemu-img.
This is useful in an image streaming usecase or when an image file has
been fully allocated and no reads can hit the backing file anymore.

Since the dropping the backing file can make the image unusable, only
allow this when the unsafe flag has been set.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c