]> git.proxmox.com Git - mirror_zfs.git/commit
Upstream: unmount snapshots before destroying them on macOS
authorJorgen Lundman <lundman@lundman.net>
Mon, 20 Sep 2021 15:29:59 +0000 (00:29 +0900)
committerGitHub <noreply@github.com>
Mon, 20 Sep 2021 15:29:59 +0000 (09:29 -0600)
commit1d901c3ee5965e9b3b4c33cd40942bcf9df2531a
treed0b9c15e5bd6da0dacfd2abc3b77bdc02f347c53
parent8a3fe59c0364ee1732fc16a67e908ec1daea3058
Upstream: unmount snapshots before destroying them on macOS

Add function zfs_destroy_snaps_nvl_os() call. The main issue is that
macOS needs to unmount any mounted snapshots before they can be
destroyed. Other platforms can handle this in the kernel, but sending
a storm of zed events to unmount seems undesirable when we can do it
in userland to start with.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Co-authored-by: ilovezfs <ilovezfs@icloud.com>
Closes #12550
include/libzfs.h
lib/libzfs/libzfs.abi
lib/libzfs/libzfs_dataset.c
lib/libzfs/os/freebsd/libzfs_compat.c
lib/libzfs/os/linux/libzfs_util_os.c