X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-lfsck.sh;h=23139b0f6ed64a5088a88cbe0e61caf92e1738a7;hb=c202c54d6d84f54560474f3a6f316af4fdd9e475;hp=4d203d61754fc47ce1d01365413abfc8457fd329;hpb=95e809e700e6cce6fc8cd8c3b245ff2b1daafdaa;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity-lfsck.sh b/lustre/tests/sanity-lfsck.sh index 4d203d6..23139b0 100644 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -388,6 +388,9 @@ test_4() do_facet $SINGLEMDS $LCTL set_param fail_loc=0x1505 ls $DIR/$tdir/ > /dev/null || error "(11) no FID-in-dirent." + local count=$(ls -al $DIR/$tdir | wc -l) + [ $count -gt 9 ] || error "(12) namespace LFSCK failed" + do_facet $SINGLEMDS $LCTL set_param fail_loc=0 } run_test 4 "FID-in-dirent can be rebuilt after MDT file-level backup/restore"