From d2c6becbe03e0f4121ce9128e5c84714a51308da Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Tue, 10 Sep 2019 17:41:10 +0200 Subject: block/nfs: add support for nfs_umount libnfs recently added support for unmounting. Add support in Qemu too. Signed-off-by: Peter Lieven Signed-off-by: Kevin Wolf --- block/nfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/nfs.c b/block/nfs.c index 2c98508275..f39acfdb28 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -398,6 +398,9 @@ static void nfs_client_close(NFSClient *client) nfs_close(client->context, client->fh); client->fh = NULL; } +#ifdef LIBNFS_FEATURE_UMOUNT + nfs_umount(client->context); +#endif nfs_destroy_context(client->context); client->context = NULL; } -- cgit v1.2.3-55-g7522