Re: [AVFS] ~/.avfs and symlinks

Ralf Hoffmann <[email protected]> Sun, 05 Mar 2006 22:04:47 +0100
Newsgroups gmane.comp.file-systems.avfs.user
Message-ID <[email protected]>
Hi,

On 2006-01-31 16:41, Peter wrote:
> Don't know if this is even a bug, but avfs has problems when a symlinked
> directory is used. For example,

I have looked into this problem and I think it's not a bug in avfs. The
kernel asks the avfsd for the attributes for each part of the path. In
case of a symlink the kernel asks avfsd to "readlink" and avfs returns
the destination of the symlinks. If this is an absolute link, the
destination is outside the avfs mount point and the kernel don't ask
avfsd again.

The only solution I can think of is to concatenate the avfs mountpoint
and the actual link destination for absolute links. On the one hand I
don't like the idea of returning modified data but on the other hand the
"file system in user space" can return whatever it want so it can also
return a modified symlink destination.

Miklos, what do think about this. And is there an easy way to get the
mount point (except parsing /proc/mounts)?

I'm not sure what will happen if someone does a chroot to the avfs
mountpoint. In this case the symlink rewriting could be wrong again.

Best Regards,

Ralf Hoffmann

-- 
Homepage: http://www.boomerangsworld.de
E-Mail: Ralf Hoffmann <[email protected]>
  english or german







-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642