Skip to content

Commit

Permalink
ZTS: block_cloning: Use numeric sort for get_same_blocks
Browse files Browse the repository at this point in the history
Reviewed-by: Kay Pedersen <mail@mkwg.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by:  Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #15614
  • Loading branch information
ixhamza authored and behlendorf committed Jan 19, 2024
1 parent 07cf973 commit 387f003
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ function get_same_blocks
awk '/ L0 / { print l++ " " $3 " " $7 }' > $zdbout.a
zdb $KEY -vvvvv $3 -O $4 | \
awk '/ L0 / { print l++ " " $3 " " $7 }' > $zdbout.b
echo $(sort $zdbout.a $zdbout.b | uniq -d | cut -f1 -d' ')
echo $(sort -n $zdbout.a $zdbout.b | uniq -d | cut -f1 -d' ')
}

0 comments on commit 387f003

Please sign in to comment.