X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=5715d67705b37878ac3b0db6c8f9c4a070a544b2;hp=ff6a319f5a627b1b3535cc4950c53deba66c1a1b;hb=2d6315fbeab3c815efa3ea7b953ff34e6f3fa3fc;hpb=a8065335e2588059b6c7e18357ea9ee4def50a68 diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index ff6a319..5715d67 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -12246,6 +12246,23 @@ test_237() { } run_test 237 "Verify name_to_handle_at/open_by_handle_at syscalls" +# LU-4659 linkea consistency +test_238() { + touch $DIR/$tfile + ln $DIR/$tfile $DIR/$tfile.lnk + touch $DIR/$tfile.new + mv $DIR/$tfile.new $DIR/$tfile + local fid1=$(lfs path2fid $DIR/$tfile) + local fid2=$(lfs path2fid $DIR/$tfile.lnk) + local path1=$(lfs fid2path $FSNAME $fid1) + [ $tfile == $path1 ] || error "linkea inconsistent: $tfile $fid1 $path1" + local path2=$(lfs fid2path $FSNAME $fid2) + [ $tfile.lnk == $path2 ] || + error "linkea inconsistent: $tfile.lnk $fid2 $path2!" + rm -f $DIR/$tfile* +} +run_test 238 "Verify linkea consistency" + test_striped_dir() { local mdt_index=$1 local stripe_count