]> granicus.if.org Git - zfs/commitdiff
Update init script to allow verbose mounts
authorTurbo Fredriksson <turbo@bayour.com>
Thu, 5 Dec 2013 11:37:25 +0000 (11:37 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Dec 2013 18:59:35 +0000 (10:59 -0800)
Allow verbose mounts to make is easier to monitor progress when
mounting a large number of filesystems.

This functionality is disabled by default.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1929

etc/init.d/zfs.lsb.in

index 5941d56c232f5113da5018d2e1f0235014c07791..e970e5717e8ffee2f472ce5073a313017e73e17e 100644 (file)
@@ -30,6 +30,7 @@ ZFS="@sbindir@/zfs"
 ZPOOL="@sbindir@/zpool"
 ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
 USE_DISK_BY_ID=0
+VERBOSE_MOUNT=0
 
 # Source zfs configuration.
 [ -r '/etc/default/zfs' ] &&  . /etc/default/zfs
@@ -85,8 +86,12 @@ start()
        fi
 
        if [ -n "$POOL_IMPORTED" ]; then
+               if [ "$VERBOSE_MOUNT" -eq 1 ]; then
+                       verbose=v
+               fi
+
                log_begin_msg "Mounting ZFS filesystems"
-               "$ZFS" mount -a
+               "$ZFS" mount -a$verbose
                log_end_msg $?
 
                log_begin_msg "Exporting ZFS filesystems"