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
Junction points on NTFS volumes (mklink /j) not seen in DriveFS #559
Comments
This is by design for the anniversary edition. Today Windows symlinks/junction points remain visible only inside Windows and Linux symlinks created inside WSL remain visible inside WSL. They are not accessible to each other. Two primary reasons
Open to revisiting the decision based on user feedback in the future. |
The "By Design" response should definitely be considered temporary / a workaround. The Windows NTFS implementation of - for example - symlinks - is perfectly fine, and should be completely interpretable as WSL symlinks. Junctions can be viewed as a primitive symlink that happens to be an absolute pathname link text - and is easily reversibly translated. The current status of "by design" implies limited interoperability of the 2 subsystems, improving the value of just using Linux in a VM. |
@dethoma @benhillis thanks for the response. Based on #201, I wasn't sure whether this was by design or a bug, but I can understand it being a limitation for the Anniversary release. In the future it would be nice if WSL at least tried to parse a greater subset of reparse points (eg, junction points) and errored out if the target volume type is not compatible with DrvFS. |
@jamesdavidhoward As Deepu alluded to, we're nearing the release of the Windows 10 anniversary update and unfortunately that means that we will not have time to address every issue on this forum in the update. I would highly recommend visiting our user voice page and making your voice heard there about the features you'd like us to work on in future releases. |
I concur with the prior comment about acceptability of improving handling The current responses are non-responses; the kind of thing that would get James D. Howard, jhoward@alumni.caltech.edu |
@jamesdavidhoward -- I can't speak for Microsoft specifically (haven't worked there in a long time), but I've previously posted professionally/regularly on a technical forum on behalf of HP. If I had given "real" answers on that forum, in the sense that you're referring to, I would have gotten much worse than just a frown from any of my managers :-) Answers posted by employees to a public forum can have legal and contractual significance in terms of revenue recognition, etc. I've seen (not on said HP forums) a large team at a major tech company thrown months off schedule because of one incorrect comment somewhere on the Internet by a low-level employee that a customer interpreted as a commitment. I imagine you've encountered the same in your years at Intel too. So, if you want a decision, talk to a PM, and wait in line while they process your request :-) My experience here (though anyone who actually works at Microsoft is of course welcome to correct my understanding) is that such commitments have been more forthcoming on the UserVoice forum, which I think is better designed to gather feedback on broader issues that thousands of people care about in different ways. In contrast -- this github site seems to get responses directly from Microsoft engineers. Exactly the people who my manager would have wanted to not make public commitments on the Internet :-) But if you've got a specific bug or technical question and you want an answer right now, nothing beats a direct line to the people who know the code. |
Reopening while on backlog. |
If anyone would like this functionality, there's a UserVoice for it; go here to up-vote: |
Is there any news on this and syncronising links and junctions in general? I really want to use wsl with npm and VS Code but this is a blocking issue |
mklink (NTFS junctions) are seen as symlink in WSL (fall creator update 1709) But beware that it's case sensitive, and WSL cares about it.
Whereas
(edited per @SteveALee remark, mklink /J (not /D) ) |
/D creates a SYMBLINKD not JUNCTION, as expected - but it works However, I Find the reverse doesn't seem to work. Should it? Could it?
|
This is fixed as of Insiders build 16215 - https://docs.microsoft.com/en-us/windows/wsl/release-notes#build-16215 |
This is not fixed. I see that in in 16215 'Support directory junctions in drvfs.' sounds like someone thinks this works... But today...
|
When will this be fixed? It is still broken (WSL2, Windows 10 build 19041). |
Still broken on WSL 2 (Debian) with Kernel 5.10.43 on Windows 11 22449.rs_prerelease.210827... |
DriveFS doesn't seem to see or traverse NTFS junction points. Here is the sample command line / bash session. The junction point
junc
doesn't show up in the bash session.The text was updated successfully, but these errors were encountered: