diff --git a/Contributors.asciidoc b/Contributors.asciidoc index 9a40da4a..1ed16483 100644 --- a/Contributors.asciidoc +++ b/Contributors.asciidoc @@ -56,6 +56,7 @@ CONTRIBUTOR LIST |=== |Ben Rubson |ben.rubson at gmail.com |Bill Zissimopoulos |billziss at navimatics.com +|Colin Atkinson (Atakama, https://atakama.com) |colin at atakama.com |Francois Karam (KS2, http://www.ks2.fr) |francois.karam at ks2.fr |Fritz Elfert |fritz-github at fritz-elfert.de |John Oberschelp |john at oberschelp.net diff --git a/inc/winfsp/winfsp.hpp b/inc/winfsp/winfsp.hpp index d3537b38..6b73623a 100644 --- a/inc/winfsp/winfsp.hpp +++ b/inc/winfsp/winfsp.hpp @@ -612,6 +612,14 @@ public: { _VolumeParams.PassQueryDirectoryPattern = !!PassQueryDirectoryPattern; } + BOOLEAN FlushAndPurgeOnCleanup() + { + return _VolumeParams.FlushAndPurgeOnCleanup; + } + VOID SetFlushAndPurgeOnCleanup(BOOLEAN FlushAndPurgeOnCleanup) + { + _VolumeParams.FlushAndPurgeOnCleanup = !!FlushAndPurgeOnCleanup; + } PWSTR Prefix() { return _VolumeParams.Prefix; diff --git a/tst/passthrough-cpp/passthrough-cpp.cpp b/tst/passthrough-cpp/passthrough-cpp.cpp index 4b132639..55454a3b 100644 --- a/tst/passthrough-cpp/passthrough-cpp.cpp +++ b/tst/passthrough-cpp/passthrough-cpp.cpp @@ -268,6 +268,7 @@ NTSTATUS Ptfs::Init(PVOID Host0) Host->SetPassQueryDirectoryPattern(TRUE); Host->SetVolumeCreationTime(_CreationTime); Host->SetVolumeSerialNumber(0); + Host->SetFlushAndPurgeOnCleanup(TRUE); return STATUS_SUCCESS; }