Skip to content

Commit

Permalink
Change file info timeout to 15 seconds to hopefully fix deallocation …
Browse files Browse the repository at this point in the history
…bugs
  • Loading branch information
Ceiridge committed Mar 1, 2023
1 parent 3bc3886 commit 08d4278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WinFsp-MemFs-Extended/create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ MemFs::MemFs(ULONG flags, UINT64 maxFsSize, const wchar_t* fileSystemName, const
volumeParams.SectorsPerAllocationUnit = MEMFS_SECTORS_PER_ALLOCATION_UNIT;
volumeParams.VolumeCreationTime = Utils::GetSystemTime();
volumeParams.VolumeSerialNumber = static_cast<UINT32>(Utils::GetSystemTime() / (1010000ULL * 1000ULL));
volumeParams.FileInfoTimeout = -1; // Use cache manager
volumeParams.FileInfoTimeout = 15000; // Use cache manager; Timeout is in milliseconds
volumeParams.CaseSensitiveSearch = !caseInsensitive;
volumeParams.CasePreservedNames = true;
volumeParams.UnicodeOnDisk = true;
Expand Down

0 comments on commit 08d4278

Please sign in to comment.