]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: move field reset from bdrv_open_common to bdrv_close
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2012 14:51:49 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 10 May 2012 08:32:12 +0000 (10:32 +0200)
commit6405875cdd10e531ad3dedaad86ae1ccc4b14f20
tree15a21b4e50d37599e212c1c218560bb6e01676d0
parent947995c09ebd35a752837a5573985ba5a9942ec1
block: move field reset from bdrv_open_common to bdrv_close

bdrv_close should leave fields in the same state as bdrv_new.  It is
not up to bdrv_open_common to fix the mess.

Also, backing_format was not being re-initialized.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c