From 7683fdd5a8401cc38ca7f3433f5cb41a541ea6d6 Mon Sep 17 00:00:00 2001 From: anserper Date: Mon, 6 Apr 2009 20:04:37 +0000 Subject: [PATCH] b=18695 o=Johann Lombardi i=Andreas Dilger the regression test --- lustre/tests/sanityN.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 9f63fc1..073df1f 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -818,6 +818,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 -- 1.8.3.1