From: Dave M. <Dav...@in...> - 2008-10-10 17:04:24
|
On Oct 10, 2008, at 12:40 PM, Miklos Szeredi wrote: [snip] >> It should be mapping the /home/jedgar/shared bit out, although I do >> have transform_symlinks set as an option. I'm guessing that the >> Operation Not Permitted error is actually occurring later, when it >> tries to stat() the target in the ln command. > > Right. Stating a symlink shouldn't normally be a problem, but the > 'follow_symlinks' option makes stat on a dangling link error out. My > guess is that you don't really need 'follow_symlinks', it just > complicates things. Unfortunately, I need follow_symlinks because the directory structure I'm accessing on the Mac side has some symlinks in it that map to mounted volumes (i.e. ~/WorkP4 -> /Volumes/WorkP4). > > >> My sshfs invocation is currently as follows: >> >> sshfs -o follow_symlinks -o IdentityFile=~/.ssh/sshfs-id -o >> idmap=user >> -o uid=1000 -o gid=1000 -o workaround=rename - >> odebug,sshfs_debug,loglevel=debug -o readdir_ino -o >> transform_symlinks >> mymac.local:/Users/jedgar ~/shared >> >> Is there some other trick to mapping symlinks? Or could this a bug? > > 'transform_symlinks' does not do anything with symlink creation, it > only transforms existing symlinks. So it looks like if you use follow_symlinks, you can't create symlinks on the remote side, for example (this occurs with or without translate_symlinks as you point out): jedgar@mymac-ubuntu:~/shared$ ln -s /home/jedgar/shared/.emacs foo ln: creating symbolic link `foo': Operation not permitted jedgar@mymac-ubuntu:~/shared$ ls -al | grep foo ls: cannot access foo.txt: Operation not permitted ?????????? ? ? ? ? ? foo > Have you tried '-otransform_symlinks' without '-ofollow_symlinks'? I tried it with transform_symlinks and without follow_symlinks, but that way, the WorkP4 tree is inaccessible (because it's not following symlinks on the server side): lrwxr-xr-x 1 jedgar jedgar 15 2008-08-12 11:31 WorkP4 -> /Volumes/ WorkP4 vs. this with follow_symlinks: drwx------ 1 jedgar jedgar 442 2008-10-09 23:08 WorkP4 Thanks! |