X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=fc42bc0e5e9b5a3bd5375cfb488263e0570d0850;hp=7d21b7458b78eaddb8394d8b34735dd13545cdc8;hb=5ea8210977958fa102baf3ed8450ca962cabcf25;hpb=db46ab8d95b1c6e040039c65acb0c30641421659 diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 7d21b74..fc42bc0 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3127,6 +3127,26 @@ test_39n() { # LU-3832 } run_test 39n "check that O_NOATIME is honored" +test_39o() { + TESTDIR=$DIR/$tdir/$tfile + [ -e $TESTDIR ] && rm -rf $TESTDIR + mkdir -p $TESTDIR + cd $TESTDIR + links1=2 + ls + mkdir a b + ls + links2=$(stat -c %h .) + [ $(($links1 + 2)) != $links2 ] && + error "wrong links count $(($links1 + 2)) != $links2" + rmdir b + links3=$(stat -c %h .) + [ $(($links1 + 1)) != $links3 ] && + error "wrong links count $links1 != $links3" + return 0 +} +run_test 39o "directory cached attributes updated after create ========" + test_40() { dd if=/dev/zero of=$DIR/$tfile bs=4096 count=1 $RUNAS $OPENFILE -f O_WRONLY:O_TRUNC $DIR/$tfile &&