MCPcopy Create free account
hub / github.com/MemNixFS/MemNixFS / Open

Function Open

src/mount/winfsp_mount.cpp:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150NTSTATUS Open(FSP_FILE_SYSTEM* FileSystem, PWSTR FileName,
151 UINT32 /*CreateOptions*/, UINT32 /*GrantedAccess*/,
152 PVOID* PFileContext, FSP_FSCTL_FILE_INFO* FileInfo)
153{
154 auto* lf = static_cast<LmpfsFs*>(FileSystem->UserContext);
155 auto n = ResolvePath(lf, FileName);
156 if (!n) return STATUS_OBJECT_NAME_NOT_FOUND;
157 // Pass the raw Node* — it stays valid for the lifetime of the mount.
158 *PFileContext = n.get();
159 FillFileInfo(n, FileInfo);
160 return STATUS_SUCCESS;
161}
162
163NTSTATUS Overwrite(FSP_FILE_SYSTEM*, PVOID, UINT32, BOOLEAN, UINT64,
164 FSP_FSCTL_FILE_INFO*)

Callers

nothing calls this directly

Calls 3

ResolvePathFunction · 0.85
FillFileInfoFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected