From 42adbae36f206a6ed4170e7619cd993c8fa80b1d Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Wed, 27 Mar 2019 13:08:03 -0400 Subject: [PATCH] LU-12068 test: compare position for ZFS dot entry in test_6b of sanity-lfsck.sh, the position will be zero for special entries "." and "..", which should not be used to determine whether the LFSCK process is forward or not, in this case, the otable position should be used. Change-Id: I98aee1ae92fa5ea742a8001b58e092111d646477 Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/34525 Tested-by: Jenkins Reviewed-by: Patrick Farrell Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity-lfsck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-lfsck.sh b/lustre/tests/sanity-lfsck.sh index 66eba95..ed3a84e 100644 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -786,7 +786,8 @@ test_6b() { echo "Additional debug for 6b" $SHOW_NAMESPACE - if [ "$D_POS0" == "N/A" -o "$D_POS1" == "N/A" ]; then + if [ "$D_POS0" == "N/A" -o "$D_POS0" == "0x0" \ + -o "$D_POS1" == "0x0" -o "$D_POS1" == "N/A" ]; then [[ $O_POS0 -lt $O_POS1 ]] || error "(7.1) $O_POS1 is not larger than $O_POS0" else -- 1.8.3.1