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

Function GetVolumeInfo

src/mount/winfsp_mount.cpp:107–115  ·  view source on GitHub ↗

---- callbacks -------------------------------------------------------------

Source from the content-addressed store, hash-verified

105
106// ---- callbacks -------------------------------------------------------------
107NTSTATUS GetVolumeInfo(FSP_FILE_SYSTEM*, FSP_FSCTL_VOLUME_INFO* VolumeInfo) {
108 std::memset(VolumeInfo, 0, sizeof(*VolumeInfo));
109 VolumeInfo->TotalSize = 16ULL * 1024 * 1024 * 1024;
110 VolumeInfo->FreeSize = 0;
111 const wchar_t* Label = L"MemNixFS";
112 VolumeInfo->VolumeLabelLength = (UINT16)(wcslen(Label) * sizeof(WCHAR));
113 std::memcpy(VolumeInfo->VolumeLabel, Label, VolumeInfo->VolumeLabelLength);
114 return STATUS_SUCCESS;
115}
116
117NTSTATUS GetSecurityByName(FSP_FILE_SYSTEM* FileSystem,
118 PWSTR FileName, PUINT32 PFileAttributes,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected