aboutsummaryrefslogtreecommitdiff
path: root/nbd.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-08-22 18:50:30 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-09-19 15:26:15 +0200
commita4aab7b4cb2d994e17c987d7d3fb2b6645ea92a2 (patch)
tree1d934cadde78274487738f1b8d7882c949a34daf /nbd.c
parent9a304d29a79a3daeeaf15c68d7439713037405b1 (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 'nbd.c')
-rw-r--r--nbd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/nbd.c b/nbd.c
index 5a3088d232..83200bdccd 100644
--- a/nbd.c
+++ b/nbd.c
@@ -721,7 +721,6 @@ void nbd_export_close(NBDExport *exp)
g_free(first);
}
- bdrv_close(exp->bs);
g_free(exp);
}