Shaya Potter:
> ooo, please point out problems.  

I was confused file and dir.
Your patch disabled file lseek, but dir.
Please forget about that.

You wrote that your are using debian and could not run all of unionfs
regression testsuits. I hope this tiny patch will help you.

Junjiro Okajima

--- unionfs-20060304-1620/regression/lookup-opaque.sh   5 Mar 2006 20:58:55 
-0000       1.1
+++ unionfs-20060304-1620/regression/lookup-opaque.sh   5 Mar 2006 21:33:27 
-0000       1.2
@@ -21,7 +21,8 @@ FILES
 }
 function cleanup {
        unmount_union
-       userdel -r $UNPRIV_USER
+       #userdel -r $UNPRIV_USER
+       deluser --quiet $UNPRIV_USER
 }
 
 branch_files | create_hierarchy
@@ -36,13 +37,16 @@ chmod 644 $LOWER_DIR/b1/dir/rw
 
 PRIV_USER="root"
 UNPRIV_USER="unionfs_test"
+UNPRIV_USER="unionfstest"
 
 if [ `cat /etc/passwd | grep $UNPRIV_USER | wc -l` -ne 0 ]; then
        echo "User $UNPRIV_USER exists!"
        exit 1
 fi
 
-useradd -d /tmp/$UNPRIV_USER -g nobody $UNPRIV_USER
+#useradd -d /tmp/$UNPRIV_USER -g nobody $UNPRIV_USER
+adduser --disabled-login --disabled-password --gecos "" \
+       --no-create-home --quiet --ingroup nogroup $UNPRIV_USER
 
 chown $UNPRIV_USER $LOWER_DIR/b0
 chown $UNPRIV_USER $LOWER_DIR/b1

--- unionfs-20060304-1620/regression/scaffold   5 Mar 2006 20:58:56 -0000       
1.1
+++ unionfs-20060304-1620/regression/scaffold   5 Mar 2006 21:33:27 -0000       
1.2
@@ -3,6 +3,9 @@
 #vim:shiftwidth=8
 
 set -e
+unionctl() { /tmp/unionctl $@; }
+uniondbg() { /tmp/uniondbg $@; }
+/bin/unlink() { unlink $@; }
 echo -n "$0: "
 
 if [ -z "$MOUNTPOINT" ] ; then


_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to