aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorallen-4 <[email protected]>2020-05-29 15:01:57 -0400
committerGitHub <[email protected]>2020-05-29 12:01:57 -0700
commit4d829ad9c128d7769a1552d3170d2a66b8c6c7d4 (patch)
tree916a5be1ea41ddcff979056af09a05ec6ff469dd
parenta1ba12092744ce4da5ffb8061223cc61c9b8b4f8 (diff)
Update zfs-functions.in
The init.d zfs-share script does not perform the intended action without having a variable set for ZFS_SHARE and ZFS_UNSHARE Assign default values to ZFS_SHARE and ZFS_UNSHARE. Export the environment variables after sourcing the configuration file. Reviewed-by: Richard Yao <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Georgy Yakovlev <[email protected]> Signed-off-by: Allen Holl <[email protected]> Closes #10341 Closes #10382
-rw-r--r--etc/zfs/zfs-functions.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/zfs/zfs-functions.in b/etc/zfs/zfs-functions.in
index 043f1b073..c2ce6157c 100644
--- a/etc/zfs/zfs-functions.in
+++ b/etc/zfs/zfs-functions.in
@@ -96,8 +96,8 @@ ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
# Sensible defaults
ZFS_MOUNT='yes'
ZFS_UNMOUNT='yes'
-
-export ZFS ZED ZPOOL ZPOOL_CACHE ZFS_MOUNT ZFS_UNMOUNT
+ZFS_SHARE='yes'
+ZFS_UNSHARE='yes'
# Source zfs configuration, overriding the defaults
if [ -f @initconfdir@/zfs ]; then
@@ -106,6 +106,8 @@ fi
# ----------------------------------------------------
+export ZFS ZED ZPOOL ZPOOL_CACHE ZFS_MOUNT ZFS_UNMOUNT ZFS_SHARE ZFS_UNSHARE
+
zfs_action()
{
local MSG="$1"; shift