On Sat, Nov 03, 2007 at 10:58:13PM -0000, Amit Singh wrote:
> On Nov 3, 2:20 pm, Chris Frost <[EMAIL PROTECTED]> wrote:
> > In moving scord to macfuse 1.0, I found that macfuse incorrectly handles
> > self-referencing symlinks. One cannot create such files (eg 'ln -s foo foo')
> > or look at/manipulate them (eg 'ls foo' or 'rm foo'; the kernel returns 
> > ELOOP).
> > However, all is well if the defer_permissions option is passed to macfuse.
> 
> I don't think I fully understand what you said. Please clarify.

Sorry about not being explicit enough. More details below.


> 1. What "correct" behavior do you expect?

After 'ln -s foo foo':
- 'ls foo' should perhaps show foo
- 'rm foo' should remove foo


> 2. What "incorrect" behavior are you actually seeing?

After creating foo->foo:

$ ls foo
ls: foo: Too many levels of symbolic links
$ echo $?
1

$ rm foo
rm: foo: Too many levels of symbolic links
$ echo $?
1
$ ls foo
ls: foo: Too many levels of symbolic links

I was incorrect in stating that I could not create symlinks ('ln -s foo foo').


> 3. Have you compared the observed behavior with other MacFUSE file
> systems (xmp or sshfs, say), and also with native HFS+?

With fusexmp:
$ ls foo
ls: foo: Too many levels of symbolic links
$ echo $?
1
$ rm foo
rm: foo: Too many levels of symbolic links
$ echo $?
1
$ ls foo
ls: foo: Too many levels of symbolic links

With MacOSX HFS+:
$ ls foo
foo
$ echo $?
0
$ rm foo
$ echo $?
0
$ ls foo
ls: foo: No such file or directory

With Linux ext3:
$ ls foo
ls: foo: Too many levels of symbolic links
$ echo $? 
2
$ rm foo
$ echo $? 
0
$ ls foo
ls: foo: No such file or directory

With scord (a fuse file system, similar to xmp here) on Linux ext3:
$ ls foo
ls: foo: Too many levels of symbolic links
$ echo $? 
2
$ rm foo
$ echo $? 
0
$ ls foo
ls: foo: No such file or directory

-- 
Chris Frost  |  <http://www.frostnet.net/chris/>
-------------+----------------------------------
PGP: <http://www.frostnet.net/chris/pgpkey.txt>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to