X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-dom.sh;h=41b29eb2b00cbb399bf8b3f23d192279fb5032cc;hb=7e0cba246a7f2408c8266574a657e4459f691570;hp=2ebccc32a594504122245b7b7205153885c93585;hpb=37d6d157a2a94e022f2e153c9191aa559daec321;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity-dom.sh b/lustre/tests/sanity-dom.sh index 2ebccc3..41b29eb 100644 --- a/lustre/tests/sanity-dom.sh +++ b/lustre/tests/sanity-dom.sh @@ -106,6 +106,20 @@ test_4() { } run_test 4 "DoM: glimpse doesn't produce duplicated locks" +test_6() { + $MULTIOP $DIR1/$tfile Oz40960w100_z200w100c & + MULTIPID=$! + + # let MULTIPID to create the file + sleep 1 + $MULTIOP $DIR2/$tfile oO_RDWR:Tw100c + kill -USR1 $MULTIPID + wait + $MULTIOP $DIR2/$tfile oO_RDWR:z400w100c + $CHECKSTAT -s 500 $DIR2/$tfile || error "wrong size" +} +run_test 6 "Race two writes, check file size" + test_fsx() { local file1=$DIR1/$tfile local file2=$DIR2/$tfile