Tomas M:
> It was in Linux Live CD all the time, using 'mount' command from 
> busybox. Now I tried it in a normal Linux (installed) and it doesn't 
> segfault, remount simply exits with E2BIG (Argument list too long).

Thi is the effect of the patch I sent.
If you used the un-patched aufs, it would not return the error and cause
a problem.


> I noticed the line in /etc/mtab (mount arguments) can't be longer than 
> 4096 characters. This is 2^12 I guess.

Yes, it is the limitation of mount and /proc/mounts. It is the size of a
memory page.
And aufs will try sysfs as you suggested.

----------------------------------------------------------------------

> Now I decided to skip unionctl at all, and use
> 
>    mount -n -o remount,add:1:/new/branch=ro aufs /union
        :::
> Remount segfaults the same in Live CD. BUT! I am unable to reproduce the 
> problem in my installed Linux, even if using busybox's mount. So it it 
> very strange :)

Please let me make sure.
- you did it on your hdd-installed Linux, instead of Live CD
- the aufs patch was applied
- mount.aufs was not installed
- you executed busybox mount -n -o remount,add:1:/new/branch=ro aufs /union
- the busybox aborted by segfault

Which problem do you wrote as "unable to reproduce"?

----------------------------------------------------------------------

> So here is how did I fix it:
> - I call:
> 
>      mount -o remount,ro aufs .

Well, probably it is a busybox issue.
But aufs should work correctly which includes the expected error.
Do you think aufs has no problem anymore?
I am confused a little...


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

Reply via email to