-
Notifications
You must be signed in to change notification settings - Fork 88
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
Connection to WinFsp broken #75
Comments
Hey, @ab3dat, @TriangularIT! Yes, sorry, I missed the issue initially. It's true, the encoding might need to be explicitly specified on windows, https://github.com/SerCeMan/jnr-fuse/blob/master/INSTALLATION.md#troubleshooting. We might also need to add some runtime warnings to make sure there is some logging that warns abut the encoding at runtime. |
I just now saw that you already pointed to this issue in the troubleshooting section. I mean, I read that sentence quite a few times. Unfortunately the highlighted error A runtime warning would be a great solution. |
@SerCeMan I implemented a runtime warning now in AbstractFuseFS.java
In case Windows is detected as platform and the codepage is not UTF-8, a message will be printed in the command line. Guess that should do it. If you are fine with this fix, I'm going to create a pull request. |
Thank you, @ab3dat for your help! It all works – I have missed the warning on the Installation page! 🤦♂️ |
This implementation checks whether the UTF-8 file encoding is set when working on windows. If the wrong file encoding is set mounting the drive works, but accessing and working on it doesn't work. Details see pull request SerCeMan#75
Replace output to stdout and throw exception if file encoding is not UTF-8 if running on Windows Details see pull request SerCeMan#75
When I try to run HelloFuse with the current WinFsp release (2019.2) on a fully updated Win 10 (1809), the drive is shown, but unavailable. The error message says "Location is not available".
I guess that some of WinFsp's headers have moved and are incompatible with the defined structs in
ru.serce.jnrfuse.struct
, but I am far too inexperienced with both libraries to attempt a fix.WinFsp on its own does work – MemFS runs without a hitch and jnr-fuse also works to some extent, because I see some log messages, when I turn on the
debug
-option:The text was updated successfully, but these errors were encountered: