X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2FsanityN.sh;h=9008dce9bebf7d4a5fecbf3aad7e8064ff248dab;hb=a690d548b7b5e581470776335c33d322420722fa;hp=4dd8bbd52685995523f45face7dbbed07d236837;hpb=e087be6fc9255e1d909e4449cbe79f1ee200ce09;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 4dd8bbd..9008dce9 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -882,6 +882,32 @@ test_35() { # bug 17645 } run_test 35 "-EINTR cp_ast vs. bl_ast race does not evict client" +test_36() { #bug 16417 + local SIZE + mkdir -p $MOUNT1/$tdir + lfs setstripe -c -1 $MOUNT1/$tdir + i=0 + SIZE=100 + + while [ $i -le 10 ]; do + lctl mark "start test" + before=$($LFS df | awk '{if ($1 ~/^filesystem/) {print $5; exit} }') + dd if=/dev/zero of=$MOUNT1/$tdir/file000 bs=1M count=$SIZE + dd if=$MOUNT2/$tdir/file000 of=/dev/null bs=1M count=$SIZE & + read_pid=$! + sleep 0.1 + rm -f $MOUNT1/$tdir/file000 + wait $read_pid + after=$($LFS df | awk '{if ($1 ~/^filesystem/) {print $5; exit} }') + if [ $before -gt $after ]; then + error "space leaked" + exit; + fi + let i=i+1 + done +} +run_test 36 "handle ESTALE/open-unlink corectly" + log "cleanup: ======================================================" check_and_cleanup_lustre