diff options
author | Peter Lieven <pl@kamp.de> | 2019-09-10 17:41:10 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-09-13 12:18:15 +0200 |
commit | d2c6becbe03e0f4121ce9128e5c84714a51308da (patch) | |
tree | 50fd990bdf14d422a2bf245a190b090d2ecf26ea /block | |
parent | 601dc6559725f7a614b6f893611e17ff0908e914 (diff) | |
download | qemu-d2c6becbe03e0f4121ce9128e5c84714a51308da.zip |
block/nfs: add support for nfs_umount
libnfs recently added support for unmounting. Add support
in Qemu too.
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/nfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |