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

Function GetFileInfo

src/mount/winfsp_mount.cpp:217–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217NTSTATUS GetFileInfo(FSP_FILE_SYSTEM*, PVOID FileContext, FSP_FSCTL_FILE_INFO* FileInfo) {
218 Node* node = ctx_node(FileContext);
219 if (!node) return STATUS_INVALID_DEVICE_REQUEST;
220 // We need a NodePtr for FillFileInfo's interface. Wrap with a no-op
221 // deleter so refcount manipulation doesn't free.
222 auto guard = std::shared_ptr<Node>(node, [](Node*){});
223 FillFileInfo(guard, FileInfo);
224 return STATUS_SUCCESS;
225}
226
227NTSTATUS GetSecurity(FSP_FILE_SYSTEM* FileSystem, PVOID /*FileContext*/,
228 PSECURITY_DESCRIPTOR SecurityDescriptor,

Callers

nothing calls this directly

Calls 2

ctx_nodeFunction · 0.85
FillFileInfoFunction · 0.85

Tested by

no test coverage detected