Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to mount Fuse Drive on a Mapped Network Drive in Windows #33

Closed
mohankumarv2005 opened this issue Jun 27, 2019 · 5 comments
Closed

Comments

@mohankumarv2005
Copy link

I have a mapped network drive (R:) which is pointing one of the folder on the network E.g. "\server-share\files". When I try to mount FUSE drive to let's say "R:\Fuse" I get below error "Cannot set WinFsp-FUSE file system mount point".

However, I am able to mount Fuse to Local Drive like "C:\Fuse". I have ensured "Fuse" folder is not present.

Any idea on this issue?

@billziss-gh
Copy link
Collaborator

Can you please post the full FUSE command line that you use to mount the file system (i.e. the arguments to host.Mount)?

Keep in mind you cannot mount a "network" file system to a directory. Only "disk" file systems can be mounted on directories.

@mohankumarv2005
Copy link
Author

Sure, here it is:

options := []string{"-o", "volname=Altair", "-o", "uid=-1", "-o", "gid=-1"}
host.Mount("R:\Fuse", options)

Note: The directory "Fuse" do not exist on R:

@billziss-gh
Copy link
Collaborator

In order to mount on a directory, WinFsp must be able to set a "reparse point" on the (newly created) directory.

This is done in the WinFsp internal call FspFileSystemSetMountPoint_Directory. There are a few reasons why this may fail, but I am suspecting that the problem is that the "reparse point" fails on the network drive.

Is the network drive on a Windows server? For example, I believe there are some issues with reparse points on Samba shares.

@mohankumarv2005
Copy link
Author

Sorry for delayed response. The Network Server Setup is on Linux (OneFS).
So, it is expected to work?

@billziss-gh
Copy link
Collaborator

If the server properly supports reparse points (e.g. a Windows server) I believe that it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants