Re: unionctl issue
I try to explain with examples: [EMAIL PROTECTED] aufs]# mount -n -t aufs -o br=/mnt/aufs/.changes=rw:/mnt/aufs/dir1=ro none /mnt/aufs/filesystem [EMAIL PROTECTED] aufs]# unionctl /mnt/aufs/filesystem --list /mnt/aufs/.changes (rw-) /mnt/aufs/dir1 (r--) Add a new branch with original unionctl: [EMAIL PROTECTED] aufs]# unionctl /mnt/aufs/filesystem --add --before /mnt/aufs/dir1 --mode ro /etc [EMAIL PROTECTED] aufs]# unionctl /mnt/aufs/filesystem --list /etc (r--) /mnt/aufs/.changes (rw-) /mnt/aufs/dir1 (r--) /etc goes two position above dir1, when should go only one. With unionctl modifyed: [EMAIL PROTECTED] aufs]# unionctl /mnt/aufs/filesystem --add --before /mnt/aufs/dir1 --mode ro /etc [EMAIL PROTECTED] aufs]# unionctl /mnt/aufs/filesystem --list /mnt/aufs/.changes (rw-) /etc (r--) /mnt/aufs/dir1 (r--) > test $bindex -lt 0 && bindex=0 || : This test is with --before and --after is always false: With --before $bindex is 0 (with original unionctl), and 1 with my modification. With --after $bindex is 2. I hope you have understand now ;) Regards, Fernando Gomes - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Re: unionctl issue
"Fernando A. P. Gomes": > [EMAIL PROTECTED] aufs]# > unionctl /mnt/aufs/filesystem --add --before /mnt/aufs/dir1 --mode ro /etc > > [EMAIL PROTECTED] aufs]# unionctl /mnt/aufs/filesystem --list > /etc (r--) > /mnt/aufs/.changes (rw-) > /mnt/aufs/dir1 (r--) > > /etc goes two position above dir1, when should go only one. Thank you very much. I will include this patch in next Monday release. Junjiro Okajima -- Index: util/unionctl === RCS file: /cvsroot/aufs/aufs/util/unionctl,v retrieving revision 1.18 diff -u -p -r1.18 unionctl --- util/unionctl 19 Feb 2007 03:26:18 - 1.18 +++ util/unionctl 20 Feb 2007 13:12:20 - @@ -129,7 +129,6 @@ do_add() do case "$1" in --before) bindex=`find_bindex "$2"` - bindex=`expr $bindex - 1` || : ;; --after)bindex=`find_bindex "$2"` bindex=`expr $bindex + 1` || : - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV