HomeFreeBSD

Validate mountpoint on path-based unmount using statx

Description

Validate mountpoint on path-based unmount using statx

Use statx to verify that path-based unmounts proceed only if the
mountpoint reported by statx matches the MNTTAB entry reported by
libzfs, aborting the operation if they differ. Align
zfs umount /path behavior with zfs umount dataset.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #17481

Details

Provenance
Ameer Hamza <ahamza@ixsystems.com>Authored on Jul 9 2025, 2:10 AM
GitHub <noreply@github.com>Committed on Jul 9 2025, 2:10 AM
Parents
rG6af8db61b1ea: metaslab: don't pass whole zio to throttle reserve APIs
Branches
Unknown
Tags
Unknown