-
Notifications
You must be signed in to change notification settings - Fork 488
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
Windows Subsystem for Linux Support #61
Comments
That is a great idea and I may in fact look into it now that WinFsp 2017 is almost out the door! Caveats I know almost nothing about WSL. I have a very basic understanding that it allows unmodified Linux executables to run on Windows. This means that these FUSE executables are already linked with libfuse (or a variant) and expect to see a http://man7.org/linux/man-pages/man4/fuse.4.html I do not know how to create a "device driver" for WSL. Is there any information available? An alternative might be to make Food for thought. Thanks! |
An additional issue here is that |
some notes about device drivers and linux integration:
|
Interesting. It may be that Windows processes do not have access to the NTOS object namespace under WSL. [MEMFS uses the WinFsp DLL, which needs to interface with the WinFsp FSD (File System Driver) and it does so by opening a special "file": What is the exact message you are getting? [I should probably just install WSL and quit asking obvious questions :) ]
This is a very interesting pointer. Thank you! |
WSL mounts only the |
Makes sense, thanks. |
Ok, I now had the chance to watch the preso and read some more about WSL. I need a few days to think about it, sketch a potential architecture and scope it. On a first approximation this looks to me like a 3-6 month project (if I work on it full time) to bring it to the stability level that WinFsp currently has. Obviously this falls under "unpaid work", but I am interested enough about it that I may just do it! |
@ui4j I now had the chance to look into this some more. I think I may have been over-enthusiastic in giving any time estimate on this. After seeing lxdrv that you pointed to me I erroneously assumed that there was sufficient information to write a driver for WSL and that such a driver would follow the familiar IRP-based model. Unfortunately I am finding that this is not the case. My new estimate is: "no estimate". It is impossible to gauge the amount of work needed, because the WSL internals are not actually documented. Furthermore WSL at this point is a moving target, even if someone reverse engineered the portions of WSL needed to get FUSE going, any development on this knowledge would be very fragile and likely break at the next WSL point release. For all intents and purposes WSL is like a new and changing OS at this point; it just happens to run on Windows and just happens to have a Linux-compatible interface. I strongly recommend that we wait until it stabilizes and Microsoft releases more documentation on it. However I compile here some random notes based on my research so far. Most of these notes are based on Alex Ionescu's lxss project and some of my own WinDbg sleuthing.
I may update this list as I find out more about WSL. Lxcore symbols: https://gist.github.com/billziss-gh/849ec9f01fbb3f790a4f445798083279#file-lxcore-sym-txt |
Useless info, which may help. I think the NFS/symlink/reparse thing is just that it hasn't been implemented yet. See the WSL github for more info. |
@MrObvious do you have a link? |
I stand corrected, it was the thread you started. Sorry to get your hopes up. :( |
No problem :) |
The latest WSL allows to mount removable USB sticks or CDs, and any network location. i did not try to mount WinFsp but probably it will work. |
Maybe if you can get the mount point to show up as a network share? I tried win-nfs and it doesn’t work. I have a bug open on the WSL github for that.
|
Closing this. It is unlikely will support WSL directly at this point. |
Hi,
Is it possible to run winfsp on WSL?
microsoft/WSL#17
https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13522845-add-fuse-filesystem-in-userspace-support-in-wsl
The text was updated successfully, but these errors were encountered: