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:
parent
fc220e9ea5
commit
c1ab64d393
|
@ -30,6 +30,7 @@ ZFS="@sbindir@/zfs"
|
||||||
ZPOOL="@sbindir@/zpool"
|
ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
USE_DISK_BY_ID=0
|
USE_DISK_BY_ID=0
|
||||||
|
VERBOSE_MOUNT=0
|
||||||
|
|
||||||
# Source zfs configuration.
|
# Source zfs configuration.
|
||||||
[ -r '/etc/default/zfs' ] && . /etc/default/zfs
|
[ -r '/etc/default/zfs' ] && . /etc/default/zfs
|
||||||
|
@ -85,8 +86,12 @@ start()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$POOL_IMPORTED" ]; then
|
if [ -n "$POOL_IMPORTED" ]; then
|
||||||
|
if [ "$VERBOSE_MOUNT" -eq 1 ]; then
|
||||||
|
verbose=v
|
||||||
|
fi
|
||||||
|
|
||||||
log_begin_msg "Mounting ZFS filesystems"
|
log_begin_msg "Mounting ZFS filesystems"
|
||||||
"$ZFS" mount -a
|
"$ZFS" mount -a$verbose
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
|
|
||||||
log_begin_msg "Exporting ZFS filesystems"
|
log_begin_msg "Exporting ZFS filesystems"
|
||||||
|
|
Loading…
Reference in New Issue