Re:How the Windows Subsystem for Linux Redirects Syscalls
by asveikau on Wednesday June 08, 2016 @09:18PM
(#11866949)
What you can do while it's open is partially defined by the dwShareMode parameter in CreateFile. Unfortunately a lot of people look at the daunting documentation, shrug, and put 0 there, which is the least permissive mode. A lot of libraries do that too.
OTOH there are other limits that are not dictated by dwShareMode. Such as deleting files while handles are open - this blocks a new file with the same name from being created until all handles are closed. That's probably the worst one. There are some other crappy ones involving directory handles that I don't care to enumerate.
Re:How the Windows Subsystem for Linux Redirects Syscalls
by JdeBP on Thursday June 09, 2016 @04:35PM
(#11872172)
> I'm not sure if this is a kernel or filesystem issue.
It's neither. It's a common misconception. See https://news.ycombinator.com/item?id=11415366 .
This is probably the number one cause of me banging my head against the desk and wishing Windows behaved more like Linux.