HomeFreeBSD

Upstream: unmount snapshots before destroying them on macOS

Description

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

Details

Provenance
Jorgen Lundman <lundman@lundman.net>Authored on Sep 20 2021, 3:29 PM
GitHub <noreply@github.com>Committed on Sep 20 2021, 3:29 PM
Parents
rG8a3fe59c0364: Added test for being able to read various variants of zstd
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG1d901c3ee596: Upstream: unmount snapshots before destroying them on macOS (authored by Jorgen Lundman <lundman@lundman.net>).Sep 20 2021, 3:29 PM