mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
Update memfs-main.c
This commit is contained in:
parent
0da43fe2d4
commit
0fb6299f17
@ -44,6 +44,11 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
|
|||||||
ULONG FileInfoTimeout = INFINITE;
|
ULONG FileInfoTimeout = INFINITE;
|
||||||
ULONG MaxFileNodes = 1024;
|
ULONG MaxFileNodes = 1024;
|
||||||
ULONG MaxFileSize = 16 * 1024 * 1024;
|
ULONG MaxFileSize = 16 * 1024 * 1024;
|
||||||
|
|
||||||
|
ULONG SlowioMaxDelay = 0; // From -M : maximum delay in milliseconds
|
||||||
|
ULONG SlowioPercentDelay = 0; // From -D : percent of IO to slow down
|
||||||
|
ULONG SlowioRarefyDelay = 12; // From -R : adjust the rarity of long delays
|
||||||
|
|
||||||
PWSTR FileSystemName = 0;
|
PWSTR FileSystemName = 0;
|
||||||
PWSTR MountPoint = 0;
|
PWSTR MountPoint = 0;
|
||||||
PWSTR VolumePrefix = 0;
|
PWSTR VolumePrefix = 0;
|
||||||
@ -75,9 +80,18 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
|
|||||||
case L'm':
|
case L'm':
|
||||||
argtos(MountPoint);
|
argtos(MountPoint);
|
||||||
break;
|
break;
|
||||||
|
case L'M':
|
||||||
|
argtol(SlowioMaxDelay);
|
||||||
|
break;
|
||||||
case L'n':
|
case L'n':
|
||||||
argtol(MaxFileNodes);
|
argtol(MaxFileNodes);
|
||||||
break;
|
break;
|
||||||
|
case L'P':
|
||||||
|
argtol(SlowioPercentDelay);
|
||||||
|
break;
|
||||||
|
case L'R':
|
||||||
|
argtol(SlowioRarefyDelay);
|
||||||
|
break;
|
||||||
case L'S':
|
case L'S':
|
||||||
argtos(RootSddl);
|
argtos(RootSddl);
|
||||||
break;
|
break;
|
||||||
@ -130,6 +144,11 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
|
|||||||
FileInfoTimeout,
|
FileInfoTimeout,
|
||||||
MaxFileNodes,
|
MaxFileNodes,
|
||||||
MaxFileSize,
|
MaxFileSize,
|
||||||
|
|
||||||
|
SlowioMaxDelay,
|
||||||
|
SlowioPercentDelay,
|
||||||
|
SlowioRarefyDelay,
|
||||||
|
|
||||||
FileSystemName,
|
FileSystemName,
|
||||||
VolumePrefix,
|
VolumePrefix,
|
||||||
RootSddl,
|
RootSddl,
|
||||||
@ -189,6 +208,11 @@ usage:
|
|||||||
" -t FileInfoTimeout [millis]\n"
|
" -t FileInfoTimeout [millis]\n"
|
||||||
" -n MaxFileNodes\n"
|
" -n MaxFileNodes\n"
|
||||||
" -s MaxFileSize [bytes]\n"
|
" -s MaxFileSize [bytes]\n"
|
||||||
|
|
||||||
|
" -M MaxDelay [maximum slow IO delay in millis]\n"
|
||||||
|
" -P PercentDelay [percent of IO to make slow IO\n"
|
||||||
|
" -R RarefyDelay [adjust the rarity of slow IO\n"
|
||||||
|
|
||||||
" -F FileSystemName\n"
|
" -F FileSystemName\n"
|
||||||
" -S RootSddl [file rights: FA, etc; NO generic rights: GA, etc.]\n"
|
" -S RootSddl [file rights: FA, etc; NO generic rights: GA, etc.]\n"
|
||||||
" -u \\Server\\Share [UNC prefix (single backslash)]\n"
|
" -u \\Server\\Share [UNC prefix (single backslash)]\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user