Eric, hello. Apologies for the late response as I am currently on vacation.
The ShareAccess parameter is basically the same as the dwShareMode of CreateFileW. It specifies how multiple openers of the same file expect to share access to it. This is handled completely by the WinFsp FSD and you do not need to do anything special about it.
The "directory name is invalid" error is a very unlikely error to get. Furthermore I do not see the equivalent NTSTATUS code in the log you posted (I expected to see something along the lines of 0xC0000039 - STATUS_OBJECT_PATH_INVALID).
So unfortunately I do not have enough information to be of help here.
Bill
--
You received this message because you are subscribed to the Google Groups "WinFsp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
winfsp+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/winfsp/830c85a8-f245-4a73-9e40-bc24beb9fe65n%40googlegroups.com.
Eric:
Memfs (the one that ships with WinFsp) supports exporting the file system as a shared drive. This is a scenario that is regularly tested as well (via winfsp-tests).
Can you please let me know how exactly you are creating the share?
To view this discussion on the web visit https://groups.google.com/d/msgid/winfsp/2003b35f-6bf7-4a8a-a7b3-3529087bc55en%40googlegroups.com.
On Jul 12, 2021, at 5:50 PM, Eric Vial <evi...@gmail.com> wrote:
Bill,
To view this discussion on the web visit https://groups.google.com/d/msgid/winfsp/196854d2-6a72-4da4-9e33-29547c138c88n%40googlegroups.com.
Just for my undestanding, do you know why it works without the "-u /Server/Share" argument?
Yes.
When using the -u \Server\Share argument you are actually creating a "network" file system. A "network" file system is simply a file system whose files can be addressed using a UNC prefix (i.e. \\Server\Share\Path\To\File). A "network" file system cannot be shared, because it is a part of the mechanism that Windows uses to implement the sharing functionality.
Without the -u \Server\Share argument you are creating a "disk" or "local" file system (there is no real disk in WinFsp of course). A "local" file system can be exported as a network share.
To view this discussion on the web visit https://groups.google.com/d/msgid/winfsp/e6174877-5eaf-4c2c-9953-01e581740d37n%40googlegroups.com.