mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
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>
This commit is contained in:
parent
601dc65597
commit
d2c6becbe0
1 changed files with 3 additions and 0 deletions
|
@ -398,6 +398,9 @@ static void nfs_client_close(NFSClient *client)
|
||||||
nfs_close(client->context, client->fh);
|
nfs_close(client->context, client->fh);
|
||||||
client->fh = NULL;
|
client->fh = NULL;
|
||||||
}
|
}
|
||||||
|
#ifdef LIBNFS_FEATURE_UMOUNT
|
||||||
|
nfs_umount(client->context);
|
||||||
|
#endif
|
||||||
nfs_destroy_context(client->context);
|
nfs_destroy_context(client->context);
|
||||||
client->context = NULL;
|
client->context = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue