From: zam Date: Thu, 16 Apr 2009 08:00:59 +0000 (+0000) Subject: Branch b1_8 X-Git-Tag: v1_8_0_110~94 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ffeaf5c36a21a3674711a54e7b2ece7b9f1b2d16;p=fs%2Flustre-release.git Branch b1_8 b=18988 i=Alexey.Lyashkov new sanity test for for O_APPEND. --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 6c8c8f6..1943b70 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -527,7 +527,8 @@ test_22() { } run_test 22 "unpack tar archive as non-root user ===============" -test_23() { +# was test_23 +test_23a() { mkdir -p $DIR/$tdir local file=$DIR/$tdir/$tfile @@ -535,7 +536,19 @@ test_23() { openfile -f O_CREAT:O_EXCL $file && error "$file recreate succeeded" || true } -run_test 23 "O_CREAT|O_EXCL in subdir ==========================" +run_test 23a "O_CREAT|O_EXCL in subdir ==========================" + +test_23b() { # bug 18988 + mkdir -p $DIR/$tdir + local file=$DIR/$tdir/$tfile + + rm -f $file + echo foo > $file || error "write filed" + echo bar >> $file || error "append filed" + $CHECKSTAT -s 8 $file || error "wrong size" + rm $file +} +run_test 23b "O_APPEND check ==========================" test_24a() { echo '== rename sanity =============================================='