From 1e6cd6b21fc37420341fdb0dcec366bb3feb350e 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. Lustre-change: https://review.whamcloud.com/34525 Lustre-commit: 42adbae36f206a6ed4170e7619cd993c8fa80b1d Change-Id: I98aee1ae92fa5ea742a8001b58e092111d646477 Signed-off-by: Hongchao Zhang Reviewed-by: Patrick Farrell Reviewed-by: Andreas Dilger Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/34696 Tested-by: Jenkins 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 a7239a7..a45e9ab 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