FreeBSD/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
/*
 * Check if the dataset is mountable and should be automatically mounted.
 */
Check if the dataset is mountable and should be automatically mounted.
Check if the dataset is mountable and should be automatically mounted .
static boolean_t
should_auto_mount(zfs_handle_t *zhp)
{
	if (!zfs_prop_valid_for_type(ZFS_PROP_CANMOUNT, zfs_get_type(zhp)))
		return (B_FALSE);
	return (zfs_prop_get_int(zhp, ZFS_PROP_CANMOUNT) == ZFS_CANMOUNT_ON);
}
static boolean_t should_auto_mount ( zfs_handle_t * zhp ) { if ( ! zfs_prop_valid_for_type ( ZFS_PROP_CANMOUNT , zfs_get_type ( zhp ) ) ) return ( B_FALSE ) ; return ( zfs_prop_get_int ( zhp , ZFS_PROP_CANMOUNT ) == ZFS_CANMOUNT_ON ) ; }
Check if the dataset is mountable and should be automatically mounted.
Check if the dataset is mountable and should be automatically mounted .