-
Notifications
You must be signed in to change notification settings - Fork 674
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
Read-only device option #72
Read-only device option #72
Conversation
Thanks ! |
Sorry but I wasn't able to make it work 😢
Is there something I made wrong ? |
Thanks for trying!
You, as the repo owner, should know better :) |
What means you was not able to get it work? Step 1: Step 2: |
@marinkobabic, I was able to write in a file from the dokan device with the read only option. |
@Liryna |
I found out that Lines 1109 to 1113 in 7799f88
The solution doesn't seem to be complete, e.g. files cannot be edited, but attributes can still be set, I think (haven't done a through check). |
As pointed out above, the changes aren't achieving the desired result because the file system is not checking if the device is writable. The flags themselves are not sufficient. NTFS and FAT etc. use a I've implemented the read-only option in the same style, with I'll upload a pull-request tomorrow after I've tested it on Win7 (only tested on Win10 thus far). |
I would be glad to review your PR @canardos :) ! |
I close since #105 has been merged. |
I haven't tested this pull request, because I cannot rebuild the driver. If you could check it, or build the driver and let me check, that would be great.