commit | 0ac9377d043e03350b1ff8e21b927598c02fc7fb | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Tue May 08 16:51:44 2012 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Thu May 10 10:32:12 2012 +0200 |
tree | d88812122db0fa7c15f26e1dbf6fa1bf76d08b05 | |
parent | a275fa42fa872828585e9e6a92f975e87776554b [diff] |
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>