Whamcloud - gitweb
Branch HEAD
authorbobijam <bobijam>
Thu, 16 Oct 2008 01:41:11 +0000 (01:41 +0000)
committerbobijam <bobijam>
Thu, 16 Oct 2008 01:41:11 +0000 (01:41 +0000)
b=17038
i=johann

regression test case for getxattr upon symlink file.

lustre/tests/sanity.sh

index 4db4a3c..a40e440 100644 (file)
@@ -4114,6 +4114,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