From eaa5fa8043d25f8e721de5ff3a71ce7f0a1f5324 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Fri, 21 Jan 2022 16:24:42 +0000 Subject: [PATCH] tst: ntptfs: ExtraFeatures --- tst/ntptfs/ptfs-main.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tst/ntptfs/ptfs-main.c b/tst/ntptfs/ptfs-main.c index f90701f2..132819a4 100644 --- a/tst/ntptfs/ptfs-main.c +++ b/tst/ntptfs/ptfs-main.c @@ -116,7 +116,13 @@ static NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv) break; case L'o': argtos(OptionString); - if (0 == _wcsicmp(L"ReparsePoints", OptionString)) + if (0 == _wcsicmp(L"ExtraFeatures", OptionString)) + FsAttributeMask |= + PtfsReparsePoints | + PtfsNamedStreams | + PtfsExtendedAttributes | + PtfsWslFeatures; + else if (0 == _wcsicmp(L"ReparsePoints", OptionString)) FsAttributeMask |= PtfsReparsePoints; else if (0 == _wcsicmp(L"NamedStreams", OptionString)) FsAttributeMask |= PtfsNamedStreams; @@ -244,12 +250,11 @@ usage: " -d DebugFlags [-1: enable all debug logs]\n" " -D DebugLogFile [file path; use - for stderr]\n" " -t FileInfoTimeout [millis]\n" - " -o ReparsePoints\n" - " -o NamedStreams\n" - " -o ExtendedAttributes\n" - " -o WslFeatures\n" - " -o FlushAndPurgeOnCleanup\n" - " -o SetAllocationSizeOnCleanup\n" + " -o ExtraFeatures [extra Windows file system features]\n" + " -o ReparsePoints\n" + " -o NamedStreams\n" + " -o ExtendedAttributes\n" + " -o WslFeatures\n" " -u \\Server\\Share [UNC prefix (single backslash)]\n" " -p Directory [directory to expose as pass through file system]\n" " -m MountPoint [X:|*|directory]\n";