tst: FlushAndPurgeOnCleanup: testing

This commit is contained in:
Bill Zissimopoulos
2018-04-19 10:23:15 -07:00
parent 5c3549c6eb
commit 740411d604
7 changed files with 28 additions and 8 deletions

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);