X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanityn.sh;h=c251532868b32bfdb7a3e639c87480b1d17b1a98;hp=8ee25b7075d85958ef9ee404506630249f633720;hb=7c99f67d9d39e8a037e830cf08a9df305e6d8da2;hpb=6dc37759cfb22727ac5d776c38b72e8638563fd8 diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 8ee25b7..c251532 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -4913,6 +4913,17 @@ test_104() { } run_test 104 "Verify that MDS stores atime/mtime/ctime during close" +test_105() { + test_mkdir -p $DIR/$tdir + echo test > $DIR/$tdir/$tfile + $LCTL set_param fail_loc=0x416 + cancel_lru_locks osc & sleep 1 + fsize1=$(stat -c %s $DIR2/$tdir/$tfile) + wait + [[ $fsize1 = 5 ]] || error "Glimpse returned wrong file size $fsize1" +} +run_test 105 "Glimpse and lock cancel race" + log "cleanup: ======================================================" # kill and wait in each test only guarentee script finish, but command in script