]> git.proxmox.com Git - mirror_zfs.git/commitdiff
ZTS: block_cloning: Use numeric sort for get_same_blocks
authorAmeer Hamza <ahamza@ixsystems.com>
Wed, 6 Dec 2023 20:18:43 +0000 (01:18 +0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 9 Dec 2023 00:38:45 +0000 (16:38 -0800)
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

tests/zfs-tests/tests/functional/block_cloning/block_cloning.kshlib

index 526bd54a2bf36a610a14c931f8974f02d9ccf575..50f3a3d262c07a3b8b53ebd58e004ae737414e2f 100644 (file)
@@ -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' ')
 }