freebsd-dev/lib/libzfs
Jorgen Lundman 41eba77061
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 <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #12296
2021-07-15 12:31:00 -06:00
..
os pass handle to do_unmount() 2021-07-15 12:31:00 -06:00
.gitignore Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libzfs_changelist.c libzfs: convert to -fvisibility=hidden 2021-06-03 13:17:55 -07:00
libzfs_config.c Use zfs_ioctl with zfs_cmd_t in libzfs 2019-10-23 17:29:43 -07:00
libzfs_crypto.c libzfs: add keylocation=https://, backed by fetch(3) or libcurl 2021-05-12 21:21:35 -07:00
libzfs_dataset.c libzfs: add zfs_get_underlying_type. Stop including libzfs_impl.h in cmd 2021-05-29 14:26:38 -07:00
libzfs_diff.c libzfs: write_inuse_diffs_one: format strerror() with "%s" 2021-06-04 16:04:37 -07:00
libzfs_impl.h pass handle to do_unmount() 2021-07-15 12:31:00 -06:00
libzfs_import.c libzfs: don't distribute libzfs_impl.h 2021-06-03 13:17:35 -07:00
libzfs_iter.c lib/: set O_CLOEXEC on all fds 2021-04-11 15:45:59 -07:00
libzfs_mount.c pass handle to do_unmount() 2021-07-15 12:31:00 -06:00
libzfs_pool.c Replace strchrnul() with strrchr() 2021-07-07 21:08:13 -06:00
libzfs_sendrecv.c Fix flag copying in resume case 2021-06-24 13:42:01 -06:00
libzfs_status.c Improvements to the 'compatibility' property 2021-04-12 09:08:56 -07:00
libzfs_util.c libzfs: format safety 2021-05-29 14:26:25 -07:00
libzfs.abi lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libzfs.pc.in Spruce up pkg-config files for libzfs/libzfs_core 2020-09-04 11:11:18 -07:00
libzfs.suppr Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00
Makefile.am libzfs: convert to -fvisibility=hidden 2021-06-03 13:17:55 -07:00
THIRDPARTYLICENSE.openssl Fix typos in lib/ 2019-09-02 17:53:27 -07:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00