Skip to content

Commit

Permalink
Update init script to allow verbose mounts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
FransUrbo authored and behlendorf committed Dec 6, 2013
1 parent fc220e9 commit c1ab64d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion etc/init.d/zfs.lsb.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c1ab64d

Please sign in to comment.