theunreplicated / macfuse

Automatically exported from code.google.com/p/macfuse
Other
0 stars 0 forks source link

Unable to see link to non-existant files #321

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The soft links to non existant files (for exemple lock files from emacs),
are not listed:

ssh Remote:
ln -s non-existant lock
ls -l
total 536
lrwxrwxrwx    1 boudry   tesla          12 Jan 25 14:11 lock -> non-existant
...

ls -l /Volume/Remote/
ls: lock: No such file or directory
total 548
...

It is quite annoying since it prevent a sound use of emacs to edit remote
files... 

Best regards,
Vincent Boudry

Original issue reported on code.google.com by vincent....@gmail.com on 25 Jan 2008 at 1:15

GoogleCodeExporter commented 9 years ago
What kind of an issue report is this? You've mentioned your annoyance factor, 
but nothing about:

* The specific file system you're talking about. (I could guess sshfs based on 
your use of the term "ssh Remote", but you should realize 
that MacFUSE != sshfs.)
* The version of Mac OS X you're on.
* The version of MacFUSE you're using.
* The version of sshfs (if it is sshfs) you're using.
* If you indeed are talking about sshfs, the mount-time options that you're 
using with sshfs.

The last point is particularly important. Do you have "-ofollow_symlinks" 
enabled? Perhaps some GUI wrapper you might be using atop 
MacFUSE has this option enabled? I've seen people misunderstand in the past 
what this option does. It doesn't enable symlinks within 
sshfs (they are already "enabled"). However, it will cause the scenario you are 
seeing. Try running sshfs "manually" (so that options don't 
get set implicitly) from the command line and see if it works (it should work 
and it does work for me):

$ sshfs user@host:/some/dir /Volumes/Remote/
$ cd /Volumes/Remote/
$ ln -s non-existant lock
$ ls -las
...
8 lrwxr-xr-x   1 singh  wheel    12 Jan 25 08:52 lock -> non-existant
...
$ ls -las non-existant
ls: non-existant: No such file or directory # indeed non-existant

Original comment by si...@gmail.com on 25 Jan 2008 at 4:54

GoogleCodeExporter commented 9 years ago

Original comment by si...@gmail.com on 28 Jan 2008 at 2:21

GoogleCodeExporter commented 9 years ago
Bonjour,

Sorry for being so vague in my first post; let me try to complete the gaps:
I am of course using MacFusion (vers 1.1 rev 268 from subversion at Google 
Code) on
macosx 10.4.11 (PPC). 

on the sshfs side:
~/Applications/Utilitaires/sshfs.app/Contents/Resources/sshfs-static --version
SSHFS version 1.8 (MacFUSE SSHFS 1.0.0)
MacFUSE library version: FUSE 2.7.1 / MacFUSE 1.1.0
MacFUSE mount version 1.1.0
MacFUSE kernel interface version 7.8

Checking the sshfs command used, there is indeed a -ofollow_symlinks 
And it is the culprit for this behaviour; 

Now I would like to be able to follow the existing links (some point to valid
directories on the remote machine), AND edit my files (that is having some link
pointing to non-existant directories).

Best regards,
Vincent.

Original comment by vincent....@gmail.com on 4 Feb 2008 at 1:58