tests: zfs_unshare_001_pos: print which filesystem failed
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
parent
bf228f3de0
commit
261f10b717
|
@ -149,7 +149,7 @@ while (( i < ${#mntp_fs[*]} )); do
|
||||||
else
|
else
|
||||||
log_must zfs set sharenfs=on ${mntp_fs[((i+1))]}
|
log_must zfs set sharenfs=on ${mntp_fs[((i+1))]}
|
||||||
is_shared ${mntp_fs[i]} || \
|
is_shared ${mntp_fs[i]} || \
|
||||||
log_fail "'zfs set sharenfs=on' fails to share filesystem."
|
log_fail "'zfs set sharenfs=on' fails to share filesystem: ${mntp_fs[i]} not shared."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
((i = i + 2))
|
((i = i + 2))
|
||||||
|
@ -166,7 +166,7 @@ log_must zfs unshare -a
|
||||||
i=0
|
i=0
|
||||||
while (( i < ${#mntp_fs[*]} )); do
|
while (( i < ${#mntp_fs[*]} )); do
|
||||||
not_shared ${mntp_fs[i]} || \
|
not_shared ${mntp_fs[i]} || \
|
||||||
log_fail "'zfs unshare -a' fails to unshare all shared zfs filesystems."
|
log_fail "'zfs unshare -a' fails to unshare all shared zfs filesystems: ${mntp_fs[i]} still shared."
|
||||||
|
|
||||||
((i = i + 2))
|
((i = i + 2))
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue