mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
tst: winfsp-tests: add oplock option
This commit is contained in:
@ -31,6 +31,7 @@ int WinFspNetTests = 1;
|
||||
BOOLEAN OptResilient = FALSE;
|
||||
BOOLEAN OptCaseInsensitive = FALSE;
|
||||
BOOLEAN OptCaseRandomize = FALSE;
|
||||
WCHAR OptOplock = 0;
|
||||
WCHAR OptMountPointBuf[MAX_PATH], *OptMountPoint;
|
||||
WCHAR OptShareNameBuf[MAX_PATH], *OptShareName, *OptShareTarget;
|
||||
WCHAR OptShareComputer[MAX_PATH] = L"\\\\localhost\\";
|
||||
@ -226,6 +227,16 @@ int main(int argc, char *argv[])
|
||||
OptCaseInsensitive = TRUE;
|
||||
rmarg(argv, argc, argi);
|
||||
}
|
||||
else if (0 == strcmp("--oplock=batch", a))
|
||||
{
|
||||
OptOplock = 'B';
|
||||
rmarg(argv, argc, argi);
|
||||
}
|
||||
else if (0 == strcmp("--oplock=filter", a))
|
||||
{
|
||||
OptOplock = 'F';
|
||||
rmarg(argv, argc, argi);
|
||||
}
|
||||
else if (0 == strncmp("--mountpoint=", a, sizeof "--mountpoint=" - 1))
|
||||
{
|
||||
if (0 != MultiByteToWideChar(CP_UTF8, 0,
|
||||
|
Reference in New Issue
Block a user