t-link-rename.sh: copyup test when renaming symlinks on readonly branches
authorErez_Zadok <ezk@cs.sunysb.edu>
Sun, 8 Jul 2007 01:51:01 +0000 (21:51 -0400)
committerErez_Zadok <ezk@cs.sunysb.edu>
Sun, 8 Jul 2007 01:51:01 +0000 (21:51 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
t-link-rename.sh

index 54e19502bd01c098e5cfde22e3154dbd4a3da21d..b020e84b05cd0ae6915d1ab4db924bb692d501ae 100755 (executable)
@@ -13,6 +13,7 @@ d $LOWER_DIR1
 d $LOWER_DIR2
 d $LOWER_DIR3
 f $LOWER_DIR2/abc
+l $LOWER_DIR2/foo
 FILES
 }
 
@@ -22,9 +23,12 @@ d $TOP_LOWER_DIR
 d $LOWER_DIR0
 l $LOWER_DIR0/abc
 f $LOWER_DIR0/abc_
+l $LOWER_DIR0/bar
+f $LOWER_DIR0/.wh.foo
 d $LOWER_DIR1
 d $LOWER_DIR2
 f $LOWER_DIR2/abc
+l $LOWER_DIR2/foo
 d $LOWER_DIR3
 FILES
 }
@@ -36,6 +40,8 @@ cd /mnt/unionfs/ > /dev/null
 ln -s abc abc3
 mv abc abc_
 mv abc3 abc
+# rename symlink on ro branch
+mv foo bar
 cd - > /dev/null
 
 unmount_union