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 <behlendorf1@llnl.gov>
Closes #1929
This commit is contained in:
Turbo Fredriksson 2013-12-05 11:37:25 +00:00 committed by Brian Behlendorf
parent fc220e9ea5
commit c1ab64d393

View 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"