]> granicus.if.org Git - zfs/commitdiff
Allow specifying '-o <opts>' in defaults/init script.
authorTurbo Fredriksson <turbo@bayour.com>
Mon, 3 Feb 2014 21:54:40 +0000 (21:54 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 4 Apr 2014 16:49:09 +0000 (09:49 -0700)
Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2103

etc/init.d/zfs.lsb.in

index a0f3a647df154b16efe25f7d86d59f372eba9d17..e626f7905262ceb2b29665199d7d0b9d6ba06358 100644 (file)
@@ -32,6 +32,7 @@ ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
 USE_DISK_BY_ID=0
 VERBOSE_MOUNT=0
 DO_OVERLAY_MOUNTS=0
+MOUNT_EXTRA_OPTIONS=""
 
 # Source zfs configuration.
 [ -r '/etc/default/zfs' ] &&  . /etc/default/zfs
@@ -96,7 +97,7 @@ start()
                fi
 
                log_begin_msg "Mounting ZFS filesystems"
-               "$ZFS" mount -a$verbose$overlay
+               "$ZFS" mount -a$verbose$overlay$MOUNT_EXTRA_OPTIONS
                log_end_msg $?
 
                log_begin_msg "Exporting ZFS filesystems"