HomeFreeBSD

'zfs share -a' should handle 'canmount=noauto'

Description

'zfs share -a' should handle 'canmount=noauto'

The 'zfs share -a' currently skips any filesystems which
have 'canmount=noauto' set. This behavior is unexpected since the
one would expect 'zfs share -a' to share any mounted filesystem
that has the 'sharenfs' property already set.

This changes the behavior of 'zfs share -a' to allow the sharing
of 'canmount=noauto' datasets if they are mounted.

Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Don Brady <don.brady@delphix.com>
Reviewed-by: Prakash Surya <prakash.surya@delphix.com>
Signed-off-by: George Wilson <gwilson@delphix.com>
External-issue: DLPX-71313
Closes #10688

Details

Provenance
George Wilson <george.wilson@delphix.com>Authored on Aug 11 2020, 8:55 PM
GitHub <noreply@github.com>Committed on Aug 11 2020, 8:55 PM
Parents
rG6f763d408530: FreeBSD: Fix module autoloading when built in base
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG53c9d1d9b5ff: 'zfs share -a' should handle 'canmount=noauto' (authored by George Wilson <george.wilson@delphix.com>).Aug 11 2020, 8:55 PM