From 55f06628c5e17a97ced1831f2b702c3e2295475b Mon Sep 17 00:00:00 2001 From: bobijam Date: Tue, 12 Aug 2008 01:31:54 +0000 Subject: [PATCH] Branch HEAD b=16570 i=h.huang add a testcase on replaying setxattr op. --- lustre/tests/replay-single.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index be32780..f32aee2 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -1356,6 +1356,19 @@ test_58() { } run_test 58 "test recovery from llog for setattr op (test llog_gen_rec)" +test_58a() { + mkdir -p $DIR/$tdir + touch $DIR/$tdir/$tfile + replay_barrier $SINGLEMDS + setfattr -n trusted.foo -v bar $DIR/$tdir/$tfile + fail $SINGLEMDS + VAL=`getfattr --absolute-names --only-value -n trusted.foo $DIR/$tdir/$tfile` + [ x$VAL = x"bar" ] || return 1 + rm -f $DIR/$tdir/$tfile + rmdir $DIR/$tdir +} +run_test 58a "test replay of setxattr op" + # log_commit_thread vs filter_destroy race used to lead to import use after free # bug 11658 test_59() { -- 1.8.3.1