diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-08-22 18:50:30 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-19 15:26:15 +0200 |
commit | a4aab7b4cb2d994e17c987d7d3fb2b6645ea92a2 (patch) | |
tree | 1d934cadde78274487738f1b8d7882c949a34daf /qemu-nbd.c | |
parent | 9a304d29a79a3daeeaf15c68d7439713037405b1 (diff) |
nbd: do not close BlockDriverState in nbd_export_close
This is not desirable when embedding the NBD server inside QEMU.
Move the bdrv_close to qemu-nbd.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-nbd.c')
-rw-r--r-- | qemu-nbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-nbd.c b/qemu-nbd.c index 1c1cf6a463..23392e0d3c 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -586,6 +586,7 @@ int main(int argc, char **argv) } while (!sigterm_reported && (persistent || !nbd_started || nb_fds > 0)); nbd_export_close(exp); + bdrv_close(bs); if (sockpath) { unlink(sockpath); } |