qcow2: Implement bdrv_make_empty()
commit491d27e2af4f6e157c4b29d43269c5cb0d191171
authorMax Reitz <mreitz@redhat.com>
Fri, 24 Oct 2014 13:57:31 +0000 (24 15:57 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Nov 2014 11:41:48 +0000 (3 11:41 +0000)
tree3a08c2abc1325963d13083b87eae904a9948f7bb
parent808c4b6f30d77295292cef8ee38c462957a6b9ca
qcow2: Implement bdrv_make_empty()

Implement this function by making all clusters in the image file fall
through to the backing file (by using the recently extended discard).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1414159063-25977-3-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2.c