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

@ -39,8 +39,8 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
wchar_t **argp, **arge;
ULONG DebugFlags = 0;
PWSTR DebugLogFile = 0;
ULONG CaseInsensitiveFlags = 0;
ULONG Flags = MemfsDisk;
ULONG OtherFlags = 0;
ULONG FileInfoTimeout = INFINITE;
ULONG MaxFileNodes = 1024;
ULONG MaxFileSize = 16 * 1024 * 1024;
@ -69,11 +69,14 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
case L'D':
argtos(DebugLogFile);
break;
case L'f':
OtherFlags = MemfsFlushAndPurgeOnCleanup;
break;
case L'F':
argtos(FileSystemName);
break;
case L'i':
CaseInsensitiveFlags = MemfsCaseInsensitive;
OtherFlags = MemfsCaseInsensitive;
break;
case L'm':
argtos(MountPoint);
@ -138,7 +141,7 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
}
Result = MemfsCreateFunnel(
CaseInsensitiveFlags | Flags,
Flags | OtherFlags,
FileInfoTimeout,
MaxFileNodes,
MaxFileSize,
@ -201,6 +204,7 @@ usage:
" -d DebugFlags [-1: enable all debug logs]\n"
" -D DebugLogFile [file path; use - for stderr]\n"
" -i [case insensitive file system]\n"
" -f [flush and purge cache on cleanup]\n"
" -t FileInfoTimeout [millis]\n"
" -n MaxFileNodes\n"
" -s MaxFileSize [bytes]\n"