char mountpoint[ZFS_MAXPROPLEN];
char shareopts[ZFS_MAXPROPLEN];
char smbshareopts[ZFS_MAXPROPLEN];
- char overlay[ZFS_MAXPROPLEN];
const char *cmdname = op == OP_SHARE ? "share" : "mount";
struct mnttab mnt;
uint64_t zoned, canmount;
return (0);
}
- /*
- * Overlay mounts are disabled by default but may be enabled
- * via the 'overlay' property or the 'zfs mount -O' option.
- */
- if (!(flags & MS_OVERLAY)) {
- if (zfs_prop_get(zhp, ZFS_PROP_OVERLAY, overlay,
- sizeof (overlay), NULL, NULL, 0, B_FALSE) == 0) {
- if (strcmp(overlay, "on") == 0) {
- flags |= MS_OVERLAY;
- }
- }
- }
-
/*
* At this point, we have verified that the mountpoint and/or
* shareopts are appropriate for auto management. If the
struct stat buf;
char mountpoint[ZFS_MAXPROPLEN];
char mntopts[MNT_LINE_MAX];
+ char overlay[ZFS_MAXPROPLEN];
libzfs_handle_t *hdl = zhp->zfs_hdl;
int remount = 0, rc;
}
}
+ /*
+ * Overlay mounts are disabled by default but may be enabled
+ * via the 'overlay' property or the 'zfs mount -O' option.
+ */
+ if (!(flags & MS_OVERLAY)) {
+ if (zfs_prop_get(zhp, ZFS_PROP_OVERLAY, overlay,
+ sizeof (overlay), NULL, NULL, 0, B_FALSE) == 0) {
+ if (strcmp(overlay, "on") == 0) {
+ flags |= MS_OVERLAY;
+ }
+ }
+ }
+
/*
* Determine if the mountpoint is empty. If so, refuse to perform the
* mount. We don't perform this check if 'remount' is