summaryrefslogtreecommitdiffstats
path: root/etc/init.d/zfs.gentoo
diff options
context:
space:
mode:
authorGunnar Beutner <[email protected]>2011-07-03 02:43:25 +0200
committerBrian Behlendorf <[email protected]>2011-07-06 09:20:28 -0700
commit8b0cf399ff9e764a08faea654bd30043a861cb09 (patch)
tree0fc84e50570ada53b94373aff287b6f40fad5d00 /etc/init.d/zfs.gentoo
parent3c9609b322db2925aff628217eca9297d6fb569b (diff)
Updated init scripts to enable automatic sharing of ZFS datasets.
The relevant init scripts were updated so as to automatically share ZFS datasets using "zfs share -a" at boot time. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'etc/init.d/zfs.gentoo')
-rw-r--r--etc/init.d/zfs.gentoo9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/init.d/zfs.gentoo b/etc/init.d/zfs.gentoo
index d7e1d1055..f709ed9e7 100644
--- a/etc/init.d/zfs.gentoo
+++ b/etc/init.d/zfs.gentoo
@@ -77,6 +77,15 @@ start() {
return $rv
fi
+ einfo "Exporting ZFS filesystems"
+ $ZFS share -a
+ rv=$?
+ if [ $rv -ne 0 ]; then
+ eerror "Failed to export ZFS filesystems."
+ eend $rv
+ return $rv
+ fi
+
eend 0
return 0
}