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:
наб 2022-03-04 00:12:39 +01:00 committed by Brian Behlendorf
parent bf228f3de0
commit 261f10b717
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ while (( i < ${#mntp_fs[*]} )); do
else
log_must zfs set sharenfs=on ${mntp_fs[((i+1))]}
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
((i = i + 2))
@ -166,7 +166,7 @@ log_must zfs unshare -a
i=0
while (( i < ${#mntp_fs[*]} )); do
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))
done