From 08d4278cc5479c73f06e8f84b38ab161ab4280af Mon Sep 17 00:00:00 2001 From: Ceiridge Date: Wed, 1 Mar 2023 01:47:44 +0100 Subject: [PATCH] Change file info timeout to 15 seconds to hopefully fix deallocation bugs --- WinFsp-MemFs-Extended/create.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WinFsp-MemFs-Extended/create.cpp b/WinFsp-MemFs-Extended/create.cpp index 473d2e2..3e35da9 100644 --- a/WinFsp-MemFs-Extended/create.cpp +++ b/WinFsp-MemFs-Extended/create.cpp @@ -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(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;