Whamcloud - gitweb
b=22301 lustre.lov error when backing up symlinks with extended attributes
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Tue, 6 Apr 2010 00:08:28 +0000 (20:08 -0400)
committerJohann Lombardi <johann@sun.com>
Tue, 6 Apr 2010 08:42:32 +0000 (10:42 +0200)
 sanity test_17k created

 o=grev
 i=dmitry.zogin

lustre/tests/sanity.sh

index bf1c322..8b0e3c1 100644 (file)
@@ -471,6 +471,17 @@ test_17i() { #bug 20018
 }
 run_test 17i "don't panic on short symlink"
 
+test_17k() { #bug 22301
+        rsync --help | grep -q xattr ||
+                skip_env "$(rsync --version| head -1) does not support xattrs"
+        mkdir -p $DIR/{$tdir,$tdir.new}
+        touch $DIR/$tdir/$tfile
+        ln -s $DIR/$tdir/$tfile $DIR/$tdir/$tfile.lnk
+        rsync -av -X $DIR/$tdir/ $DIR/$tdir.new ||
+                error "rsync failed with xattrs enabled"
+}
+run_test 17k "symlinks: rsync with xattrs enabled ========================="
+
 test_18() {
        touch $DIR/f
        ls $DIR || error