mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 19:50:25 +03:00
Fix arithmetic error message in zfs_clone_010_pos
zfs_clone_010_pos.ksh: line 234: ZFS_MAXPROPLEN: arithmetic syntax error Reviewed-by: Kash Pande <kash@tripleback.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: bunder2015 <omfgbunder@gmail.com> Closes #6268
This commit is contained in:
parent
03928896e1
commit
7517376f93
@ -231,7 +231,7 @@ while((i <= $(( ZFS_MAXPROPLEN/200+1 )))); do
|
|||||||
done
|
done
|
||||||
clone_list=$(zfs list -o clones $fs@snap)
|
clone_list=$(zfs list -o clones $fs@snap)
|
||||||
char_count=$(echo "$clone_list" | tail -1 | wc | awk '{print $3}')
|
char_count=$(echo "$clone_list" | tail -1 | wc | awk '{print $3}')
|
||||||
[[ $char_count -eq ZFS_MAXPROPLEN ]] || \
|
[[ $char_count -eq $ZFS_MAXPROPLEN ]] || \
|
||||||
log_fail "Clone list not truncated correctly. Unexpected character count" \
|
log_fail "Clone list not truncated correctly. Unexpected character count" \
|
||||||
"$char_count"
|
"$char_count"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user