diff options
author | Max Reitz | 2020-10-27 20:05:56 +0100 |
---|---|---|
committer | Kevin Wolf | 2020-12-11 17:52:40 +0100 |
commit | b55a3c8860b763b62b2cc2f4a6f55379977bbde5 (patch) | |
tree | bad743232c52d109748d3018ec812ab59f17fdb5 /storage-daemon | |
parent | iotests/287: Clean up subshell test image (diff) | |
download | qemu-b55a3c8860b763b62b2cc2f4a6f55379977bbde5.tar.gz qemu-b55a3c8860b763b62b2cc2f4a6f55379977bbde5.tar.xz qemu-b55a3c8860b763b62b2cc2f4a6f55379977bbde5.zip |
storage-daemon: Call bdrv_close_all() on exit
Otherwise, exports and block devices are not properly shut down and
closed, unless the users explicitly issues blockdev-del and
block-export-del commands for each of them.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20201027190600.192171-17-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'storage-daemon')
-rw-r--r-- | storage-daemon/qemu-storage-daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage-daemon/qemu-storage-daemon.c b/storage-daemon/qemu-storage-daemon.c index 7c914b0dc1..e0c87edbdd 100644 --- a/storage-daemon/qemu-storage-daemon.c +++ b/storage-daemon/qemu-storage-daemon.c @@ -314,6 +314,9 @@ int main(int argc, char *argv[]) main_loop_wait(false); } + bdrv_drain_all_begin(); + bdrv_close_all(); + monitor_cleanup(); qemu_chr_cleanup(); user_creatable_cleanup(); |