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