X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=bd56ac5c1e991d13a69752c11b7849ad8e85e7a7;hp=5225cd0a03dde7dbd2524899eea9a1e987f20b2d;hb=5b53406773c7fe9b9fa9f2ef4c342f85b5db1de1;hpb=2bb3a7f6b9889af696485267eb254db7980fe193 diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 5225cd0..bd56ac5 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -7420,6 +7420,25 @@ test_180b() { } run_test 180b "test obdecho directly on obdfilter" +test_181() { # bug 22177 + mkdir -p $DIR/$tdir || error "creating dir $DIR/$tdir" + # create enough files to index the directory + createmany -o $DIR/$tdir/foobar 4000 + # print attributes for debug purpose + lsattr -d . + # open dir + multiop_bg_pause $DIR/$tdir D_Sc || return 1 + MULTIPID=$! + # remove the files & current working dir + unlinkmany $DIR/$tdir/foobar 4000 + rmdir $DIR/$tdir + kill -USR1 $MULTIPID + wait $MULTIPID + stat $DIR/$tdir && error "open-unlinked dir was not removed!" + return 0 +} +run_test 181 "Test open-unlinked dir ========================" + # OST pools tests POOL=${POOL:-cea1} TGT_COUNT=$OSTCOUNT