From: Hongchao Zhang Date: Wed, 27 Mar 2019 17:08:03 +0000 (-0400) Subject: LU-12068 test: compare position for ZFS dot entry X-Git-Tag: 2.12.2-RC1~7 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F34696%2F2;p=fs%2Flustre-release.git 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 --- 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