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
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
Hi Fernando, "Fernando A. P. Gomes": > I'm using unionctl (I now that I should change to mount directly), but > meanwhile the --before should be: > > --before) bindex=`find_bindex "$2"` > bindex=`expr $bindex` || : ::: > With $bindex - 1 it add the branch two branches arrive, and not one. Unfortunately, I cannot get what you meant. Do you mean $bindex-1 is a problem? What problem did you meet? The minus value will be converted by 0 later. You will find this line in do_add() in unionctl. test $bindex -lt 0 && bindex=0 || : Junjiro Okajima - 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
unionctl issue
Hi Junjiro, I'm using unionctl (I now that I should change to mount directly), but meanwhile the --before should be: --before) bindex=`find_bindex "$2"` bindex=`expr $bindex` || : and not --before) bindex=`find_bindex "$2"` bindex=`expr $bindex - 1` || : With $bindex - 1 it add the branch two branches arrive, and not one. 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