libfuse / sshfs

A network filesystem client to connect to SSH servers
GNU General Public License v2.0
5.73k stars 488 forks source link

Incorrect mapping from local storage to remote storage #298

Closed fungtion closed 3 months ago

fungtion commented 3 months ago

Hi, I install sshfs on local machine A, and I create a link to /data in my home. Then I use sshfs to mapping the remote machine B to machine A, and B also has a link to its /data in its home. When I open the /data of B, I find it actually points to /data of A, can you help me to get the correct mapping?

h4sh5 commented 3 months ago

Can you describe the commands you ran on each machine please?

fungtion commented 3 months ago

on machine A:

On machine B:

Then when I open ~/b/ on A, I find this folder is actually points to /data of A instead of B

bfleischer commented 3 months ago

In case you are on macOS, the mount option jail_symlinks might be what you are looking for. When specifying jail_symlinks, all absolute symlinks on the mounted volume are prefixed with the mount point of the volume.

fungtion commented 3 months ago

@bfleischer Thanks, I'm on Ubuntu, after I add -o follow_symlinks, it works