qcow2: Implement .bdrv_inactivate
commitec6d891224f708b2cda2a1edf68ffc0ff1316fca
authorKevin Wolf <kwolf@redhat.com>
Tue, 22 Dec 2015 15:04:57 +0000 (22 16:04 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2016 12:36:23 +0000 (20 13:36 +0100)
tree94b6d9d9aef27bccda744a04ce0dc58bb7e786f5
parent76b1c7fe1cbc45f46b2cccd471369ccd4b49b6fd
qcow2: Implement .bdrv_inactivate

The callback has to ensure that closing or flushing the image afterwards
wouldn't cause a write access to the image files. This means that just
the caches have to be written out, which is part of the existing
.bdrv_close implementation.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/qcow2.c