From 11573d78ea33a5ca0245ff487da124531dce08e8 Mon Sep 17 00:00:00 2001 From: bobijam Date: Thu, 16 Oct 2008 01:45:50 +0000 Subject: [PATCH] Branch b1_8_gate b=17038 i=johann regression test case for getxattr upon symlink file. --- lustre/tests/sanity.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index e620c99..2cf74f93 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3705,7 +3705,7 @@ test_101b() { local ITERATION=$((FILE_LENGTH/STRIDE_SIZE)) # prepare the read-ahead file setup_101b - cancel_lru_locks osc + cancel_lru_locks osc for BIDX in 2 4 8 16 32 64 128 256; do local BSIZE=$((BIDX*4096)) local READ_COUNT=$((STRIPE_SIZE/BSIZE)) @@ -4033,6 +4033,15 @@ test_102h() { # bug 15777 } run_test 102h "grow xattr from inside inode to external block" +test_102i() { # bug 17038 + touch $DIR/$tfile + ln -s $DIR/$tfile $DIR/${tfile}link + getfattr -n trusted.lov $DIR/$tfile || error "lgetxattr on $DIR/$tfile failed" + getfattr -h -n trusted.lov $DIR/${tfile}link 2>&1 | grep -i "no such attr" || error "error for lgetxattr on $DIR/${tfile}link is not ENODATA" + rm -f $DIR/$tfile $DIR/${tfile}link +} +run_test 102i "lgetxattr test on symbolic link ============" + run_acl_subtest() { $LUSTRE/tests/acl/run $LUSTRE/tests/acl/$1.test @@ -5523,7 +5532,7 @@ test_151() { $LCTL set_param obdfilter.*.writethrough_cache_enable=1 - # pages should be in the case right after write + # pages should be in the case right after write dd if=/dev/urandom of=$DIR/$tfile bs=4k count=$CPAGES||error "dd failed" BEFORE=`roc_hit` cancel_lru_locks osc -- 1.8.3.1