diff options
author | Turbo Fredriksson <[email protected]> | 2013-12-05 11:37:25 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-12-06 10:59:35 -0800 |
commit | c1ab64d3931cbab45fbb197588cb27cb6fd10c33 (patch) | |
tree | 3746210031a41d91c4895ea271a60f8e30325202 | |
parent | fc220e9ea536ea7a5bcdd231c8ae36e8fef18cfa (diff) |
Update init script to allow verbose mounts
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 <[email protected]>
Closes #1929
-rw-r--r-- | etc/init.d/zfs.lsb.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/init.d/zfs.lsb.in b/etc/init.d/zfs.lsb.in index 5941d56c2..e970e5717 100644 --- a/etc/init.d/zfs.lsb.in +++ b/etc/init.d/zfs.lsb.in @@ -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" |