Patrick:
> > - How did you mount your aufs?
> >   
> by using 'mount -w -t aufs -o dirs=/new=rw:/real_root=ro none /union' in 
> the init script of an initramfs .. right after pre-mount and mounting 
> scripts of the rootfs have been run.

Thank you.
Then, you didn't use '-n', did you?
And your /etc/mtab file still doesn't exist, right?
How about CONFIG_AUFS_COMPAT? Did you define it?


> > - How is /proc/mounts just before you remount or unionctl? Will you show
> >   us?
> >   
> Sure:

Ok.
I recognize that you have mounted aufs with one tmpfs and one
ext3. Additionally, you have several mounts under aufs.


> confusing me since theres not much documentation about using a stackable 
> filesystem with an initramfs thus especially during boot process.
> Thus I asked here to get more detailed information than I could retrieve 
> by using google for the past few days.

There is a sample linuxrc script under aufs/sample directory. Doesn't it
help you?


> Heh, then again I dont see any reason for shipping it within the aufs 
> sources. (or recommending it on SF's project page as a substution for 
> the equivalent tool of unionfs).

It was just for compatibility with unionfs.
CONFIG_AUFS_COMPAT is disabled by default, and will be deleted as it was
announced. I don't mean to *recommend* it by these sentences which are
left still.

----------------------------------------------------------------------
And there is a simple shell
script 'unionctl' which is compatible with unionctl(8) in
Unionfs, except --query action.
This script executes mount(8) with 'remount' option and uses
add/del/mod aufs mount options.
If you are familiar with Unionfs and want to use unionctl(8), you can
try this script instead of using mount -o remount,... directly.
Aufs does not support ioctl(2) interface.
This script is highly depending upon mount(8) in
util-linux-2.12p package, and you need to mount /proc to use this script.
If your mount(8) version differs, you can try modifying this
script. It is very easy.
----------------------------------------------------------------------

Finally, do you distinguish which systemcall took a long time, your 8
min? Is it all mount(2) with MS_REMOUNT?


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