X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-quota.sh;h=073a5af41a453739086676f371169934e63b8517;hp=ede05946d41ba450ab8161c33dd9219881e12dff;hb=d189024bd3065c69c51ba90f6228c3ea28419dd0;hpb=04585d02d1e175cb74254c58ee65291ff707a888 diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index ede0594..073a5af 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -3030,7 +3030,7 @@ test_55() { } run_test 55 "Chgrp should be affected by group quota" -test_56 () { +test_56() { setup_quota_test || error "setup quota failed with $?" set_ost_qtype $QTYPE || error "enable ost quota failed" @@ -3049,6 +3049,27 @@ test_56 () { } run_test 56 "lfs quota -t should work well" +test_57() { + setup_quota_test || error "setup quota failed with $?" + + local dir="$DIR/$tdir/dir" + mkdir -p $dir + mkfifo $dir/pipe + #try to change pipe file should not hang and return failure + wait_update_facet client "$LFS project -sp 1 $dir/pipe 2>&1 | + awk -F ':' '{ print \\\$2 }'" \ + " failed to get xattr for '$dir/pipe'" || return 1 + #command can process further if it hit some errors + touch $dir/aaa $dir/bbb + #create one invalid link file + ln -s $dir/not_exist_file $dir/ccc + local cnt=$(lfs project -r $dir 2>/dev/null | wc -l) + [ $cnt -eq 2 ] || error "expected 2 got $cnt" + + cleanup_quota_test +} +run_test 57 "lfs project could tolerate errors" + test_59() { if [ $(facet_fstype $SINGLEMDS) != ldiskfs ]; then skip "ldiskfs only test"