tst: FlushAndPurgeOnCleanup: testing

This commit is contained in:
Bill Zissimopoulos committed 2018-04-19 10:23:15 -07:00
1 parent 5c3549c6eb
commit 740411d604
7 files changed
+28 -8

No files matched your search

+3
View File
@@ -891,8 +891,11 @@ VOID FspFileNodeCleanupComplete(FSP_FILE_NODE *FileNode, PFILE_OBJECT FileObject
FspFsvolDeviceUnlockContextTable(FsvolDeviceObject);
/* Flush and purge on last Cleanup. Keeps files off the "standby" list. (GitHub issue #104) */
if (SingleHandle && FsvolDeviceExtension->VolumeParams.FlushAndPurgeOnCleanup)
{
/* NOTE: Do not use FspFileNodeFlushAndPurgeCache. It does not seem to work well! */
IO_STATUS_BLOCK IoStatus;
FspCcFlushCache(FileObject->SectionObjectPointer, 0, 0, &IoStatus);