Hi Tomas,
Glad to hear from you again.

Tomas M:
> can I use aufs mount as a branch of another aufs mount?

Basically, you can't.
Technically, such hierarchy will cause an internal recursive call which
consumes the stack space a lot. Aufs explicitly prohibited it in the
beginning. Later, another user had requested me to support it, and I did
after some investigation and consideration. It was implemented with
CONFIG_AUFS_ROBR "Aufs as an readonly branch of another aufs mount" in
aufs1-age. But the feature was un-popular and I removed it when aufs has
grown up.

Current linux kernel consumes the less stack space than it used
to. Additinonally the small stack space (4KB) configuration is gone
now. So I guess it should be enough possible now. But it is suspicious
for me to think it is really necessary.


> Is there any workaround?
> My goal is to create a chroot which will have current root as a
> readonly branch, and tmpfs as writable branch.

Why don't you try stacking onto a single aufs mount?
- /(root) = /rwA + /roB
- /union = /changes
- /union(new) = /changes + /rwA + /roB
  instead of
  /union(new) = /changes + /root


J. R. Okajima

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

Reply via email to