Whamcloud - gitweb
LU-12068 test: compare position for ZFS dot entry 96/34696/2
authorHongchao Zhang <hongchao@whamcloud.com>
Wed, 27 Mar 2019 17:08:03 +0000 (13:08 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 10 May 2019 21:04:28 +0000 (21:04 +0000)
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 <hongchao@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34696
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-lfsck.sh

index a7239a7..a45e9ab 100644 (file)
@@ -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