aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs/os/freebsd
diff options
context:
space:
mode:
authorJorgen Lundman <[email protected]>2021-07-16 03:31:00 +0900
committerGitHub <[email protected]>2021-07-15 12:31:00 -0600
commit41eba770616c36126cba3468a1781d212d3afb9d (patch)
treee0a9a145492bce5792855c4ac22d5279d4689f33 /lib/libzfs/os/freebsd
parentd9f0f1582c4bd73e5beb8be447358c8a7170e553 (diff)
pass handle to do_unmount()
The same change has already been done for domount(). On macOS platform we need to have access to zhp to handle devdisks and snapshots. Also, symmetry is pleasing. In addition, the code in zpool_disable_datasets which sorts the mountpoints did not sort the related handle, which meant that the mountpoint, and the handle that it is paired with, was lost. You'd get a random handle with the mountpoint. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Jorgen Lundman <[email protected]> Closes #12296
Diffstat (limited to 'lib/libzfs/os/freebsd')
-rw-r--r--lib/libzfs/os/freebsd/libzfs_zmount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/os/freebsd/libzfs_zmount.c b/lib/libzfs/os/freebsd/libzfs_zmount.c
index e1febe6a2..6bc073cb0 100644
--- a/lib/libzfs/os/freebsd/libzfs_zmount.c
+++ b/lib/libzfs/os/freebsd/libzfs_zmount.c
@@ -121,7 +121,7 @@ do_mount(zfs_handle_t *zhp, const char *mntpt, char *opts, int flags)
}
int
-do_unmount(const char *mntpt, int flags)
+do_unmount(zfs_handle_t *zhp, const char *mntpt, int flags)
{
if (unmount(mntpt, flags) < 0)
return (errno);