Re: [AVFS] ~/.avfs and symlinks
Peter <[email protected]> Fri, 03 Feb 2006 08:39:38 -0500
| Newsgroups | gmane.comp.file-systems.avfs.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 02 Feb 2006 21:05:04 +0100, Ralf Hoffmann wrote: snip > Thanks. I didn't used the fuse code yet so I didn't noticed this but I > will take a look into this problem ASAP. > > Best Regards, > > Ralf Hoffmann Well, AFAIK, fuse is the only option with kernel > 2.6. I could not get coda or preload to work at all with current kernels. Please let me know if I can help at all. However, in pseudo code this check might work. read avfs request parse directory/filename for each node in directory is symlink? readlink substitute real link for symlink prepend to filename next node dir1 -> dir-real ex: ls ~/.avfs/dir1/dir2/dir3/file.tar# parse_directory = /dir1/dir2/dir3 filename = file.tar# for dir in parse_directory is dir1 symlink? yes readlink dir1 -> dir-real parse_directory -> /dir-real/dir2/dir3 next is dir2 symlink? no next is dir3 symlink? no end for parse_directory now = /dir-real/dir2/dir3/ new command is ls ~/.avfs/parse_directory/filename Or, perhaps it would work better going from the leaf to the first node? JM2C HTH -- Do not reply to this email address. It is a spam trap and not monitored. If you wish to contact me, please use pete4abw at comcast dot net. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642