From: anserper Date: Mon, 6 Apr 2009 19:46:36 +0000 (+0000) Subject: b=18695 X-Git-Tag: v1_8_0_110~123 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=deb271bf6c6c5cb165e7e8e60e534b26424f2c37;p=fs%2Flustre-release.git b=18695 o=Johann Lombardi i=Andreas Dilger the regression test --- diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index caabca7..ca7d895 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -816,6 +816,21 @@ test_36() { #bug 16417 } run_test 36 "handle ESTALE/open-unlink corectly" +test_37() { # bug 18695 + mkdir -p $DIR1/$tdir + multiop_bg_pause $DIR1/$tdir D_c || return 1 + MULTIPID=$! + # create large directory (32kB seems enough from e2fsck, ~= 1000 files) + createmany -m $DIR2/$tdir/f 10000 + # set mtime/atime backward + touch -t 198001010000 $DIR2/$tdir + kill -USR1 $MULTIPID + nr_files=`lfs find $DIR1/$tdir -type f | wc -l` + [ $nr_files -eq 10000 ] || error "$nr_files != 10000 truncated directory?" + +} +run_test 37 "check i_size is not updated for directory on close (bug 18695) ==============" + log "cleanup: ======================================================" check_and_cleanup_lustre