]> git.proxmox.com Git - qemu.git/commit - block.c
block: fully delete bs->file when closing
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2012 14:51:44 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 10 May 2012 08:32:12 +0000 (10:32 +0200)
commit0ac9377d043e03350b1ff8e21b927598c02fc7fb
treed88812122db0fa7c15f26e1dbf6fa1bf76d08b05
parenta275fa42fa872828585e9e6a92f975e87776554b
block: fully delete bs->file when closing

We are reusing bs->file across close/open, which may not cause any
known bugs but is a recipe for trouble.  Prefer bdrv_delete, and
enjoy the new invariant in the implementation of bdrv_delete.

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