-
Notifications
You must be signed in to change notification settings - Fork 86
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: Can't set read only file system #15
Comments
It is possible to mark a file system as read-only on WinFsp-FUSE by passing the (WinFsp specific) flag
Clearly this is an area where the WinFsp core could be improved (e.g. by rejecting write requests at the kernel level if the file system is marked read-only). Until that happens I recommend treating every file system as read-write and explicitly rejecting the requests that you do not want to handle with [NOTE: The WinFsp-FUSE supported options are here and a few additional ones here]. |
Adds a new read-only flag that prevents the fuseftp client from making any kind of modifications to the mounted file system. The winfsp fuse implementation doesn't provide a "ro" option, so this addition is implemented by letting all methods that modify the file system return an error. See winfsp/cgofuse#15 for more info. This is a client-only implementation. It does not require any additional features from the server. Signed-off-by: Thomas Hallgren <[email protected]>
Adds a new read-only flag that prevents the fuseftp client from making any kind of modifications to the mounted file system. The winfsp fuse implementation doesn't provide a "ro" option, so this addition is implemented by letting all methods that modify the file system return an error. See winfsp/cgofuse#15 for more info. This is a client-only implementation. It does not require any additional features from the server. Signed-off-by: Thomas Hallgren <[email protected]>
If I pass
-o ro
to WinFsp then doesn't mark the file system as read only as it does on linux. I think libfuse passes unknown options on tomount.fuse
which says in its man pageThis brings to mind 3 options
-EROFS
in any methods which do writing?What is your preferred option?
Thanks
The text was updated successfully, but these errors were encountered: