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

WinFsp Network Mount Service: Cannot mount two filesystems with same volume name #74

Closed
infeo opened this issue Mar 29, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@infeo
Copy link
Member

infeo commented Mar 29, 2023

The WinFsp network mount service has the capability VOLUME_NAME, which allows to set the drive name shown in the Windows Explorer.

But when mounting two different filesystems with the same volume name, mounting the second one fails with message to stdout:

Cannot create WinFsp-FUSE file system.
The service java has failed to start (Status=80070050).

I assume the error code is something like ALREADY_EXISTS, because in Windows there can only be one \\server\share at a given time and in our case server is a constant string and share is the volume name.

@infeo infeo self-assigned this Mar 29, 2023
@infeo infeo added the bug label Mar 29, 2023
@infeo infeo added this to the 2.0.5 milestone Mar 29, 2023
@infeo
Copy link
Member Author

infeo commented Mar 29, 2023

The minimum change required is to add the mount capability VOLUME_ID to the mounter and use it for the VolumePrefix option.

When using both volname and volumePrefix, the first one is ignored, so the volume name and volume id need to be used in the VolumePrefix` option.

@infeo infeo closed this as completed in 595b712 Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant