On Wed, 2 Nov 2005, Erez Zadok yowled:
> in your .fist file, which'd compile in some code in main.c.  But that's in
> the templates.  But that's for using fistgen.  In unionfs, the code has been
> changed to always use iunique or else the persistent-inums.

OK, so if I make a forward map and add to it reverse maps for every
non-bind-mounted filesystem visible from the current root, then
mount-point crossing into those filesystems should work?

Let's see:

unionimap -c /tmp/maps/a.map
for name in $(awk '{print $2}' < /proc/mounts | sort -u); do
    [[ "$(df -aPT $name | tail -1 | awk '{print $2;}')" == "none" ]] && continue
    mapname=$name
    [[ "$mapname" == "/" ]] && mapname=/root
    unionimap -a /tmp/maps/a.map /tmp/maps/$(echo $mapname | tr "/" "-" | cut 
-c2-).map $name
done

mount -t unionfs -o dirs=/tmp/foo=rw:/=ro,imap=$(echo /tmp/maps/*.map | tr " " 
":") none /tmp/unionfs

amaterasu:/# ls -l /tmp/unionfs/usr
total 0

Nope, no sign of mount-point-crossing yet.

What am I doing wrong?

-- 
`"Gun-wielding recluse gunned down by local police" isn't the epitaph
 I want. I am hoping for "Witnesses reported the sound up to two hundred
 kilometers away" or "Last body part finally located".' --- James Nicoll
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to