mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
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_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"
|
||||
|
Loading…
Reference in New Issue
Block a user