Compare commits

..

198 Commits

Author SHA1 Message Date
2da97d48f5 tools: make-release: add new signatures 2024-09-11 14:48:55 +01:00
7c5dc48414 build: version: 2024 Beta2 2024-09-11 14:46:38 +01:00
93c057571a changelog: 2024 Beta2 2024-09-11 13:23:41 +01:00
da16d0e6ea Merge pull request #567 from siketyan/fix/string-h-import
fix: Add missing string.h import in winfsp_fuse.h
2024-09-10 09:25:12 +01:00
dbaee25ed2 fix: Add missing string.h import in winfsp_fuse.h
Signed-off-by: Naoki Ikeguchi <me@s6n.jp>
2024-09-10 01:02:29 +09:00
2bf9a6c16e sys: mup: correctly handle relative file object chain (#561) 2024-06-20 12:44:35 +01:00
b058925692 tst: launcher-secrets: secret: replace gets with fgets 2024-06-03 11:49:38 +01:00
507c794470 doc: known file systems: remove nodejs library with no support for WinFsp 2024-02-20 13:18:30 +00:00
9a6571809e changelog: 2024 Beta1 2024-02-20 12:16:46 +00:00
e452f75c9c doc: SxsDir registry setting 2024-01-20 10:55:26 +00:00
7551193ad7 update source copyright to 2024 2024-01-08 12:38:44 +00:00
65bf8c5319 dll: use adaptive locks when starting/stopping FSD 2023-12-12 12:36:41 +00:00
be5faf34bc build: version: 2024 Beta1 2023-12-11 16:26:56 +00:00
0e1c8ae1dc build: version: correct version to 2023.1 Beta1 2023-08-30 11:33:54 +01:00
9aa67bdad4 build: version: bump to 2.1 (2023.1) 2023-08-30 11:30:36 +01:00
de321620fd dll: FspFsctlServiceVersion as public API 2023-08-30 11:17:09 +01:00
a482183149 sys: FspPropagateTopFlags: check TopLevelIrp not completed
Add a check to verify that the TopLevelIrp has not been completed. This
became necessary because on recent Windows kernels, IRP's can have "IRP
extensions", which are freed when an IRP is completed. This can trigger
a recursive CLOSE with a top-level IRP that has been completed, which
can bugcheck the system.

Case in point: the new (Win11) NtCopyFileChunk creates IRP's with
COPY_INFORMATION attached. Upon completion of such an IRP the
SourceFileObject is freed, which results in a recursive IRP_MJ_CLOSE
with a completed top-level IRP, which would lead to a BSOD.
2023-08-29 13:15:37 +01:00
6fb72555d3 github: workflows: avm: update latest asset 2023-03-16 11:58:45 +00:00
9accf72d39 tools: make-release.ps1: match release tag exactly 2023-03-16 11:30:03 +00:00
5c03dd11ee changelog: version: 2023 2023-03-16 10:43:13 +00:00
1f37e5a81a build: version: 2023 2023-03-16 10:43:00 +00:00
db319bc3c1 sys,dll: mount improvements
- sys: FspFsvolFileSystemControl: FSCTL_IS_VOLUME_MOUNTED
- dll: mount: Transact0, FspMountNotifyShellDriveChange
2023-02-24 12:02:03 +00:00
c04e3d9534 doc: update FAQ 2023-02-23 13:50:11 +00:00
1912814d79 changelog: v2.0RC1 2023-02-23 13:29:10 +00:00
97c075e744 sys: FspFsvolQueryDirectoryCopy: add missing continue
A single line change in FspFsvolQueryDirectoryCopy fixes GitHub issue #475.
This commit also includes a test for detecting duplicate directory entries.
Credit for the investigation and reproduction of this issue goes to GitHub
user @hach-que.
2023-02-16 17:07:59 +00:00
874a223bcc build: version: 2023 RC1 2023-02-07 20:55:49 +00:00
901a98e118 tools: make-release.ps1: automate submissions to hardware dashboard 2023-02-07 20:54:05 +00:00
0ab4300738 github: workflows: avm: update files 2023-02-02 12:20:34 +00:00
52e6aa97b5 build: sys: pacify hardware center validation
Infverif /k no longer likes "undecorated" [DefaultInstall] sections and
instead it wants them "architecture decorated". For example,
[DefaultInstall.ntarm64]. So play along to have our driver signed.

For more information see:
https://learn.microsoft.com/en-us/windows-hardware/drivers/develop/creating-a-primitive-driver
2023-02-01 22:50:35 +00:00
a7d82d5f8d changelog: v2.0B2 update 2023-02-01 17:55:14 +00:00
3aadaee511 dll: FspFileSystemStopServiceIfNecessary 2023-02-01 17:42:11 +00:00
da3a8aa229 Merge pull request #478 from zeho11/patch-1
tst: passthrough-fuse: fix UNC path mount
2023-02-01 11:01:13 +00:00
1f0fd4c280 Update 2023-01-31 19:13:10 +08:00
6da92f0b54 tools: make-release: add nuget support 2023-01-09 23:04:03 +00:00
4f5f1dd350 build: version: bump to v2.0B2 2023-01-09 22:27:44 +00:00
ba5d52e9a5 dll: FspFileSystemStartDispatcher:
Send a Transact0 to inform the FSD that the dispatcher is almost ready.
2023-01-09 15:45:11 +00:00
d626fb9563 sys: FspReleaseForModWrite
In some rare cases and under load the mapped page writer's TopLevelIrp
may be trashed by some outside component (observed on Windows 10 1909).

For this reason remove an assertion that could trigger in debug builds.
2023-01-09 15:30:42 +00:00
69cc1820e1 tst: passthrough-fuse3: fix UNC path mount 2022-12-19 09:22:43 +08:00
c06141c8c8 tst: passthrough-fuse: fix UNC path mount 2022-12-19 09:22:16 +08:00
760c2acded Merge pull request #476 from zeho11/patch-1
dll: fuse: correct error handling when name exceeds limit
2022-12-16 22:29:37 +00:00
671efe625a Update 2022-12-15 20:49:01 +09:00
a59b32b1ee tst: winfsp-tests: add multibyte checks to querydir_namelen_test 2022-12-15 19:17:22 +09:00
22d81846df tst: passthrough-fuse3: multibyte support 2022-12-15 19:16:19 +09:00
8c9b8362b4 tst: passthrough-fuse: multibyte support 2022-12-15 19:14:44 +09:00
e92eb023fe Merge branch 'release/1.12' 2022-12-12 11:53:20 +00:00
e550e261f0 dll: fuse: correct error handling when name exceeds limit
Related to b62e1e920b
2022-12-12 12:08:48 +09:00
46054c03fe Merge pull request #474 from zeho11/patch-1
dll: fuse: change name limit to 255 chars
2022-12-08 16:02:38 +00:00
db07b24342 Update 2022-12-08 18:02:19 +09:00
cb81e81985 Update fuse_intf.c 2022-12-07 15:17:59 +09:00
b62e1e920b dll: fuse: change name limit to 255 chars
Fixes #191
Fixes #455
2022-12-07 14:39:36 +09:00
c61679a35d tools: build.bat: make cab file from unsigned drivers 2022-12-05 13:06:18 +00:00
619e41a18e changelog: update for v1.12.22335 2022-12-01 11:09:58 +00:00
80fa156e7b tools: build.bat: remove SHA1 signatures 2022-12-01 10:59:48 +00:00
01d9fa1719 Merge branch 'pvt-dotnetcore' 2022-11-30 10:06:42 +00:00
6846508631 tools: build.bat,make-release.ps1: accommodate winfsp.net.nupkg 2022-11-29 21:13:13 +00:00
0488451c3d build: fix dotnet output paths 2022-11-29 15:49:09 +00:00
7c3292af81 tools: build.bat: dotnet build 2022-11-29 12:53:33 +00:00
3d2ba637e5 build: minimize changes in .csproj files 2022-11-28 16:52:21 +00:00
db72b57ca4 build: dotnet: remove Directory.Build.props 2022-11-28 14:04:51 +00:00
020157a9ae Merge branch 'dotnetcore' of https://github.com/Noire001/winfsp into Noire001-dotnetcore 2022-11-28 12:13:50 +00:00
d99cb2d7d1 build: dotnet: set PlatformTarget to AnyCPU 2022-11-23 22:47:50 +02:00
298261c4af tools: make-release.ps1: add build hashes 2022-11-23 16:21:08 +00:00
3c674a556d tools: make-release.ps1: update download link 2022-11-23 15:18:25 +00:00
f85fb49f49 changelog: update for v2.0B1 2022-11-23 14:32:31 +00:00
92084a56c6 build: dotnet: add missing NuGet properties 2022-11-20 20:05:10 +02:00
53f97c9841 build: dotnet: revert optional changes/deletions 2022-11-20 19:39:06 +02:00
2770eca1bf tools: use dotnet build in VS2015 CI 2022-11-20 15:10:50 +02:00
2945971ba9 build: memfs-dotnet: migrate to .NET SDK 2022-11-19 21:01:44 +02:00
0a39ef60bd Update Contributors.asciidoc 2022-11-19 21:01:44 +02:00
e1faf1351e build: dotnet: generate NuGet package on build 2022-11-19 21:01:44 +02:00
7333451eac build: installer: update assembly location 2022-11-19 21:01:24 +02:00
c178db127c build: dotnet: migrate to .NET SDK 2022-11-19 20:57:50 +02:00
9747af22e8 changelog: update for v1.12 (2022.2) 2022-10-18 12:21:23 +01:00
e1b2e77df0 build: version: 2022.2 2022-10-18 12:19:36 +01:00
ef9b7e22c6 Merge branch 'master' into pvt-sxs 2022-10-12 16:57:59 +01:00
4783902d1d tools: make-release.ps1 2022-10-12 16:57:43 +01:00
fd27c470b0 Merge branch 'master' into pvt-sxs 2022-10-12 16:36:22 +01:00
4cd2b8c612 tools: make-release.ps1 2022-10-12 16:35:40 +01:00
dacaff41e4 changelog: update for v1.12B2 2022-10-12 15:33:18 +01:00
c187209159 installer: check windows version 7 or higher 2022-10-07 14:09:19 +01:00
a2e92207c5 Merge branch 'master' into pvt-sxs 2022-10-07 12:10:20 +01:00
be27a82879 dll: FspCreateDirectoryFileW
On Windows/ARM64 CreateFileW is no longer able to create directories
using the flags FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_POSIX_SEMANTICS.
The new FspCreateDirectoryFileW implements the same semantics and replaces
the previous CreateFileW call.
2022-10-07 11:47:25 +01:00
4f5ad93f00 Merge branch 'master' into pvt-sxs 2022-10-04 15:44:49 +01:00
b9ca46694e sys: FspFileNodeRenameCheck: fix handle oplock break 2022-10-04 15:44:27 +01:00
b47c42877a Merge branch 'master' into pvt-sxs 2022-10-04 13:45:19 +01:00
e50d7adc50 tools: run-tests: retire some tests
Retire some tests that are no longer useful.
This should shorten CI time considerably.
2022-10-04 13:44:31 +01:00
d1fc5e5d0f Merge branch 'pvt-vpb2' into pvt-sxs-vpb 2022-10-03 15:10:06 +01:00
7f73192f8d sys: FspVolumeCreate
If we have an fsvrt device, mount it via opening the volume.
This ensures that the fsvrt is mounted by the correct fsvol
device early on and remedies a rare case where NTFS crashes
the system when it attempts to mount our fsvrt.
2022-10-02 20:10:32 +01:00
c4ecd15c0a Merge branch 'master' into pvt-sxs 2022-10-02 17:49:47 +01:00
d71049225e sys: FSP_DEVICE_EXTENSION: remove unused SiloContainerId 2022-10-02 17:35:07 +01:00
91d7f3b673 sys: FspSiloInitialize: always initialize FspSiloList and Mutex 2022-10-01 21:08:01 +01:00
63e23c2039 fsptool: load command 2022-10-01 14:55:30 +01:00
4d1594b1cf sys: silo: ensure FspSiloListMutex in critical region 2022-10-01 14:44:17 +01:00
0eb6912296 sys: FspSiloEnumerate, FspDriverFinalizeDevicesForUnload 2022-10-01 10:47:18 +01:00
c237a55951 Merge branch 'master' into pvt-sxs 2022-09-29 17:00:10 +01:00
c15006cce8 appveyor: silo testing 2022-09-28 19:06:16 +01:00
53b44dcb5c tst: winfsp-tests: silo testing 2022-09-28 18:46:17 +01:00
a3765d6360 sys: silo: FspSiloPostInitialize 2022-09-27 19:55:08 +01:00
98d68c4007 Merge branch 'master' into pvt-sxs 2022-09-26 17:52:29 +01:00
6c6dd8abcc tools: run-tests: disable exec tests for mountmgr 2022-09-26 17:51:05 +01:00
16dd729fc7 tools: run-tests: disable exec tests for mountmgr 2022-09-26 17:50:19 +01:00
e8cec5dfc1 Merge branch 'master' into pvt-sxs 2022-09-26 17:42:30 +01:00
a2d49a1ded build: version: 2022.2 Beta2 2022-09-26 17:35:57 +01:00
9ede097e73 changelog: update for v1.12B2 2022-09-26 17:34:36 +01:00
2c3800077f tst: passthrough: GetFileInfoInternal: fix IndexNumber 2022-09-26 17:26:25 +01:00
84b3f98d38 Merge branch 'pvt-fuse-mountmgr' 2022-09-26 17:01:35 +01:00
16734bf37a Merge pull request #450 from chyyran/patch-doc-add-winfsp-rs
doc: Add winfsp-rs to file system libraries
2022-09-26 15:31:26 +01:00
ea189c5b68 dll: fuse: fix mountmgr directory mount points under Cygwin 2022-09-26 15:26:34 +01:00
7735506cc7 legal: add Ronny Chan to contributors 2022-09-25 22:14:11 -04:00
ca3170c293 doc: Add winfsp-rs to file system libraries 2022-09-25 22:09:40 -04:00
9a27a3225b Merge branch 'master' into pvt-sxs 2022-09-16 12:32:59 +01:00
d44cb54bd5 tools: run-tests: disable exec tests for mountmgr 2022-09-14 17:16:56 +01:00
ba13995d10 update changelog 2022-09-14 12:26:40 +01:00
d1f863e9ac tools: run-tests: disable exec tests for mountmgr 2022-09-14 12:23:13 +01:00
ccdbc9daf9 tools: diag.bat: SxS support 2022-09-12 12:41:09 +01:00
1723179430 dll: FspFsctlStartService: fix bug in non-SxS mode 2022-09-10 17:14:19 +01:00
8e0f5b457c tools,appveyor: remove sxsident 2022-09-10 16:24:15 +01:00
2fc2c237d3 dll: FspFsctlEnumServices 2022-09-10 16:23:14 +01:00
b99fb9a5cb dll: FspFsctlRegister: sxs-ize driver display name 2022-09-09 23:57:44 +01:00
538fee8e54 installer: CustomActions: InstallJunctions 2022-09-09 22:59:14 +01:00
925fa4b6e4 installer: CustomActions: DeferredAction: minor fix 2022-09-09 14:35:17 +01:00
b179c7a933 tools: sxsident.bat 2022-09-08 17:55:57 +01:00
b25e116f08 tools: sxsident.bat 2022-09-08 16:00:22 +01:00
422c369b15 tools: sxsident.bat 2022-09-08 15:52:25 +01:00
d450683e2e installer: SxS: WIP 2022-09-07 21:59:42 +01:00
ad1aa156dc installer: SxS: WIP 2022-09-07 20:18:54 +01:00
aa012db099 installer: SxS: WIP 2022-09-07 17:37:25 +01:00
b08f60bfbd installer: SxS: WIP 2022-09-07 16:19:48 +01:00
a9b3cef253 installer: SxS: WIP 2022-09-07 15:31:18 +01:00
b43d1f5502 dll: FspFsctlUnregister: do FspFsctlStopService prior to unregister 2022-09-07 14:20:20 +01:00
de9112f6e6 installer: SxS: WIP 2022-09-06 18:42:39 +01:00
329b14d838 build: version: bump to v2.0 (2023) 2022-09-06 12:09:54 +01:00
7009324e7f installer: SxS: WIP 2022-09-06 12:08:09 +01:00
f4ae097722 installer: SxS: WIP 2022-09-05 17:28:31 +01:00
50be07e8ac installer: SxS: WIP 2022-09-05 17:23:49 +01:00
2dd054087c installer: SxS: fix whitespace 2022-09-05 16:46:10 +01:00
7f6608cf7d installer: SxS: WIP 2022-09-05 16:40:06 +01:00
39e9d8156b installer: SxS: WIP 2022-09-05 13:34:25 +01:00
90acd19014 sys: FspDeviceDelete: remove DBG code
FspDeviceDelete was recently changed and its DBG code is no longer valid.
2022-09-04 16:58:38 +01:00
9154ec784d installer: CustomActions: InstanceID 2022-09-04 15:55:47 +01:00
0b3ce52958 Merge branch 'master' into pvt-sxs 2022-09-01 14:42:27 +01:00
deee7edded build: version: v1.12B1 (2022.2 Beta1) 2022-08-30 13:21:31 +01:00
f41f410546 changelog: update for v1.12B1 2022-08-30 13:19:05 +01:00
a2dc40fe3a build: version: v1.12B1 (2022.2 Beta1) 2022-08-30 13:15:57 +01:00
adeed2b79d fsptool: ver, unload commands 2022-08-21 07:59:28 +01:00
5dda5903a8 tst: winfsp-tests: disable load_unload_test 2022-08-21 07:25:25 +01:00
a7bc306b2d dll: FspSxsAppendSuffix 2022-08-20 11:58:00 +01:00
7e59c2e5a6 dll: FspFsctlFixServiceSecurity: deny SERVICE_STOP to Everyone
Although the FSD can now be unloaded, this can only be done safely via
the new FSP_FSCTL_UNLOAD control code. For this reason we disable the
ability to stop the FSD via the Service Manager.
2022-08-19 19:43:48 +01:00
637e8bb8c2 build.version.props: MyFsctlRegisterPath, MyNpRegisterPath, MyEventLogRegisterPath 2022-08-19 17:43:55 +01:00
9670caa3fe sys,dll: FSP_FSCTL_UNLOAD 2022-08-18 11:05:45 +01:00
005d3e4fb0 sys: FspUnload, FspSxsIdent 2022-08-05 17:41:12 +01:00
62a6bbab66 dll: FspSxsSuffix 2022-08-03 17:29:45 +01:00
40ba537dc2 dll: FspSxsIdent 2022-08-03 16:33:13 +01:00
ec832b45ff changelog: update for v1.12 2022-07-28 17:16:48 +01:00
fc03b485f3 doc: MountUseMountmgrFromFSD 2022-07-28 17:12:26 +01:00
651e45c3ba tools: update DigiCert cross cert 2022-07-01 14:06:26 +01:00
95c2fadce0 build: version: v1.12 (2023) 2022-07-01 00:00:01 +01:00
b4453c89cc tst: winfsp-tests: RejectIrpPriorToTransact0 test fixes 2022-06-30 13:32:31 +01:00
5483dcbd73 dll: FspMountSet_MountmgrDirectory: bug fix 2022-06-29 15:30:36 +01:00
f1cfe758ec sys: RejectIrpPriorToTransact0 is always 1 2022-06-29 15:08:34 +01:00
e9143a73a6 tools: run-tests: mount manager testing 2022-06-28 15:16:13 +01:00
264450f627 tst: winfsp-tests: test mount manager directory support 2022-06-28 14:32:27 +01:00
a731f0e5d8 sys,dll: MountUseMountmgrFromFSD 2022-06-27 17:28:24 +01:00
d7450d740e dll: Mount Manager directory support 2022-06-27 17:27:45 +01:00
5251dcbce9 Merge pull request #431 from xiaogaozi/doc-add-juicefs
doc: add JuiceFS to known file systems
2022-06-22 09:06:13 +01:00
dd3adf34ef Sign contributor agreement 2022-06-22 13:24:51 +08:00
b8a6a8efed Reorder 2022-06-20 13:48:26 +08:00
d67acf3b3a doc: add JuiceFS to known file systems 2022-06-20 13:47:17 +08:00
3b104723af changelog: update for v1.11 2022-06-15 16:45:37 +01:00
699278a7ed appveyor: disable special pool 2022-06-15 10:58:47 +01:00
e070cdd6be build: bump to 2022+ARM64 2022-06-14 23:09:23 +01:00
fbbca110fb README: minor improvements 2022-06-14 23:06:03 +01:00
0083a45e31 doc: registry settings document 2022-06-13 17:52:33 +01:00
faaac2da3c doc: building document 2022-06-13 14:19:59 +01:00
e44cba033f update README 2022-06-12 17:39:23 +01:00
91400babe0 update README 2022-06-11 15:42:03 +01:00
e1ac7b60f7 update README 2022-06-11 15:38:43 +01:00
573897b06e appveyor: skip_commits 2022-06-11 15:25:58 +01:00
b77b0a51f4 appveyor: enable special pool 2022-06-10 17:43:06 +01:00
26af6c9363 sys: convert suitable ERESOURCE to FAST_MUTEX 2022-06-10 16:20:24 +01:00
2e441534a3 sys: FspFsvolDeviceLockVolumeNotify 2022-06-10 16:20:19 +01:00
66f3620808 sys: FSP_FSVOL_DEVICE_EXTENSION::VolumeDeleteResource 2022-06-10 16:20:13 +01:00
805742f306 sys: FSP_FSVOL_DEVICE_EXTENSION::VolumeDeleteResource 2022-06-10 16:20:08 +01:00
18842682c8 sys: inline FspFsvolDeviceFileRename* and FspFsvolDeviceLockContextTable 2022-06-10 16:19:57 +01:00
a7a526351f sys: keep extra fsvol device reference
Reference an fsvol device at CREATE time and dereference at CLOSE time,
to ensure that fsvol remains around for DeviceIoControl operations done
after CLEANUP.
2022-06-09 14:28:31 +01:00
22bf0b09ef dll: FspMountBroadcastDriveChange
Broadcast WM_DEVICECHANGE asynchronously.
2022-06-07 14:06:13 +01:00
0a919d317a dll: FspMountBroadcastDriveChange
Broadcast WM_DEVICECHANGE asynchronously.
2022-06-07 13:11:23 +01:00
8e45f7d795 doc: WinFsp Performance Testing
Update with new tests and analysis for 2022.
2022-06-06 15:58:19 +01:00
646818a65c doc: WinFsp Performance Testing
Update with new tests and analysis for 2022.
2022-06-06 15:44:45 +01:00
6023efa7e6 doc: WinFsp Performance Testing
Update with new tests and analysis for 2022.
2022-06-06 00:32:15 +01:00
2dcb21edf2 tools: perf testing 2022-06-03 22:45:38 +01:00
edc56df2b2 tools: perf testing 2022-06-03 17:54:35 +01:00
64b57476dc changelog: update for v1.11RC1 2022-06-03 12:28:01 +01:00
acfa0ad880 build: version: bump to 2022+ARM64 RC1 2022-06-03 12:26:42 +01:00
d63cbd4146 changelog: update for v1.11B3 2022-06-03 12:25:16 +01:00
a90f19dbe3 dll: FspMountBroadcastDriveChange: fix drive change unitmask 2022-06-03 12:10:54 +01:00
b0cfdc0396 tst: fsbench: OptEmptyCacheDrive, OptOpenCount 2022-06-02 13:10:31 +01:00
69257949ac sys: FspCompareUnicodeString 2022-06-02 13:09:40 +01:00
286 changed files with 8113 additions and 1402 deletions

View File

@ -11,8 +11,8 @@ jobs:
- uses: billziss-gh/avm@v1
with:
files: |
https://github.com/winfsp/winfsp/releases/download/v1.6/winfsp-1.6.20027.msi
https://github.com/winfsp/winfsp/releases/download/v1.7/winfsp-1.7.20172.msi
https://github.com/winfsp/winfsp/releases/download/v1.8/winfsp-1.8.20304.msi
https://github.com/winfsp/winfsp/releases/download/v1.9/winfsp-1.9.21096.msi
https://github.com/winfsp/winfsp/releases/download/v1.10/winfsp-1.10.22006.msi
https://github.com/winfsp/winfsp/releases/download/v1.11/winfsp-1.11.22176.msi
https://github.com/winfsp/winfsp/releases/download/v1.12/winfsp-1.12.22301.msi
https://github.com/winfsp/winfsp/releases/download/v1.12.22339/winfsp-1.12.22339.msi
https://github.com/winfsp/winfsp/releases/download/v2.0/winfsp-2.0.23075.msi

View File

@ -1,6 +1,278 @@
# Changelog
## v2.1B2 (2024 Beta2)
- [FIX] Fixes a rare BSOD on recent versions of Windows. See commit a482183 for details.
- [FIX] Fixes a rare problem when using `NtCreateFile` to perform "relative" opens on a network drive (see GitHub issue #561).
- [FIX] Fixes a racing issue with two processes competing to start the FSD discovered during testing.
## v2.1B1 (2024 Beta1)
- [FIX] Fixes a rare BSOD on recent versions of Windows. See commit a482183 for details.
- [FIX] Fixes a racing issue with two processes competing to start the FSD discovered during testing.
## v2.0 (2023)
This release is a major version change for WinFsp (from 1.x to 2.x). There are no backwards incompatible API changes in this release, but nevertheless enough things change that warrant a version change.
The major new feature of this release is that it allows uninstallation and reinstallation of WinFsp **without reboot**. Going forward installers named `winfsp-2.x.y.msi` can be uninstalled and reinstalled without reboot. Furthermore a later version `winfsp-2.x.y.msi` installer can be used to upgrade over an earlier version `winfsp-2.x.y.msi` installer. However note that a `winfsp-2.x.y.msi` installer cannot be used to upgrade over a legacy `winfsp-1.x.y.msi` installer; you will still need to uninstall the old `winfsp-1.x.y.msi` installer, potentially reboot and then install the new `winfsp-2.x.y.msi` installer.
Changes visible to file system developers are listed below:
- WinFsp executable files are now installed by default in the directory `C:\Program Files (x86)\WinFsp\SxS\sxs.<InstanceID>\bin`. The previous directory `C:\Program Files (x86)\WinFsp\bin` is now a junction that points to the above directory.
- The WinFsp driver name is no longer `winfsp`, but rather a name such as `winfsp+<InstanceID>`. This means that managing the driver using the `sc.exe` utility is no longer as easy.
- The `fsptool` utility has been updated with new commands `lsdrv`, `load`, `unload` and `ver`. The `lsdrv`, `load` and `unload` commands can be used to manage the driver from the command line. This is rarely necessary, but may be useful for troubleshooting purposes.
- Prior to this release the WinFsp driver would never unmount a file system volume unless the user mode file system requested the unmount. From this release onward it is possible for the WinFsp driver to unmount a file system volume, without a user mode file system request. This is to allow for the driver to be unloaded.
A new operation `DispatcherStopped` has been added to `FSP_FILE_SYSTEM_INTERFACE`, which is sent after the file system volume has been unmounted and the file system dispatcher has been stopped. This can happen because of a user mode file system request via `FspFileSystemStopDispatcher` or because of driver unload. The `DispatcherStopped` operation includes a `Normally` parameter, which is `TRUE` for normal file system shutdown via `FspFileSystemStopDispatcher` and `FALSE` otherwise.
Native file systems that use the `FspService` infrastructure can use the `FspFileSystemStopServiceIfNecessary` API to handle the `DispatcherStopped` operation (see the MEMFS and NTPTFS samples). FUSE file systems get this functionality for free. .NET file systems that use the `Service` class infrastructure also get this functionality for free.
- WinFsp now offers a .NET library that targets .NET Framework 3.5 (as before) and one that targets .NET Standard 2.0. This is due to work by @Noire001 in PR #451.
- There is now a winfsp.net nuget package at https://www.nuget.org/packages/winfsp.net
- FUSE now supports path components up to 255 characters long (previously it was 255 bytes). This is due to work by @zeho11 in PR #474.
- The FUSE passthrough file systems have been updated to support long paths. This is also due to work by @zeho11.
- In some rare circumstances WinFsp file systems could report duplicate directory entries. This problem has been fixed. (GitHub issue #475.)
- The WinFsp symbols directory has been removed. If you are looking for WinFsp symbols you can find them at https://github.com/winfsp/winfsp.sym
## v2.0RC1 (2023 RC1)
This release is a major version change for WinFsp (from 1.x to 2.x). There are no backwards incompatible API changes in this release, but nevertheless enough things change that warrant a version change.
The major new feature of this release is that it allows uninstallation and reinstallation of WinFsp **without reboot**. Going forward installers named `winfsp-2.x.y.msi` can be uninstalled and reinstalled without reboot. Furthermore a later version `winfsp-2.x.y.msi` installer can be used to upgrade over an earlier version `winfsp-2.x.y.msi` installer. However note that a `winfsp-2.x.y.msi` installer cannot be used to upgrade over a legacy `winfsp-1.x.y.msi` installer; you will still need to uninstall the old `winfsp-1.x.y.msi` installer, potentially reboot and then install the new `winfsp-2.x.y.msi` installer.
Changes visible to file system developers are listed below:
- WinFsp executable files are now installed by default in the directory `C:\Program Files (x86)\WinFsp\SxS\sxs.<InstanceID>\bin`. The previous directory `C:\Program Files (x86)\WinFsp\bin` is now a junction that points to the above directory.
- The WinFsp driver name is no longer `winfsp`, but rather a name such as `winfsp+<InstanceID>`. This means that managing the driver using the `sc.exe` utility is no longer as easy.
- The `fsptool` utility has been updated with new commands `lsdrv`, `load`, `unload` and `ver`. The `lsdrv`, `load` and `unload` commands can be used to manage the driver from the command line. This is rarely necessary, but may be useful for troubleshooting purposes.
- Prior to this release the WinFsp driver would never unmount a file system volume unless the user mode file system requested the unmount. From this release onward it is possible for the WinFsp driver to unmount a file system volume, without a user mode file system request. This is to allow for the driver to be unloaded.
A new operation `DispatcherStopped` has been added to `FSP_FILE_SYSTEM_INTERFACE`, which is sent after the file system volume has been unmounted and the file system dispatcher has been stopped. This can happen because of a user mode file system request via `FspFileSystemStopDispatcher` or because of driver unload. The `DispatcherStopped` operation includes a `Normally` parameter, which is `TRUE` for normal file system shutdown via `FspFileSystemStopDispatcher` and `FALSE` otherwise.
Native file systems that use the `FspService` infrastructure can use the `FspFileSystemStopServiceIfNecessary` API to handle the `DispatcherStopped` operation (see the MEMFS and NTPTFS samples). FUSE file systems get this functionality for free. .NET file systems that use the `Service` class infrastructure also get this functionality for free.
- WinFsp now offers a .NET library that targets .NET Framework 3.5 (as before) and one that targets .NET Standard 2.0. This is due to work by @Noire001 in PR #451.
- There is now a winfsp.net nuget package at https://www.nuget.org/packages/winfsp.net
- FUSE now supports path components up to 255 characters long (previously it was 255 bytes). This is due to work by @zeho11 in PR #474.
- The FUSE passthrough file systems have been updated to support long paths. This is also due to work by @zeho11.
- In some rare circumstances WinFsp file systems could report duplicate directory entries. This problem has been fixed. (GitHub issue #475.)
- The WinFsp symbols directory has been removed. If you are looking for WinFsp symbols you can find them at https://github.com/winfsp/winfsp.sym
## v2.0B2 (2023 Beta2)
This release is a major version change for WinFsp (from 1.x to 2.x). There are no backwards incompatible API changes in this release, but nevertheless enough things change that warrant a version change.
The major new feature of this release is that it allows uninstallation and reinstallation of WinFsp **without reboot**. Going forward installers named `winfsp-2.x.y.msi` can be uninstalled and reinstalled without reboot. Furthermore a later version `winfsp-2.x.y.msi` installer can be used to upgrade over an earlier version `winfsp-2.x.y.msi` installer. However note that a `winfsp-2.x.y.msi` installer cannot be used to upgrade over a "legacy" `winfsp-1.x.y.msi` installer; you will still need to uninstall the "old" `winfsp-1.x.y.msi` installer, potentially reboot and then install the "new" `winfsp-2.x.y.msi` installer.
Changes visible to file system developers are listed below:
- WinFsp executable files are now installed by default in the directory `C:\Program Files (x86)\WinFsp\SxS\sxs.<InstanceID>\bin`. The previous directory `C:\Program Files (x86)\WinFsp\bin` is now a junction that points to the above directory.
- The WinFsp driver name is no longer `winfsp`, but rather a name such as `winfsp+<InstanceID>`. This means that managing the driver using the `sc.exe` utility is no longer as easy.
- The `fsptool` utility has been updated with new commands `lsdrv`, `load`, `unload` and `ver`. The `lsdrv`, `load` and `unload` commands can be used to manage the driver from the command line. This is rarely necessary, but may be useful for troubleshooting purposes.
- Prior to this release the WinFsp driver would never unmount a file system volume unless the user mode file system requested the unmount. From this release onward it is possible for the WinFsp driver to unmount a file system volume, without a user mode file system request. This is to allow for the driver to be unloaded.
A new operation `DispatcherStopped` has been added to `FSP_FILE_SYSTEM_INTERFACE`, which is sent after the file system volume has been unmounted and the file system dispatcher has been stopped. This can happen because of a user mode file system request via `FspFileSystemStopDispatcher` or because of driver unload. The `DispatcherStopped` operation includes a `Normally` parameter, which is `TRUE` for normal file system shutdown via `FspFileSystemStopDispatcher` and `FALSE` otherwise.
Native file systems that use the `FspService` infrastructure can use the `FspFileSystemStopServiceIfNecessary` API to handle the `DispatcherStopped` operation (see the MEMFS and NTPTFS samples). FUSE file systems get this functionality for free. .NET file systems that use the `Service` class infrastructure also get this functionality for free.
- WinFsp now offers a .NET library that targets .NET Framework 3.5 (as before) and one that targets .NET Standard 2.0. This is due to work by @Noire001 in PR #451.
- FUSE now supports path components up to 255 characters long (previously it was 255 bytes). This is due to work by @zeho11 in PR #474.
- The FUSE passthrough file systems have been updated to support long paths. This is also due to work by @zeho11.
- The WinFsp symbols directory has been removed. If you are looking for WinFsp symbols you can find them at https://github.com/winfsp/winfsp.sym
## v2.0B1 (2023 Beta1)
This release is a major version change for WinFsp (from 1.x to 2.x). There are no backwards incompatible API changes in this release, but nevertheless enough things change that warrant a version change.
The major new feature of this release is that it allows uninstallation and reinstallation of WinFsp **without reboot**. Going forward installers named `winfsp-2.x.y.msi` can be uninstalled and reinstalled without reboot. Furthermore a later version `winfsp-2.x.y.msi` installer can be used to upgrade over an earlier version `winfsp-2.x.y.msi` installer. However note that a `winfsp-2.x.y.msi` installer cannot be used to upgrade over a "legacy" `winfsp-1.x.y.msi` installer; you will still need to uninstall the "old" `winfsp-1.x.y.msi` installer, potentially reboot and then install the "new" `winfsp-2.x.y.msi` installer.
Some changes that may be visible to file system developers are listed below:
- WinFsp executable files are now installed by default in the directory `C:\Program Files (x86)\WinFsp\SxS\sxs.<InstanceID>\bin`. The previous directory `C:\Program Files (x86)\WinFsp\bin` is now a junction that points to the above directory.
- The WinFsp driver name is no longer `winfsp`, but rather a name such as `winfsp+<InstanceID>`. This means that managing the driver using the `sc.exe` utility is no longer as easy.
- The `fsptool` utility has been updated with new commands `lsdrv`, `load`, `unload` and `ver`. The `lsdrv`, `load` and `unload` commands can be used to manage the driver from the command line. This is rarely necessary, but may be useful for troubleshooting purposes.
- The WinFsp symbols directory has been removed. If you are looking for WinFsp symbols you can find them at https://github.com/winfsp/winfsp.sym
## v1.12.22339 (2022.2 Update1)
*Note: This release (`v1.12.22339`) is the same as the previous release (`v1.12`) except that: (1) the kernel-mode drivers are now digitally signed only with the Microsoft Attestation signature, and that: (2) no release assets are digitally signed with SHA-1. (This change was necessary to fix a problem in older versions of Windows such as Windows 7.)*
- [NEW] WinFsp now supports mounting as directory using the Mount Manager. Use the syntax `\\.\C:\Path\To\Mount\Directory`.
- [NEW] A new registry setting `MountUseMountmgrFromFSD` has been added. See [WinFsp Registry Settings](https://github.com/winfsp/winfsp/wiki/WinFsp-Registry-Settings) for details.
- [FIX] A problem with Windows containers has been fixed. (GitHub issue #438.)
- [FIX] File systems can now be mounted as directories on ARM64. (GitHub issue #448.)
- [FIX] The passthrough file system now reports correct `IndexNumber`. (GitHub issue #325.)
- [BUILD] Product configuration for the relative paths to the File System Driver, Network Provider and EventLog is now possible via the file `build.version.props` located in `build\VStudio`.
## v1.12 (2022.2)
- [NEW] WinFsp now supports mounting as directory using the Mount Manager. Use the syntax `\\.\C:\Path\To\Mount\Directory`.
- [NEW] A new registry setting `MountUseMountmgrFromFSD` has been added. See [WinFsp Registry Settings](https://github.com/winfsp/winfsp/wiki/WinFsp-Registry-Settings) for details.
- [FIX] A problem with Windows containers has been fixed. (GitHub issue #438.)
- [FIX] File systems can now be mounted as directories on ARM64. (GitHub issue #448.)
- [FIX] The passthrough file system now reports correct `IndexNumber`. (GitHub issue #325.)
- [BUILD] Product configuration for the relative paths to the File System Driver, Network Provider and EventLog is now possible via the file `build.version.props` located in `build\VStudio`.
## v1.12B2 (2022.2 Beta2)
- [NEW] WinFsp now supports mounting as directory using the Mount Manager. Use the syntax `\\.\C:\Path\To\Mount\Directory`.
- [NEW] A new registry setting `MountUseMountmgrFromFSD` has been added. See [WinFsp Registry Settings](https://github.com/winfsp/winfsp/wiki/WinFsp-Registry-Settings) for details.
- [FIX] A problem with Windows containers has been fixed. (GitHub issue #438.)
- [FIX] File systems can now be mounted as directories on ARM64. (GitHub issue #448.)
- [FIX] The passthrough file system now reports correct `IndexNumber`. (GitHub issue #325.)
- [BUILD] Product configuration for the relative paths to the File System Driver, Network Provider and EventLog is now possible via the file `build.version.props` located in `build\VStudio`.
## v1.12B1 (2022.2 Beta1)
- [NEW] WinFsp now supports mounting as directory using the Mount Manager. Use the syntax `\\.\C:\Path\To\Mount\Directory`.
- [NEW] A new registry setting `MountUseMountmgrFromFSD` has been added. See [WinFsp Registry Settings](https://github.com/winfsp/winfsp/wiki/WinFsp-Registry-Settings) for details.
- [BUILD] Product configuration for the relative paths to the File System Driver, Network Provider and EventLog is now possible via the file `build.version.props` located in `build\VStudio`.
## v1.11 (2022+ARM64)
- [NEW] ARM64 support! For details see [WinFsp on ARM64](https://github.com/winfsp/winfsp/wiki/WinFsp-on-ARM64).
- [NEW] A new file system operation has been added to the FUSE API:
```C
int (*getpath)(const char *path, char *buf, size_t size,
struct fuse_file_info *fi);
```
The `getpath` operation allows a case-insensitive file system to report the correct case of a file path. For example, `getpath` can be used to report that the actual path of a file opened as `/PATH/TO/FILE` is really `/Path/To/File`. This capability is important for some Windows file system scenarios and can sometimes result in a performance improvement.
- [NEW] New `ntptfs` sample file system. This is a production quality pass through file system and should be used instead of the original `passthrough` file system that was developed for education purposes only.
- [NEW] Many performance improvements:
- A new `PostDispositionForDirOnly` setting has been added to `FSP_FSCTL_VOLUME_PARAMS`. This allows a file system to declare that it does not want to see `SetInformation/Disposition` requests for files (such requests will still be sent for directories, because a file system is supposed to check if a directory is empty before deletion). This makes file (not directory) deletion faster. This optimization should be safe to enable for most file systems. FUSE file systems get this optimization for free.
- The FSD now implements "fast I/O" reads and writes. Fast I/O is a technique for doing I/O without using IRP's (I/O Request Packets) and can only work for file systems using the cache manager (`FileInfoTimeout==-1`). This results in significant improvement in read/write scenarios.
- The FSD now implements "fast I/O" for "transact" messages. Transact messages are used in the communication protocol between the kernel-mode FSD and the user-mode file system. Fast I/O speeds this communication protocol by as much as 10% in some scenarios. (Fast I/O for transact messages is enabled only when using the new `FSP_IOCTL_TRANSACT` control code, but does not require any other special configuration to be enabled.)
- The FSD per directory cache limit has been increased from 16K to 64K. This should allow for more directory data to be maintained in kernel and reduce round-trips to the user mode file system.
- The user mode directory buffering mechanism (`FspFileSystemAcquireDirectoryBuffer`) has been improved. The mechanism uses the quick-sort algorithm internally which can exhibit bad performance when sorting already sorted data. The quick-sort algorithm has been improved with the use use of median of three partitioning, which alleviates this problem.
- [NEW] A new registry setting under `HKLM\SOFTWARE\WinFsp` (or `HKLM\SOFTWARE\WOW6432Node\WinFsp` on a 64-bit system) called `MountBroadcastDriveChange` has been introduced, which if set to 1 will broadcast an additional "drive change" message to all top-level windows (including Explorer) during mounting and unmounting.
- Normally the Windows infrastructure broadcasts a `WM_DEVICECHANGE` message whenever a drive gets added/removed. In some rare systems it is possible for this message to get lost or stalled. The workaround for these rare systems is to enable this registry setting, in which case WinFsp will broadcast the `WM_DEVICECHANGE` using a slightly different but more reliable method than the one Windows uses.
- For more details see source code comments at [`FspMountBroadcastDriveChange`](https://github.com/winfsp/winfsp/blob/v1.11B3/src/dll/mount.c#L390-L406).
- [FIX] The WinFsp Network Provider now implements `NPGetUniversalName`. This fixes problems with some apps (e.g. Photos app).
- [FIX] WinFsp-FUSE now supports Azure AD accounts when specifying the `-o uid=-1` option. In addition a new option `-o uidmap=UID:SID` allows the specification of arbitrary UID<->SID or UID<->UserName mappings.
- [FIX] All executables (`*.exe,*.dll,*.sys`) in the WinFsp installation `bin` folder are now signed.
- [FIX] The default value for the registry setting `DistinctPermsForSameOwnerGroup` has been changed from 0 to 1.
- [BUILD] Product configuration (`MyProductName`, etc.) is done by the file `build.version.props` located in `build\VStudio`. This file was previously named `version.properties`.
## v1.11RC1 (2022+ARM64 RC1)
- [NEW] ARM64 support! For details see [WinFsp on ARM64](https://github.com/winfsp/winfsp/wiki/WinFsp-on-ARM64).
- [NEW] A new file system operation has been added to the FUSE API:
```C
int (*getpath)(const char *path, char *buf, size_t size,
struct fuse_file_info *fi);
```
The `getpath` operation allows a case-insensitive file system to report the correct case of a file path. For example, `getpath` can be used to report that the actual path of a file opened as `/PATH/TO/FILE` is really `/Path/To/File`. This capability is important for some Windows file system scenarios and can sometimes result in a performance improvement.
- [NEW] New `ntptfs` sample file system. This is a production quality pass through file system and should be used instead of the original `passthrough` file system that was developed for education purposes only.
- [NEW] Many performance improvements:
- A new `PostDispositionForDirOnly` setting has been added to `FSP_FSCTL_VOLUME_PARAMS`. This allows a file system to declare that it does not want to see `SetInformation/Disposition` requests for files (such requests will still be sent for directories, because a file system is supposed to check if a directory is empty before deletion). This makes file (not directory) deletion faster. This optimization should be safe to enable for most file systems. FUSE file systems get this optimization for free.
- The FSD now implements "fast I/O" reads and writes. Fast I/O is a technique for doing I/O without using IRP's (I/O Request Packets) and can only work for file systems using the cache manager (`FileInfoTimeout==-1`). This results in significant improvement in read/write scenarios.
- The FSD now implements "fast I/O" for "transact" messages. Transact messages are used in the communication protocol between the kernel-mode FSD and the user-mode file system. Fast I/O speeds this communication protocol by as much as 10% in some scenarios. (Fast I/O for transact messages is enabled only when using the new `FSP_IOCTL_TRANSACT` control code, but does not require any other special configuration to be enabled.)
- The FSD per directory cache limit has been increased from 16K to 64K. This should allow for more directory data to be maintained in kernel and reduce round-trips to the user mode file system.
- The user mode directory buffering mechanism (`FspFileSystemAcquireDirectoryBuffer`) has been improved. The mechanism uses the quick-sort algorithm internally which can exhibit bad performance when sorting already sorted data. The quick-sort algorithm has been improved with the use use of median of three partitioning, which alleviates this problem.
- [NEW] A new registry setting under `HKLM\SOFTWARE\WinFsp` (or `HKLM\SOFTWARE\WOW6432Node\WinFsp` on a 64-bit system) called `MountBroadcastDriveChange` has been introduced, which if set to 1 will broadcast an additional "drive change" message to all top-level windows (including Explorer) during mounting and unmounting.
- Normally the Windows infrastructure broadcasts a `WM_DEVICECHANGE` message whenever a drive gets added/removed. In some rare systems it is possible for this message to get lost or stalled. The workaround for these rare systems is to enable this registry setting, in which case WinFsp will broadcast the `WM_DEVICECHANGE` using a slightly different but more reliable method than the one Windows uses.
- For more details see source code comments at [`FspMountBroadcastDriveChange`](https://github.com/winfsp/winfsp/blob/v1.11B3/src/dll/mount.c#L390-L406).
- [FIX] The WinFsp Network Provider now implements `NPGetUniversalName`. This fixes problems with some apps (e.g. Photos app).
- [FIX] WinFsp-FUSE now supports Azure AD accounts when specifying the `-o uid=-1` option. In addition a new option `-o uidmap=UID:SID` allows the specification of arbitrary UID<->SID or UID<->UserName mappings.
- [FIX] All executables (`*.exe,*.dll,*.sys`) in the WinFsp installation `bin` folder are now signed.
- [FIX] The default value for the registry setting `DistinctPermsForSameOwnerGroup` has been changed from 0 to 1.
- [BUILD] Product configuration (`MyProductName`, etc.) is done by the file `build.version.props` located in `build\VStudio`. This file was previously named `version.properties`.
## v1.11B3 (2022+ARM64 Beta3)
- [NEW] ARM64 support! For details see [WinFsp on ARM64](https://github.com/winfsp/winfsp/wiki/WinFsp-on-ARM64).
@ -28,6 +300,12 @@
- The user mode directory buffering mechanism (`FspFileSystemAcquireDirectoryBuffer`) has been improved. The mechanism uses the quick-sort algorithm internally which can exhibit bad performance when sorting already sorted data. The quick-sort algorithm has been improved with the use use of median of three partitioning, which alleviates this problem.
- [NEW] A new registry setting under `HKLM\SOFTWARE\WinFsp` (or `HKLM\SOFTWARE\WOW6432Node\WinFsp` on a 64-bit system) called `MountBroadcastDriveChange` has been introduced, which if set to 1 will broadcast an additional "drive change" message to all top-level windows (including Explorer) during mounting and unmounting.
- Normally the Windows infrastructure broadcasts a `WM_DEVICECHANGE` message whenever a drive gets added/removed. In some rare systems it is possible for this message to get lost or stalled. The workaround for these rare systems is to enable this registry setting, in which case WinFsp will broadcast the `WM_DEVICECHANGE` using a slightly different but more reliable method than the one Windows uses.
- For more details see source code comments at [`FspMountBroadcastDriveChange`](https://github.com/winfsp/winfsp/blob/v1.11B3/src/dll/mount.c#L390-L406).
- [FIX] The WinFsp Network Provider now implements `NPGetUniversalName`. This fixes problems with some apps (e.g. Photos app).
- [FIX] WinFsp-FUSE now supports Azure AD accounts when specifying the `-o uid=-1` option. In addition a new option `-o uidmap=UID:SID` allows the specification of arbitrary UID<->SID or UID<->UserName mappings.

View File

@ -58,6 +58,7 @@ CONTRIBUTOR LIST
|Ben Rubson |ben.rubson at gmail.com
|Bill Zissimopoulos |billziss at navimatics.com
|Brett Dutro |brett.dutro at gmail.com
|Changjian Gao (Juicedata, https://juicefs.com) |gcj at juicedata.io
|Colin Atkinson (Atakama, https://atakama.com) |colin at atakama.com
|Felix Croes |felix at dworkin.nl
|Francois Karam (KS2, http://www.ks2.fr) |francois.karam at ks2.fr
@ -65,10 +66,14 @@ CONTRIBUTOR LIST
|Gal Hammer (Red Hat, https://www.redhat.com) |ghammer at redhat.com
|John Oberschelp |john at oberschelp.net
|John Tyner |jtyner at gmail.com
|Konstantinos Karakostas |noiredev at protonmail.com
|Naoki Ikeguchi |me at s6n.jp
|Paweł Wegner (Google LLC, https://google.com) |lemourin at google.com
|Pedro Frejo (Arpa System, https://arpasystem.com) |pedro.frejo at arpasystem.com
|Ronny Chan |ronny at ronnychan.ca
|Sam Kelly (DuroSoft Technologies LLC, https://durosoft.com) |sam at durosoft.com
|Santiago Ganis |sganis at gmail.com
|Tobias Urlaub |saibotu at outlook.de
|Victor Gao |victgm at outlook.com
|Zeho Huang |zeho11 at protonmail.com
|===

157
README.md
View File

@ -1,141 +1,110 @@
<h1 align="center">
<img src="art/winfsp-glow.png" width="256"/>
<br/>
<br/>
WinFsp &middot; Windows File System Proxy
</h1>
<h1 align="center">WinFsp &middot; Windows File System Proxy</h1>
<p align="center">
<b>Download</b><br>
<a href="https://github.com/winfsp/winfsp/releases/latest">
<img src="https://img.shields.io/github/release/winfsp/winfsp.svg?label=stable&style=for-the-badge"/>
</a>
<a href="https://github.com/winfsp/winfsp/releases">
<img src="https://img.shields.io/github/release/winfsp/winfsp/all.svg?label=latest&colorB=e52e4b&style=for-the-badge"/>
</a>
<a href="https://chocolatey.org/packages/winfsp">
<img src="https://img.shields.io/badge/choco-install%20winfsp-black.svg?style=for-the-badge"/>
</a>
<img src="art/winfsp-glow.png" width="128"/>
<br/>
<br/>
<a href="https://ci.appveyor.com/project/billziss-gh/winfsp">
<img src="https://img.shields.io/appveyor/ci/billziss-gh/winfsp.svg"/>
</a>
<i>WinFsp enables developers to write their own file systems (i.e. "Windows drives") as user mode programs and without any knowledge of Windows kernel programming. It is similar to FUSE (Filesystem in Userspace) for Linux and other UNIX-like computers.</i>
<br/>
<br/>
WinFsp is a set of software components for Windows computers that allows the creation of user mode file systems. In this sense it is similar to FUSE (Filesystem in Userspace), which provides the same functionality on UNIX-like computers.
<a href="https://winfsp.dev"><b>winfsp.dev</b></a>
<br/>
<br/>
<a href="https://github.com/winfsp/winfsp/releases/latest"><img src="https://img.shields.io/github/release/winfsp/winfsp.svg?label=stable&style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0ODAgNDgwIj48cGF0aCBkPSJNMzg3LjAwMiAyMDEuMDAxQzM3Mi45OTggMTMyLjAwMiAzMTIuOTk4IDgwIDI0MCA4MGMtNTcuOTk4IDAtMTA3Ljk5OCAzMi45OTgtMTMyLjk5OCA4MS4wMDFDNDcuMDAyIDE2Ny4wMDIgMCAyMTcuOTk4IDAgMjgwYzAgNjUuOTk2IDUzLjk5OSAxMjAgMTIwIDEyMGgyNjBjNTUgMCAxMDAtNDUgMTAwLTEwMCAwLTUyLjk5OC00MC45OTYtOTYuMDAxLTkyLjk5OC05OC45OTl6TTIwOCAyNTJ2LTc2aDY0djc2aDY4TDI0MCAzNTIgMTQwIDI1Mmg2OHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4="/></a>
<a href="https://github.com/winfsp/winfsp/releases"><img src="https://img.shields.io/github/release/winfsp/winfsp/all.svg?label=latest&colorB=e52e4b&style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0ODAgNDgwIj48cGF0aCBkPSJNMzg3LjAwMiAyMDEuMDAxQzM3Mi45OTggMTMyLjAwMiAzMTIuOTk4IDgwIDI0MCA4MGMtNTcuOTk4IDAtMTA3Ljk5OCAzMi45OTgtMTMyLjk5OCA4MS4wMDFDNDcuMDAyIDE2Ny4wMDIgMCAyMTcuOTk4IDAgMjgwYzAgNjUuOTk2IDUzLjk5OSAxMjAgMTIwIDEyMGgyNjBjNTUgMCAxMDAtNDUgMTAwLTEwMCAwLTUyLjk5OC00MC45OTYtOTYuMDAxLTkyLjk5OC05OC45OTl6TTIwOCAyNTJ2LTc2aDY0djc2aDY4TDI0MCAzNTIgMTQwIDI1Mmg2OHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4="/></a>
<a href="https://chocolatey.org/packages/winfsp"><img src="https://img.shields.io/badge/choco-install%20winfsp-black.svg?style=for-the-badge"/></a>
<br/>
<br/>
<img src="doc/cap.gif" width="75%" height="75%"/>
<br/>
<br/>
<img src="doc/cap.gif" height="450"/>
</p>
## Benefits
<hr/>
### Stability
## Overview
WinFsp is very stable. There are no known kernel mode crashes and it does not suffer from resource leaks or similar problems. WinFsp owes this stability to its [Design](doc/WinFsp-Design.asciidoc) and its rigorous [Testing Regime](doc/WinFsp-Testing.asciidoc).
WinFsp is a platform that provides development and runtime support for custom file systems on Windows computers. Typically any information or storage may be organized and presented as a file system via WinFsp, with the benefit being that the information can be accessed via the standand Windows file APIs by any Windows application.
### Performance
The core WinFsp consists of a kernel mode file system driver (FSD) and a user mode DLL. The FSD interfaces with the Windows kernel and handles all interactions necessary to present itself as a file system driver. The DLL interfaces with the FSD and presents an API that can be used to handle file system functions. For example, when an application attempts to open a file, the file system receives an `Open` call with the necessary information.
WinFsp outperforms its competition and in many scenarios performs as well as NTFS. Read more about its [Performance](doc/WinFsp-Performance-Testing.asciidoc).
Using WinFsp to build a file system has many benefits:
**Easy development**: Developing kernel mode file systems for Windows is a notoriously difficult task. WinFsp makes file system development relatively painless. This [Tutorial](doc/WinFsp-Tutorial.asciidoc) explains how to build a file system.
**Stability**: Stable software without any known kernel mode crashes, resource leaks or similar problems. WinFsp owes this stability to its [Design](doc/WinFsp-Design.asciidoc) and its rigorous [Testing Regime](doc/WinFsp-Testing.asciidoc).
**Correctness**: Strives for file system correctness and compatibility with NTFS. For details see the [Compatibility](doc/NTFS-Compatibility.asciidoc) document.
**Performance**: Has excellent performance that rivals or exceeds that of NTFS in many file system scenarios. Read more about its [Performance](doc/WinFsp-Performance-Testing.asciidoc).
<p align="center">
<img src="doc/WinFsp-Performance-Testing/file_tests.png" height="300"/>
<img src="doc/WinFsp-Performance-Testing/rdwr_tests.png" height="300"/>
</p>
### Compatibility
**Wide support**: Supports Windows 7 to Windows 11 and the x86, x64 and ARM64 architectures.
WinFsp strives for compatibility with NTFS and file system correctness. For the full details see the [Compatibility](doc/NTFS-Compatibility.asciidoc) document.
**Flexible API**: Includes Native, FUSE2, FUSE3 and .NET API's.
### Easy to Use
**Shell integration**: Provides facilities to integrate user mode file systems with the Windows shell. See the [Service Architecture](doc/WinFsp-Service-Architecture.asciidoc) document.
WinFsp has an easy to use but comprehensive API.
**Self-contained**: Self-contained software without external dependencies.
* This simple [Tutorial](doc/WinFsp-Tutorial.asciidoc) explains how to build a file system.
* Consult the [API Reference](https://winfsp.dev/apiref) for native development.
* Includes .NET layer for managed development. See [src/dotnet](src/dotnet).
* Includes FUSE 2.8 compatibility layer: [fuse/fuse.h](inc/fuse/fuse.h)
* Includes FUSE 3.2 compatibility layer: [fuse3/fuse.h](inc/fuse3/fuse.h)
**Widely used**: Used in many open-source and commercial applications with millions of installations (estimated: the WinFsp project does not track its users).
### Other Benefits
**Flexible licensing**: Available under the [GPLv3](License.txt) license with a special exception for Free/Libre and Open Source Software. A commercial license is also available. Please contact Bill Zissimopoulos \<billziss at navimatics.com> for more details.
* Signed drivers provided on every release.
* Available under the [GPLv3](License.txt) license with a special exception for Free/Libre and Open Source Software.
## Installation
To learn more about WinFsp, please visit its website: https://winfsp.dev
Download and run the [WinFsp installer](https://github.com/winfsp/winfsp/releases/latest). In the installer select the option to install the "Developer" files. These include the MEMFS sample file system, but also header and library files that let you develop your own user-mode file system.
## Project Organization
<img src="doc/WinFsp-Tutorial/Installer.png" height="290"/>
The project source code is organized as follows:
### Launch a file system for testing
* :file_folder: [build/VStudio](build/VStudio): WinFsp solution and project files.
* :file_folder: [doc](doc): The WinFsp design documents and additional documentation can be found here.
* :file_folder: [ext](ext): External dependencies.
* :file_folder: [ext/tlib](ext/tlib): A small test library originally from the secfs (Secure Cloud File System) project.
* :file_folder: ext/test: Submodule pointing to the secfs.test project, which contains a number of tools for testing Windows and POSIX file systems.
* :file_folder: [inc](inc): Public headers.
* :file_folder: [inc/fuse](inc/fuse): Public headers for the FUSE compatibility layer.
* :file_folder: [inc/fuse3](inc/fuse3): Public headers for the FUSE3 compatibility layer.
* :file_folder: [inc/winfsp](inc/winfsp): Public headers for the WinFsp API.
* :file_folder: [src](src): WinFsp source code.
* :file_folder: [src/dll](src/dll): Source code to the WinFsp DLL.
* :file_folder: [src/dll/fuse](src/dll/fuse): Source code to the FUSE compatibility layer.
* :file_folder: [src/dll/fuse3](src/dll/fuse3): Source code to the FUSE3 compatibility layer.
* :file_folder: [src/dotnet](src/dotnet): Source code to the .NET layer.
* :file_folder: [src/fsptool](src/fsptool): Source code to fsptool command line utility.
* :file_folder: [src/ku](src/ku): Source code that can be used from kernel or user mode.
* :file_folder: [src/launcher](src/launcher): Source code to the launcher service and the launchctl utility.
* :file_folder: [src/sys](src/sys): Source code to the WinFsp FSD.
* :file_folder: [opt/cygfuse](opt/cygfuse): Source code to the FUSE for Cygwin package.
* :file_folder: [tst](tst): Source code to example file systems and test suites.
* :file_folder: [tst/winfsp-tests](tst/winfsp-tests): WinFsp test suite.
* :file_folder: [tools](tools): Various tools for building and testing WinFsp.
You can test WinFsp by launching MEMFS from the command line:
## Building and Running
```
billziss@xps ⟩ ~ ⟩ net use X: \\memfs64\test
The command completed successfully.
In order to build WinFsp you will need the following:
billziss@xps ⟩ ~ ⟩ X:
billziss@xps ⟩ X:\ ⟩ echo "hello world" > hello.txt
billziss@xps ⟩ X:\ ⟩ dir
* Visual Studio 2015 - 2019
* Windows Driver Kit (WDK) 10
- **NOTE**: When using the latest WDK (Windows 10.0.18362.1) with Visual Studio 2015 you may get an error about a missing task `ValidateNTTargetVersion`. The fix is to edit the file `\Program Files (x86)\Windows Kits\10\build\WindowsDriver.Common.targets` and modify the `UsingTask` line for `ValidateNTTargetVersion` as follows:
```
<UsingTask TaskName="ValidateNTTargetVersion" AssemblyFile="$(WDKContentRoot)build\bin\Microsoft.DriverKit.Build.Tasks.16.0.dll"/>
```
* [Wix toolset](http://wixtoolset.org)
To fully build WinFsp (including the installer) you must use `tools\build.bat`. By default it builds a Release build, but you can choose either the Debug or Release configuration by using the syntax:
Directory: X:\
tools\build.bat CONFIGURATION
If you build the driver yourself it will not be signed and Windows will refuse to load it unless you enable "testsigning". You can enable "testsigning" using the command `bcdedit.exe -set testsigning on`. For more information see this [document](doc/WinFsp-Debugging-Setup.asciidoc).
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 6/12/2022 5:15 PM 28 hello.txt
WinFsp is designed to run on Windows 7 and above. It has been tested on the following platforms:
* Windows 7 Enterprise
* Windows 8 Pro
* Windows Server 2012
* Windows 10 Pro
* Windows Server 2016
* Windows 11 Pro
billziss@xps ⟩ X:\ ⟩ type hello.txt
hello world
billziss@xps ⟩ X:\ ⟩ cd ~
billziss@xps ⟩ ~ ⟩ net use X: /delete
X: was deleted successfully.
```
## How to Help
MEMFS (and all file systems that use the WinFsp Launcher as documented in the [Service Architecture](doc/WinFsp-Service-Architecture.asciidoc) document) can also be launched from Explorer using the "Map Network Drive" functionality.
I am looking for help in the following areas:
## Resources
* If you have a file system that runs on FUSE please consider porting it to WinFsp. WinFsp has a native API, but it also has a FUSE (high-level) API.
* If you are working with a language other than C/C++ (e.g. Delphi, Java, etc.) and you are interested in porting/wrapping WinFsp I would love to hear from you.
* There are a number of outstanding issues listed in the [GitHub repository](https://github.com/winfsp/winfsp/issues). Many of these require knowledge of Windows kernel-mode and an understanding of the internals of WinFsp so they are not for the faint of heart.
**Documentation**:
In all cases I can provide ideas and/or support.
- [Tutorial](doc/WinFsp-Tutorial.asciidoc)
## Where to Discuss
- [API Reference](doc/WinFsp-API-winfsp.h.md)
If you wish to discuss WinFsp there are now two options:
- [Building](doc/WinFsp-Building.asciidoc)
- [Project wiki](https://github.com/winfsp/winfsp/wiki)
**Discussion**:
- [WinFsp Google Group](https://groups.google.com/forum/#!forum/winfsp)
- [Author's Twitter](https://twitter.com/BZissimopoulos)
## License
WinFsp is available under the [GPLv3](License.txt) license with a special exception for Free/Libre and Open Source Software. A commercial license is also available. Please contact Bill Zissimopoulos \<billziss at navimatics.com> for more details.

View File

@ -1,6 +1,13 @@
version: '{build}'
skip_tags: true
skip_commits:
files:
- README.md
- Changelog.md
- Contributors.asciidoc
- art/**
- doc/**
environment:
# Disable the winfsp-tests built-in exception filter to allow WER to collect dumps.
@ -10,19 +17,25 @@ environment:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONFIGURATION: Debug
TESTING: Func
DOCKER_TESTING: None
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONFIGURATION: Release
TESTING: Func
DOCKER_TESTING: None
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONFIGURATION: Release
TESTING: Func
DOCKER_TESTING: None
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CONFIGURATION: Release
TESTING: Func
DOCKER_TESTING: Func
#- CONFIGURATION: Release
# TESTING: Avast
# DOCKER_TESTING: None
#- CONFIGURATION: Release
# TESTING: Perf
# DOCKER_TESTING: None
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
@ -38,6 +51,11 @@ install:
$targets.Save("C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.Common.targets")
Add-AppveyorMessage "Hack to make WDK 1903 work on VS2015"
}
# Install .NET SDK on VS2015 image
- ps: |
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") {
& ([scriptblock]::Create((New-Object System.Net.WebClient).DownloadString('https://dot.net/v1/dotnet-install.ps1'))) -InstallDir "C:\dotnet"
}
# Submodules
- git submodule update --init --recursive
# Kernel and user mode dumps
@ -63,6 +81,9 @@ build_script:
# remove ARM64 project configurations to build in VS2015/VS2017
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" tools\gensrc\remove-build-arm64.bat
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" tools\gensrc\remove-build-arm64.bat
# remove .NET library from solution for VS2015 and use the .NET SDK instead
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" tools\gensrc\remove-build-dotnet.bat build\VStudio
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" set PATH=C:\dotnet;%PATH%
# build winfsp
- tools\build.bat %CONFIGURATION%
@ -73,6 +94,8 @@ test_script:
- if %TESTING%==Func 7z x Test.Filter.Driver.zip.001
- if %TESTING%==Func start /wait msiexec /i "Test.Filter.Driver\HCK Filter.Driver Content-x86_en-us.msi" /qn
- if %TESTING%==Func tools\nmake-ext-test.bat %CONFIGURATION%
#- ps: . "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe" /k +spp *
- if %DOCKER_TESTING%==Func docker run -d --name=Container0 --isolation=process "-vC:\Program Files (x86)\WinFsp:C:\Program Files (x86)\WinFsp:RO" "-vC:\projects:C:\projects:RO" mcr.microsoft.com/windows/servercore:ltsc2019 cmd.exe /c waitfor 7BF47D72F6664550B03248ECFE77C7DD
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION%
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION% ifstest
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION% sample
@ -80,6 +103,9 @@ test_script:
- if %TESTING%==Avast choco install avastfreeantivirus && fltmc instances -v "C:"
- if %TESTING%==Avast tools\run-tests.bat %CONFIGURATION% avast-tests
- if %TESTING%==Perf tools\run-perf-tests.bat %CONFIGURATION% baseline > perf-tests.csv && type perf-tests.csv & appveyor PushArtifact perf-tests.csv
- if %DOCKER_TESTING%==Func docker exec Container0 cmd.exe /c C:\projects\winfsp\build\VStudio\build\%CONFIGURATION%\winfsp-tests-x64.exe +*
#- if %DOCKER_TESTING%==Func docker run -d --name=Container1 --isolation=process "-vC:\Program Files (x86)\WinFsp:C:\Program Files (x86)\WinFsp:RO" "-vC:\projects:C:\projects:RO" mcr.microsoft.com/windows/servercore:ltsc2019 cmd.exe /c waitfor 7BF47D72F6664550B03248ECFE77C7DD
#- if %DOCKER_TESTING%==Func docker exec Container1 cmd.exe /c C:\projects\winfsp\build\VStudio\build\%CONFIGURATION%\winfsp-tests-x64.exe +*
- choco uninstall winfsp -y
on_finish:

View File

@ -3,10 +3,10 @@
<Import Project="$(MsbuildThisFileDirectory)\build.version.props" />
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>NTDDI_VERSION=0x06010000;_WIN32_WINNT=0x0601;MyProductName=$(MyProductName);MyProductFileName=$(MyProductFileName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas);MyFullVersion=$(MyFullVersion);MyFspFsctlDeviceClassGuid=$(MyFspFsctlDeviceClassGuid);MyFspFsvrtDeviceClassGuid=$(MyFspFsvrtDeviceClassGuid)</PreprocessorDefinitions>
<PreprocessorDefinitions>NTDDI_VERSION=0x06010000;_WIN32_WINNT=0x0601;MyProductName=$(MyProductName);MyProductFileName=$(MyProductFileName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas);MyFullVersion=$(MyFullVersion);MyFspFsctlDeviceClassGuid=$(MyFspFsctlDeviceClassGuid);MyFspFsvrtDeviceClassGuid=$(MyFspFsvrtDeviceClassGuid);MyFsctlRegisterPath=$(MyFsctlRegisterPath);MyNpRegisterPath=$(MyNpRegisterPath);MyEventLogRegisterPath=$(MyEventLogRegisterPath)</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>MyProductName=$(MyProductName);MyProductFileName=$(MyProductFileName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas);MyFullVersion=$(MyFullVersion);MyFspFsctlDeviceClassGuid=$(MyFspFsctlDeviceClassGuid);MyFspFsvrtDeviceClassGuid=$(MyFspFsvrtDeviceClassGuid)</PreprocessorDefinitions>
<PreprocessorDefinitions>MyProductName=$(MyProductName);MyProductFileName=$(MyProductFileName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas);MyFullVersion=$(MyFullVersion);MyFspFsctlDeviceClassGuid=$(MyFspFsctlDeviceClassGuid);MyFspFsvrtDeviceClassGuid=$(MyFspFsvrtDeviceClassGuid);MyFsctlRegisterPath=$(MyFsctlRegisterPath);MyNpRegisterPath=$(MyNpRegisterPath);MyEventLogRegisterPath=$(MyEventLogRegisterPath)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(IsKernelModeToolset)'=='true'">

View File

@ -18,12 +18,12 @@
<MyCompanyName>Navimatics LLC</MyCompanyName>
<MyCopyright>2015-$([System.DateTime]::Now.ToString(`yyyy`)) Bill Zissimopoulos</MyCopyright>
<MyCanonicalVersion>1.11</MyCanonicalVersion>
<MyCanonicalVersion>2.1</MyCanonicalVersion>
<MyProductVersion>2022+ARM64 Beta3</MyProductVersion>
<MyProductVersion>2024 Beta2</MyProductVersion>
<MyProductStage>Beta</MyProductStage>
<MyCrossCert>DigiCert High Assurance EV Root CA.crt</MyCrossCert>
<MyCrossCert>DigiCertGlobalG3CodeSigningECCSHA3842021CA1.cer</MyCrossCert>
<MyCertIssuer>DigiCert</MyCertIssuer>
<MyVersion>$(MyCanonicalVersion).$(MyBuildNumber)</MyVersion>
@ -40,5 +40,37 @@
<!-- When rebranding WinFsp you MUST change the following GUIDs - use VS "Create GUID" tool -->
<MyFspFsctlDeviceClassGuid>{ 0x6f9d25fa, 0x6dee, 0x4a9d, { 0x80, 0xf5, 0xe9, 0x8e, 0x14, 0xf3, 0x5e, 0x54 } }</MyFspFsctlDeviceClassGuid>
<MyFspFsvrtDeviceClassGuid>{ 0xb48171c3, 0xdd50, 0x4852, { 0x83, 0xa3, 0x34, 0x4c, 0x50, 0xd9, 0x3b, 0x17 } }</MyFspFsvrtDeviceClassGuid>
<!--
Configure paths used for registration via DllRegisterServer:
- MyFsctlRegisterPath: File System Driver registration path
- MyNpRegisterPath: Network Provider registration path
- MyEventLogRegisterPath: Event Log registration path
These paths are assumed to be relative to the location of the WinFsp DLL during
registration: during DLLRegisterServer the DLL uses PathCombineW to combine its own
location with these paths to produce the final locations to be used for registration.
For example, if the DLL location is `C:\Program Files (x86)\WinFsp\bin\winfsp-x64.dll`:
- Combining with the path "." will produce the original DLL location:
`C:\Program Files (x86)\WinFsp\bin\winfsp-x64.dll`
- Combining with the path "..\\NetworkProvider.dll" will produce:
`C:\Program Files (x86)\WinFsp\bin\NetworkProvider.dll`
- For Network Provider registrations only it is allowed to use environment variables
in the path. For example combining the above DLL location with the path
"..\\NetworkProvider-\x25PROCESSOR_ARCHITECTURE\x25.dll" will produce:
`C:\Program Files (x86)\WinFsp\bin\NetworkProvider-%PROCESSOR_ARCHITECTURE%.dll`
(Note that the \x25 escape sequence must be used otherwise the VS build system will
try to interpret the string %PROCESSOR_ARCHITECTURE% as an environment variable during
the build.)
-->
<MyFsctlRegisterPath>"."</MyFsctlRegisterPath>
<MyNpRegisterPath>"."</MyNpRegisterPath>
<MyEventLogRegisterPath>"."</MyEventLogRegisterPath>
</PropertyGroup>
</Project>

View File

@ -1,25 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project>
<PropertyGroup>
<BaseIntermediateOutputPath>$(SolutionDir)build\$(MSBuildProjectName).build\</BaseIntermediateOutputPath>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.common.props))/build.common.props" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{94580219-CC8D-4FE5-A3BE-437B0B3481E1}</ProjectGuid>
<OutputType>Library</OutputType>
<ProjectName>winfsp.net</ProjectName>
<RootNamespace>Fsp</RootNamespace>
<AssemblyName>$(MyProductFileName)-msil</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworks>netstandard2.0;net35</TargetFrameworks>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<BaseIntermediateOutputPath>$(SolutionDir)build\$(ProjectName).build\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
@ -32,7 +36,6 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<BaseIntermediateOutputPath>$(SolutionDir)build\$(ProjectName).build\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
@ -47,9 +50,6 @@
<PropertyGroup>
<AssemblyOriginatorKeyFile>winfsp.net.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\src\dotnet\FileSystemBase+Const.cs">
<Link>FileSystemBase+Const.cs</Link>
@ -70,29 +70,28 @@
<ItemGroup>
<None Include="winfsp.net.snk" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="AfterBuild">
</Target>
-->
<Target Name="BeforeBuild">
<ItemGroup>
<AssemblyInfo Include="using System.Reflection%3b" />
<AssemblyInfo Include="[assembly: AssemblyProduct(&quot;$(MyProductName)&quot;)]" />
<AssemblyInfo Include="[assembly: AssemblyTitle(&quot;$(MyDescription)&quot;)]" />
<AssemblyInfo Include="[assembly: AssemblyCompany(&quot;$(MyCompanyName)&quot;)]" />
<AssemblyInfo Include="[assembly: AssemblyCopyright(&quot;$(MyCopyright)&quot;)]" />
<AssemblyInfo Include="[assembly: AssemblyVersion(&quot;$(MyAssemblyVersion)&quot;)]" />
<AssemblyInfo Include="[assembly: AssemblyFileVersion(&quot;$(MyVersion)&quot;)]" />
</ItemGroup>
<MakeDir Directories="$(IntermediateOutputPath)" />
<WriteLinesToFile File="$(IntermediateOutputPath)AssemblyInfo.cs" Lines="@(AssemblyInfo)" Overwrite="true" />
<ItemGroup>
<Compile Include="$(IntermediateOutputPath)AssemblyInfo.cs" />
<FileWrites Include="$(IntermediateOutputPath)AssemblyInfo.cs" />
</ItemGroup>
</Target>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Win32.Registry">
<Version>5.0.0</Version>
</PackageReference>
<PackageReference Include="System.IO.FileSystem.AccessControl">
<Version>5.0.0</Version>
</PackageReference>
</ItemGroup>
<PropertyGroup>
<AssemblyName>$(MyProductFileName)-msil</AssemblyName>
<AssemblyTitle>$(MyDescription)</AssemblyTitle>
<Product>$(MyProductName)</Product>
<Copyright>$(MyCopyright)</Copyright>
<AssemblyVersion>$(MyAssemblyVersion)</AssemblyVersion>
<FileVersion>$(MyVersion)</FileVersion>
<!-- NuGet metadata -->
<PackageId>$(MyProductFileName).net</PackageId>
<Version>$(MyVersion)</Version>
<Description>$(MyDescription)</Description>
<Authors>$(MyCopyright)</Authors>
<Company>$(MyCompanyName)</Company>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>exit /b 0
@ -110,4 +109,5 @@ for /f "delims=" %25%25l in ($(ProjectDir)winfsp.net.policy.config) do (
"$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.0A\Bin\al.exe" /product:"$(MyProductName)" /title:"$(MyDescription)" /company:"$(MyCompanyName)" /copyright:"$(MyCopyright)" /version:"$(MyAssemblyPolicyVersion)" /fileversion:"$(MyVersion)" /link:$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config /out:$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).dll /keyfile:$(ProjectDir)$(ProjectName).snk
</PostBuildEvent>
</PropertyGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project>

View File

@ -1,7 +1,7 @@
/**
* @file CustomActions.cpp
*
* @copyright 2015-2022 Bill Zissimopoulos
* @copyright 2015-2024 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
@ -21,10 +21,55 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <shellapi.h>
#include <msiquery.h>
#include <wcautil.h>
#include <strutil.h>
static HINSTANCE DllInstance;
UINT __stdcall InstanceID(MSIHANDLE MsiHandle)
{
#if 0
WCHAR MessageBuf[64];
wsprintfW(MessageBuf, L"PID=%ld", GetCurrentProcessId());
MessageBoxW(0, MessageBuf, L"" __FUNCTION__ " Break", MB_OK);
#endif
HRESULT hr = S_OK;
UINT err = ERROR_SUCCESS;
SYSTEMTIME SystemTime;
WCHAR Result[32+1];
hr = WcaInitialize(MsiHandle, __FUNCTION__);
ExitOnFailure(hr, "Failed to initialize");
WcaLog(LOGMSG_STANDARD, "Initialized");
GetSystemTime(&SystemTime);
wsprintfW(Result, L"%04u%02u%02uT%02u%02u%02uZ",
SystemTime.wYear,
SystemTime.wMonth,
SystemTime.wDay,
SystemTime.wHour,
SystemTime.wMinute,
SystemTime.wSecond);
/*
* Sleep 1 second to ensure timestamp uniqueness.
*
* Note that this assumes that time is monotonic and users do not change time.
* Disable for now as it is assumed that the installation takes more than 1 second to complete.
*/
//Sleep(1000);
WcaSetProperty(L"" __FUNCTION__, Result);
LExit:
err = SUCCEEDED(hr) ? ERROR_SUCCESS : ERROR_INSTALL_FAILURE;
return WcaFinalize(err);
}
UINT __stdcall ServiceRunning(MSIHANDLE MsiHandle)
{
#if 0
@ -44,7 +89,7 @@ UINT __stdcall ServiceRunning(MSIHANDLE MsiHandle)
hr = WcaInitialize(MsiHandle, __FUNCTION__);
ExitOnFailure(hr, "Failed to initialize");
WcaGetProperty(L"" __FUNCTION__, &ServiceName);
hr = WcaGetProperty(L"" __FUNCTION__, &ServiceName);
ExitOnFailure(hr, "Failed to get ServiceName");
WcaLog(LOGMSG_STANDARD, "Initialized: \"%S\"", ServiceName);
@ -70,12 +115,390 @@ LExit:
return WcaFinalize(err);
}
UINT __stdcall DeferredAction(MSIHANDLE MsiHandle)
{
#if 0
WCHAR MessageBuf[64];
wsprintfW(MessageBuf, L"PID=%ld", GetCurrentProcessId());
MessageBoxW(0, MessageBuf, L"" __FUNCTION__ " Break", MB_OK);
#endif
HRESULT hr = S_OK;
UINT err = ERROR_SUCCESS;
PWSTR CommandLine = 0;
PWSTR *Argv;
int Argc;
CHAR ProcName[64];
FARPROC Proc;
hr = WcaInitialize(MsiHandle, __FUNCTION__);
ExitOnFailure(hr, "Failed to initialize");
hr = WcaGetProperty(L"CustomActionData", &CommandLine);
ExitOnFailure(hr, "Failed to get CommandLine");
WcaLog(LOGMSG_STANDARD, "Initialized: \"%S\"", CommandLine);
Argv = CommandLineToArgvW(CommandLine, &Argc);
ExitOnNullWithLastError(Argv, hr, "Failed to CommandLineToArgvW");
if (0 < Argc)
{
if (0 == WideCharToMultiByte(CP_UTF8, 0, Argv[0], -1, ProcName, sizeof ProcName, 0, 0))
ExitWithLastError(hr, "Failed to WideCharToMultiByte");
Proc = GetProcAddress(DllInstance, ProcName);
ExitOnNullWithLastError(Proc, hr, "Failed to GetProcAddress");
err = ((HRESULT (*)(int, PWSTR *))Proc)(Argc, Argv);
ExitOnWin32Error(err, hr, "Failed to %s", ProcName);
}
else
{
hr = E_INVALIDARG;
ExitOnFailure(hr, "Failed to get arguments");
}
LExit:
LocalFree(Argv);
ReleaseStr(CommandLine);
err = SUCCEEDED(hr) ? ERROR_SUCCESS : ERROR_INSTALL_FAILURE;
return WcaFinalize(err);
}
static DWORD MakeSymlink(PWSTR Symlink, PWSTR Target);
static DWORD MakeJunction(PWSTR Junction, PWSTR Target);
static DWORD CreateJunction(PWSTR Junction, PWSTR Target);
static DWORD RemoveFile(PWSTR FileName);
DWORD InstallSymlinks(int Argc, PWSTR *Argv)
{
/* usage: InstallSymlinks/InstallJunctions SourceDir TargetDir Name... */
DWORD Result;
BOOL Junctions;
PWSTR SourceDir, TargetDir;
WCHAR SourcePath[MAX_PATH], TargetPath[MAX_PATH];
int SourceDirLen, TargetDirLen, Len;
if (4 > Argc)
{
Result = ERROR_INVALID_PARAMETER;
goto exit;
}
Junctions = 0 == lstrcmpW(L"InstallJunctions", Argv[0]);
SourceDir = Argv[1];
TargetDir = Argv[2];
SourceDirLen = lstrlenW(SourceDir);
TargetDirLen = lstrlenW(TargetDir);
for (int Argi = 3; Argc > Argi; Argi++)
{
Len = lstrlenW(Argv[Argi]);
if (MAX_PATH < SourceDirLen + Len + 1 || MAX_PATH < TargetDirLen + Len + 1)
{
Result = ERROR_FILENAME_EXCED_RANGE;
goto exit;
}
memcpy(SourcePath, SourceDir, SourceDirLen * sizeof(WCHAR));
memcpy(SourcePath + SourceDirLen, Argv[Argi], Len * sizeof(WCHAR));
SourcePath[SourceDirLen + Len] = L'\0';
memcpy(TargetPath, TargetDir, TargetDirLen * sizeof(WCHAR));
memcpy(TargetPath + TargetDirLen, Argv[Argi], Len * sizeof(WCHAR));
TargetPath[TargetDirLen + Len] = L'\0';
if (!Junctions)
Result = MakeSymlink(SourcePath, TargetPath);
else
Result = MakeJunction(SourcePath, TargetPath);
#if 0
WCHAR MessageBuf[1024];
wsprintfW(MessageBuf, L"MakeSymlink(\"%s\", \"%s\") = %lu", SourcePath, TargetPath, Result);
MessageBoxW(0, MessageBuf, L"TRACE", MB_OK);
#endif
if (ERROR_SUCCESS != Result)
goto exit;
}
Result = ERROR_SUCCESS;
exit:
return Result;
}
DWORD InstallJunctions(int Argc, PWSTR *Argv)
{
return InstallSymlinks(Argc, Argv);
}
DWORD RemoveFiles(int Argc, PWSTR *Argv)
{
/* usage: RemoveFiles Dir Name... */
DWORD Result;
PWSTR Dir;
WCHAR Path[MAX_PATH];
int DirLen, Len;
if (3 > Argc)
{
Result = ERROR_INVALID_PARAMETER;
goto exit;
}
Dir = Argv[1];
DirLen = lstrlenW(Dir);
for (int Argi = 2; Argc > Argi; Argi++)
{
Len = lstrlenW(Argv[Argi]);
if (MAX_PATH < DirLen + Len + 1)
{
Result = ERROR_FILENAME_EXCED_RANGE;
goto exit;
}
memcpy(Path, Dir, DirLen * sizeof(WCHAR));
memcpy(Path + DirLen, Argv[Argi], Len * sizeof(WCHAR));
Path[DirLen + Len] = L'\0';
Result = RemoveFile(Path);
#if 0
WCHAR MessageBuf[1024];
wsprintfW(MessageBuf, L"RemoveFile(\"%s\") = %lu", Path, Result);
MessageBoxW(0, MessageBuf, L"TRACE", MB_OK);
#endif
if (ERROR_SUCCESS != Result)
goto exit;
}
Result = ERROR_SUCCESS;
exit:
return Result;
}
static DWORD MakeSymlink(PWSTR Symlink, PWSTR Target)
{
DWORD Result;
DWORD FileAttributes, Flags;
RemoveFile(Symlink);
FileAttributes = GetFileAttributesW(Target);
if (INVALID_FILE_ATTRIBUTES == FileAttributes)
{
Result = GetLastError();
goto exit;
}
Flags = 0 != (FileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? SYMBOLIC_LINK_FLAG_DIRECTORY : 0;
if (!CreateSymbolicLinkW(Symlink, Target, Flags))
{
Result = GetLastError();
RemoveFile(Symlink);
goto exit;
}
Result = ERROR_SUCCESS;
exit:
return Result;
}
static DWORD MakeJunction(PWSTR Junction, PWSTR Target)
{
DWORD Result;
DWORD FileAttributes;
RemoveFile(Junction);
FileAttributes = GetFileAttributesW(Target);
if (INVALID_FILE_ATTRIBUTES == FileAttributes)
{
Result = GetLastError();
goto exit;
}
if (0 == (FileAttributes & FILE_ATTRIBUTE_DIRECTORY))
{
Result = ERROR_DIRECTORY;
goto exit;
}
Result = CreateJunction(Junction, Target);
if (ERROR_SUCCESS != Result)
{
RemoveFile(Junction);
goto exit;
}
Result = ERROR_SUCCESS;
exit:
return Result;
}
static DWORD CreateJunction(PWSTR Junction, PWSTR Target)
{
/*
* The REPARSE_DATA_BUFFER definitions appear to be missing from the user mode headers.
*/
typedef struct _REPARSE_DATA_BUFFER
{
ULONG ReparseTag;
USHORT ReparseDataLength;
USHORT Reserved;
union
{
struct
{
USHORT SubstituteNameOffset;
USHORT SubstituteNameLength;
USHORT PrintNameOffset;
USHORT PrintNameLength;
ULONG Flags;
WCHAR PathBuffer[1];
} SymbolicLinkReparseBuffer;
struct
{
USHORT SubstituteNameOffset;
USHORT SubstituteNameLength;
USHORT PrintNameOffset;
USHORT PrintNameLength;
WCHAR PathBuffer[1];
} MountPointReparseBuffer;
struct
{
UCHAR DataBuffer[1];
} GenericReparseBuffer;
} DUMMYUNIONNAME;
} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
const LONG REPARSE_DATA_BUFFER_HEADER_SIZE =
FIELD_OFFSET(REPARSE_DATA_BUFFER, GenericReparseBuffer);
const DWORD FSCTL_SET_REPARSE_POINT = 0x000900a4;
DWORD Result;
HANDLE Handle = INVALID_HANDLE_VALUE;
USHORT TargetLength, ReparseDataLength;
PREPARSE_DATA_BUFFER ReparseData = 0;
PWSTR PathBuffer;
DWORD Bytes;
if (!(
((L'A' <= Target[0] && Target[0] <= L'Z') || (L'a' <= Target[0] && Target[0] <= L'z')) &&
L':' == Target[1]
))
{
Result = ERROR_INVALID_NAME;
goto exit;
}
Handle = CreateFileW(Junction,
FILE_WRITE_ATTRIBUTES,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
0,
CREATE_NEW,
FILE_ATTRIBUTE_DIRECTORY |
FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_POSIX_SEMANTICS,
0);
if (INVALID_HANDLE_VALUE == Handle)
{
Result = GetLastError();
goto exit;
}
TargetLength = (USHORT)lstrlenW(Target) * sizeof(WCHAR);
ReparseDataLength = (USHORT)(
FIELD_OFFSET(REPARSE_DATA_BUFFER, MountPointReparseBuffer.PathBuffer) -
FIELD_OFFSET(REPARSE_DATA_BUFFER, MountPointReparseBuffer)) +
4 * sizeof(WCHAR) + 2 * (TargetLength + sizeof(WCHAR));
ReparseData = (PREPARSE_DATA_BUFFER)
HeapAlloc(GetProcessHeap(), 0, REPARSE_DATA_BUFFER_HEADER_SIZE + ReparseDataLength);
if (0 == ReparseData)
{
Result = ERROR_NO_SYSTEM_RESOURCES;
goto exit;
}
ReparseData->ReparseTag = IO_REPARSE_TAG_MOUNT_POINT;
ReparseData->ReparseDataLength = ReparseDataLength;
ReparseData->Reserved = 0;
ReparseData->MountPointReparseBuffer.SubstituteNameOffset = 0;
ReparseData->MountPointReparseBuffer.SubstituteNameLength =
4 * sizeof(WCHAR) + TargetLength;
ReparseData->MountPointReparseBuffer.PrintNameOffset =
ReparseData->MountPointReparseBuffer.SubstituteNameLength + sizeof(WCHAR);
ReparseData->MountPointReparseBuffer.PrintNameLength =
TargetLength;
PathBuffer = ReparseData->MountPointReparseBuffer.PathBuffer;
PathBuffer[0] = L'\\';
PathBuffer[1] = L'?';
PathBuffer[2] = L'?';
PathBuffer[3] = L'\\';
memcpy(PathBuffer + 4, Target, TargetLength);
PathBuffer[4 + TargetLength / sizeof(WCHAR)] = L'\0';
PathBuffer = ReparseData->MountPointReparseBuffer.PathBuffer +
(ReparseData->MountPointReparseBuffer.PrintNameOffset) / sizeof(WCHAR);
memcpy(PathBuffer, Target, TargetLength);
PathBuffer[TargetLength / sizeof(WCHAR)] = L'\0';
if (!DeviceIoControl(Handle, FSCTL_SET_REPARSE_POINT,
ReparseData, REPARSE_DATA_BUFFER_HEADER_SIZE + ReparseData->ReparseDataLength,
0, 0,
&Bytes, 0))
{
Result = GetLastError();
goto exit;
}
Result = ERROR_SUCCESS;
exit:
if (INVALID_HANDLE_VALUE != Handle)
CloseHandle(Handle);
if (0 != ReparseData)
HeapFree(GetProcessHeap(), 0, ReparseData);
return Result;
}
static DWORD RemoveFile(PWSTR FileName)
{
DWORD Result;
if (!RemoveDirectoryW(FileName))
{
Result = GetLastError();
if (ERROR_DIRECTORY != Result)
goto exit;
if (!DeleteFileW(FileName))
{
Result = GetLastError();
goto exit;
}
}
Result = ERROR_SUCCESS;
exit:
return Result;
}
extern "C"
BOOL WINAPI DllMain(HINSTANCE Instance, DWORD Reason, PVOID Reserved)
{
switch(Reason)
{
case DLL_PROCESS_ATTACH:
DllInstance = Instance;
WcaGlobalInitialize(Instance);
break;
case DLL_PROCESS_DETACH:

View File

@ -1,2 +1,7 @@
EXPORTS
InstanceID
ServiceRunning
DeferredAction
InstallSymlinks
InstallJunctions
RemoveFiles

View File

@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- The UpgradeCode of the old WinFsp installer that did not support upgrades. -->
<?define OldVersionUpgradeCode="82F812D9-4083-4EF1-8BC8-0F1EDA05B46B"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:dep="http://schemas.microsoft.com/wix/DependencyExtension">
<Product
@ -7,7 +11,7 @@
Manufacturer="$(var.MyCompanyName)"
Version="$(var.MyVersion)"
Language="1033"
UpgradeCode="82F812D9-4083-4EF1-8BC8-0F1EDA05B46B">
UpgradeCode="5466A3D8-3AA1-4240-B6A0-3A051940A3EC">
<Package
Description="$(var.MyProductName) - $(var.MyDescription)"
@ -15,13 +19,26 @@
Compressed="yes"
InstallScope="perMachine" />
<MajorUpgrade
Disallow="yes"
Disallow="no"
AllowDowngrades="no"
AllowSameVersionUpgrades="no"
DisallowUpgradeErrorMessage="An older version of $(var.MyProductName) is already installed. You must uninstall it before you can install this version."
AllowSameVersionUpgrades="yes"
DowngradeErrorMessage="A newer version of $(var.MyProductName) is already installed." />
<Media Id="1" Cabinet="$(var.MyProductName).cab" EmbedCab="yes" />
<!-- Determine if we are on Win7 or above. -->
<Condition Message="$(var.MyProductName) requires Windows version 7 or higher in order to be installed.">
<![CDATA[Installed OR (VersionNT >= 601)]]>
</Condition>
<!-- Determine if the old WinFsp installer that did not support upgrades is installed. -->
<Property Id="OLDVERSIONINSTALLED">
<ProductSearch UpgradeCode="$(var.OldVersionUpgradeCode)" Minimum="0.0.0.0" />
</Property>
<Condition Message="An older version of $(var.MyProductName) that cannot be upgraded is already installed. You must uninstall it before you can install this version.">
NOT OLDVERSIONINSTALLED
</Condition>
<!-- Determine OS architecture. -->
<Property Id="OSARCH" Secure="yes" Value="AMD64">
<RegistrySearch
Id="R.OSARCH"
@ -31,10 +48,10 @@
Type="raw" />
</Property>
<Property Id="P.LauncherName">$(var.MyProductName).Launcher</Property>
<Property Id="P.LauncherRegistryKey">Software\$(var.MyProductName)\Services</Property>
<!-- Setup INSTALLDIR and SXSDIR from the registry or defaults. -->
<Property Id="P.RegistryKey">Software\$(var.MyProductName)</Property>
<Property Id="INSTALLDIR">
<Property Id="P.LauncherRegistryKey">Software\$(var.MyProductName)\Services</Property>
<Property Id="INSTALLDIR" Secure="yes">
<RegistrySearch
Id="R.INSTALLDIR"
Root="HKLM"
@ -42,22 +59,40 @@
Name="InstallDir"
Type="raw" />
</Property>
<Property Id="SXSDIR" Secure="yes">
<RegistrySearch
Id="R.SXSDIR"
Root="HKLM"
Key="[P.RegistryKey]"
Name="SxsDir"
Type="raw" />
</Property>
<SetProperty Id="INSTALLDIR" Value="[ProgramFilesFolder]$(var.MyProductName)\" After="CostInitialize">
NOT INSTALLDIR
</SetProperty>
<SetProperty Id="SXSDIR" Value="[INSTALLDIR]SxS\sxs.[InstanceID]\" After="SetINSTALLDIR">
((NOT SXSDIR) OR WIX_UPGRADE_DETECTED) AND InstanceID
</SetProperty>
<!-- Setup directory structure. -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="$(var.MyProductName)">
<Directory Id="BINDIR" Name="bin" />
<Directory Id="INSTALLDIR" Name="DYNAMIC">
<Directory Id="SXSBASEDIR" Name="SxS">
<Directory Id="SXSDIR" Name="DYNAMIC">
<Directory Id="BINDIR" Name="bin" />
</Directory>
</Directory>
<Directory Id="INCDIR" Name="inc" />
<Directory Id="LIBDIR" Name="lib" />
<Directory Id="OPTDIR" Name="opt" />
<Directory Id="SMPDIR" Name="samples" />
<Directory Id="SYMDIR" Name="sym" />
</Directory>
</Directory>
</Directory>
<DirectoryRef Id="INSTALLDIR">
<Component Id="C.INSTALLDIR" Guid="{F876F26E-5016-4AC6-93B3-653C0312A6CE}">
<Component Id="C.INSTALLDIR" Guid="C086521F-8552-43D1-AAE2-CDD579F66FDD">
<RegistryValue
Root="HKLM"
Key="[P.RegistryKey]"
@ -70,6 +105,17 @@
<File Name="License.txt" Source="..\..\..\License.txt" KeyPath="yes" />
</Component>
</DirectoryRef>
<DirectoryRef Id="SXSDIR">
<Component Id="C.SXSDIR" Guid="0F09CD39-1137-4DB8-A783-27B1F51353D1">
<RegistryValue
Root="HKLM"
Key="[P.RegistryKey]"
Name="SxsDir"
Type="string"
Value="[SXSDIR]"
KeyPath="yes" />
</Component>
</DirectoryRef>
<DirectoryRef Id="BINDIR" FileSource="..\build\$(var.Configuration)">
<Component Id="C.$(var.MyProductFileName)_a64.sys">
<File Name="$(var.MyProductFileName)-a64.sys" KeyPath="yes" />
@ -82,56 +128,56 @@
</Component>
<!-- On WinArm64 register $(var.MyProductFileName)-a64.dll -->
<Component Id="C.$(var.MyProductFileName)_a64.dll.a64" Guid="86FB483B-0910-458E-93B4-3CCB66D27AF0">
<Component Id="C.$(var.MyProductFileName)_a64.dll.a64" Guid="2A7E68EB-D05F-4DD8-ABF2-EB8CB09697F0">
<File Id="FILE.$(var.MyProductFileName)_a64.dll.a64" Name="$(var.MyProductFileName)-a64.dll" KeyPath="yes" SelfRegCost="1" />
<Condition><![CDATA[OSARCH = "ARM64"]]></Condition>
</Component>
<Component Id="C.$(var.MyProductFileName)_x64.dll.a64" Guid="941FAE3E-A650-4BAC-97F5-F8C6E98DB5D2">
<Component Id="C.$(var.MyProductFileName)_x64.dll.a64" Guid="EA5ED4FB-FC72-4D27-9802-88D84DAE61B4">
<File Id="FILE.$(var.MyProductFileName)_x64.dll.a64" Name="$(var.MyProductFileName)-x64.dll" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "ARM64"]]></Condition>
</Component>
<Component Id="C.$(var.MyProductFileName)_x86.dll.a64" Guid="C312214D-F9A3-40EB-B2C3-4FAF5BF3F938">
<Component Id="C.$(var.MyProductFileName)_x86.dll.a64" Guid="2A9BD712-2F96-4794-8A58-929E39F3F3CC">
<File Id="FILE.$(var.MyProductFileName)_x86.dll.a64" Name="$(var.MyProductFileName)-x86.dll" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "ARM64"]]></Condition>
</Component>
<!-- On Win64 register $(var.MyProductFileName)-x64.dll -->
<Component Id="C.$(var.MyProductFileName)_a64.dll.x64" Guid="4ABB46C2-A8E3-49E8-B051-05DBF2B351AE">
<Component Id="C.$(var.MyProductFileName)_a64.dll.x64" Guid="026DA201-43E1-450C-9687-8A684FBF2D2D">
<File Id="FILE.$(var.MyProductFileName)_a64.dll.x64" Name="$(var.MyProductFileName)-a64.dll" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "AMD64"]]></Condition>
</Component>
<Component Id="C.$(var.MyProductFileName)_x64.dll.x64" Guid="F0A67746-1A9C-4976-8EC0-882E9407FA6D">
<Component Id="C.$(var.MyProductFileName)_x64.dll.x64" Guid="89201BAF-5812-4ECE-91CD-12EDFFF11CB1">
<File Id="FILE.$(var.MyProductFileName)_x64.dll.x64" Name="$(var.MyProductFileName)-x64.dll" KeyPath="yes" SelfRegCost="1" />
<Condition><![CDATA[OSARCH = "AMD64"]]></Condition>
</Component>
<Component Id="C.$(var.MyProductFileName)_x86.dll.x64" Guid="950492FB-12F7-4E27-9124-8325A2BC9927">
<Component Id="C.$(var.MyProductFileName)_x86.dll.x64" Guid="E6EE48A4-6BC7-4135-9A2F-FBBA30DE80BE">
<File Id="FILE.$(var.MyProductFileName)_x86.dll.x64" Name="$(var.MyProductFileName)-x86.dll" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "AMD64"]]></Condition>
</Component>
<!-- On Win32 register $(var.MyProductFileName)-x86.dll -->
<Component Id="C.$(var.MyProductFileName)_a64.dll.x86" Guid="071C0EB2-A0EB-46A1-B5B0-124F60ECD6B3">
<Component Id="C.$(var.MyProductFileName)_a64.dll.x86" Guid="2B264958-DECC-4B32-9BB2-DE32D6B6BE77">
<File Id="FILE.$(var.MyProductFileName)_a64.dll.x86" Name="$(var.MyProductFileName)-a64.dll" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "x86"]]></Condition>
</Component>
<Component Id="C.$(var.MyProductFileName)_x64.dll.x86" Guid="4D6E7A8E-0CA6-49BE-B312-1EDADE725756">
<Component Id="C.$(var.MyProductFileName)_x64.dll.x86" Guid="29FB908F-1D36-4789-9778-4CE2E9C19CEA">
<File Id="FILE.$(var.MyProductFileName)_x64.dll.x86" Name="$(var.MyProductFileName)-x64.dll" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "x86"]]></Condition>
</Component>
<Component Id="C.$(var.MyProductFileName)_x86.dll.x86" Guid="F0DEF7A6-AF55-419F-A58A-DF4018C6FA73">
<Component Id="C.$(var.MyProductFileName)_x86.dll.x86" Guid="80E87D91-69A8-4942-ABC1-36652B1CA700">
<File Id="FILE.$(var.MyProductFileName)_x86.dll.x86" Name="$(var.MyProductFileName)-x86.dll" KeyPath="yes" SelfRegCost="1" />
<Condition><![CDATA[OSARCH = "x86"]]></Condition>
</Component>
<!-- install assembly -->
<Component Id="C.$(var.MyProductFileName)_msil.dll" Guid="0D8BA6AE-9F87-402B-AE1A-95B0AE3BE179">
<Component Id="C.$(var.MyProductFileName)_msil.dll" Guid="1772CDE5-4B2F-48CF-B2DA-CA43818053A8">
<File Id="FILE.$(var.MyProductFileName)_msil.dll" Name="$(var.MyProductFileName)-msil.dll" KeyPath="yes" />
</Component>
<Component Id="C.$(var.MyProductFileName)_msil.xml" Guid="1657F707-C112-454C-91AE-0FDEBBF454AB">
<Component Id="C.$(var.MyProductFileName)_msil.xml" Guid="C76745D2-51FA-4028-B827-3F2F3F763751">
<File Id="FILE.$(var.MyProductFileName)_msil.xml" Name="$(var.MyProductFileName)-msil.xml" KeyPath="yes" />
</Component>
<!--
<Component Id="C.$(var.MyProductFileName)_msil.dll.GAC" Guid="6469467D-8C90-4889-8138-4028F9DA6E85">
<Component Id="C.$(var.MyProductFileName)_msil.dll.GAC" Guid="D86F8764-2FCC-43DA-A174-23E0FD6D45B7">
<File Id="FILE.$(var.MyProductFileName)_msil.dll.GAC" Name="$(var.MyProductFileName)-msil.dll" KeyPath="yes" Assembly=".net" />
</Component>
<Component Id="C.policy.$(var.MyProductFileName)_msil.dll.GAC">
@ -141,103 +187,103 @@
-->
<!-- On WinArm64 ServiceInstall launcher-a64.exe -->
<Component Id="C.launcher_a64.exe.a64" Guid="E37E6D75-C44B-4189-8E86-CE5A3E0B0626">
<Component Id="C.launcher_a64.exe.a64" Guid="D8B657EA-7B08-48D1-B5F7-76CFB68E1BD5">
<File Id="FILE.launcher_a64.exe.a64" Name="launcher-a64.exe" KeyPath="yes" />
<ServiceInstall
Id="launcher_a64.exe.a64"
Name="[P.LauncherName]"
Name="$(var.MyProductName).Launcher"
Description="$(var.MyDescription)"
Type="ownProcess"
Start="auto"
ErrorControl="ignore" />
<ServiceControl
Id="launcher_a64.exe.a64"
Name="[P.LauncherName]"
Name="$(var.MyProductName).Launcher"
Start="install"
Stop="both"
Remove="uninstall" />
<Condition><![CDATA[OSARCH = "ARM64"]]></Condition>
</Component>
<Component Id="C.launcher_x64.exe.a64" Guid="CF5F3EEE-F739-4F50-9938-13C0D2CD9C7A">
<Component Id="C.launcher_x64.exe.a64" Guid="3EFC0561-6EA2-4E7E-B707-C2EA706CFBA0">
<File Id="FILE.launcher_x64.exe.a64" Name="launcher-x64.exe" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "ARM64"]]></Condition>
</Component>
<Component Id="C.launcher_x86.exe.a64" Guid="D5E9FF96-9E00-46BA-8719-BC49CF35BBE6">
<Component Id="C.launcher_x86.exe.a64" Guid="69F16682-10AE-4FC4-9007-8D80CE0D8388">
<File Id="FILE.launcher_x86.exe.a64" Name="launcher-x86.exe" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "ARM64"]]></Condition>
</Component>
<!-- On Win64 ServiceInstall launcher-x64.exe -->
<Component Id="C.launcher_a64.exe.x64" Guid="10A3F0F9-6555-4071-9C93-EA50E4B3F115">
<Component Id="C.launcher_a64.exe.x64" Guid="29760ACE-69CD-4061-8C0C-8A6E72D23A45">
<File Id="FILE.launcher_a64.exe.x64" Name="launcher-a64.exe" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "AMD64"]]></Condition>
</Component>
<Component Id="C.launcher_x64.exe.x64" Guid="2AB4E729-F7CB-4B4A-BE81-6C0C3B3194FC">
<Component Id="C.launcher_x64.exe.x64" Guid="36ACBA60-1C92-4D2A-B497-CD4FB13A042F">
<File Id="FILE.launcher_x64.exe.x64" Name="launcher-x64.exe" KeyPath="yes" />
<ServiceInstall
Id="launcher_x64.exe.x64"
Name="[P.LauncherName]"
Name="$(var.MyProductName).Launcher"
Description="$(var.MyDescription)"
Type="ownProcess"
Start="auto"
ErrorControl="ignore" />
<ServiceControl
Id="launcher_x64.exe.x64"
Name="[P.LauncherName]"
Name="$(var.MyProductName).Launcher"
Start="install"
Stop="both"
Remove="uninstall" />
<Condition><![CDATA[OSARCH = "AMD64"]]></Condition>
</Component>
<Component Id="C.launcher_x86.exe.x64" Guid="C5B6D411-8A6A-4944-8C4F-7D9FB9A72826">
<Component Id="C.launcher_x86.exe.x64" Guid="98F17F67-AC1D-4E16-A147-B7AE113E3CB3">
<File Id="FILE.launcher_x86.exe.x64" Name="launcher-x86.exe" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "AMD64"]]></Condition>
</Component>
<!-- On Win32 ServiceInstall launcher-x86.exe -->
<Component Id="C.launcher_a64.exe.x86" Guid="5048AEF5-9DE2-406E-A2EA-F237BAD13286">
<Component Id="C.launcher_a64.exe.x86" Guid="9024A9FE-7445-4241-ADA3-82A57C92719A">
<File Id="FILE.launcher_a64.exe.x86" Name="launcher-a64.exe" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "x86"]]></Condition>
</Component>
<Component Id="C.launcher_x64.exe.x86" Guid="88CDBE92-8B67-485A-838F-FA4AD37F306F">
<Component Id="C.launcher_x64.exe.x86" Guid="A85DA9CD-26AA-460E-950D-CA9692B87465">
<File Id="FILE.launcher_x64.exe.x86" Name="launcher-x64.exe" KeyPath="yes" />
<Condition><![CDATA[OSARCH = "x86"]]></Condition>
</Component>
<Component Id="C.launcher_x86.exe.x86" Guid="E995D906-0273-4758-9B26-99A3A8CD143A">
<Component Id="C.launcher_x86.exe.x86" Guid="01FCCF6B-9F4B-4F29-8149-489470FFD449">
<File Id="FILE.launcher_x86.exe.x86" Name="launcher-x86.exe" KeyPath="yes" />
<ServiceInstall
Id="launcher_x86.exe.x86"
Name="[P.LauncherName]"
Name="$(var.MyProductName).Launcher"
Description="$(var.MyDescription)"
Type="ownProcess"
Start="auto"
ErrorControl="ignore" />
<ServiceControl
Id="launcher_x86.exe.x86"
Name="[P.LauncherName]"
Name="$(var.MyProductName).Launcher"
Start="install"
Stop="both"
Remove="uninstall" />
<Condition><![CDATA[OSARCH = "x86"]]></Condition>
</Component>
<Component Id="C.launchctl_a64.exe" Guid="B9B5CF8E-317D-40EE-A208-BC46A2A99BAB">
<Component Id="C.launchctl_a64.exe" Guid="A7D830DD-20D2-48BF-85B6-E306BCCAFD2D">
<File Name="launchctl-a64.exe" KeyPath="yes" />
</Component>
<Component Id="C.launchctl_x64.exe" Guid="2753623B-66F1-4514-B9C7-F879178DFF49">
<Component Id="C.launchctl_x64.exe" Guid="CCC8974A-4CD0-443E-840D-1C92535BBD04">
<File Name="launchctl-x64.exe" KeyPath="yes" />
</Component>
<Component Id="C.launchctl_x86.exe" Guid="EBDEC4FB-07BB-47CA-BFFF-EB854CA2D22D">
<Component Id="C.launchctl_x86.exe" Guid="6E382342-10D4-4274-8FA9-F1B44C40C277">
<File Name="launchctl-x86.exe" KeyPath="yes" />
</Component>
<Component Id="C.fsptool_a64.exe" Guid="F75A8B14-000C-4933-AD83-EC0D1D3AD3CA">
<Component Id="C.fsptool_a64.exe" Guid="8ACEB970-CAD5-491D-8CE8-12675CC0E812">
<File Name="fsptool-a64.exe" KeyPath="yes" />
</Component>
<Component Id="C.fsptool_x64.exe" Guid="013FE508-097D-4433-9C60-717F5446E7F4">
<Component Id="C.fsptool_x64.exe" Guid="35EE49E2-9565-4FA2-A0AC-D51FD94FA380">
<File Name="fsptool-x64.exe" KeyPath="yes" />
</Component>
<Component Id="C.fsptool_x86.exe" Guid="6C16DC2C-E12F-49FB-A665-3AF0475487AD">
<Component Id="C.fsptool_x86.exe" Guid="0E6D5742-D500-4E24-A0FA-E6316DB70D8B">
<File Name="fsptool-x86.exe" KeyPath="yes" />
</Component>
@ -409,7 +455,7 @@
</Component>
<!-- On WinArm64 copy fuse-a64.pc -->
<Component Id="C.fuse_a64.pc" Guid="74E6E9BD-AF16-4635-AE52-84B33E4E196E">
<Component Id="C.fuse_a64.pc" Guid="776C28B5-DA1A-4EB6-96E6-3D22FE1573AC">
<File
Id="FILE.fuse_a64.pc"
Name="fuse.pc"
@ -419,7 +465,7 @@
</Component>
<!-- On Win64 copy fuse-x64.pc -->
<Component Id="C.fuse_x64.pc" Guid="407395D2-D076-411E-B1D0-D97E21E11A3C">
<Component Id="C.fuse_x64.pc" Guid="89D39F6E-2994-4E6F-ACB6-5B544057C051">
<File
Id="FILE.fuse_x64.pc"
Name="fuse.pc"
@ -429,7 +475,7 @@
</Component>
<!-- On Win32 copy fuse-x86.pc -->
<Component Id="C.fuse_x86.pc" Guid="0568EBCB-782E-4C17-9B64-BAFCC43F64ED">
<Component Id="C.fuse_x86.pc" Guid="75637ECD-B3EC-4A19-98B7-9AFAB0722D9A">
<File
Id="FILE.fuse_x86.pc"
Name="fuse.pc"
@ -439,7 +485,7 @@
</Component>
<!-- On WinArm64 copy fuse3-x64.pc -->
<Component Id="C.fuse3_a64.pc" Guid="2B6444DB-25E5-45B4-BC61-157D3B992F2B">
<Component Id="C.fuse3_a64.pc" Guid="5A69B633-11E4-46E4-8D08-BED1BE7BF4F0">
<File
Id="FILE.fuse3_a64.pc"
Name="fuse3.pc"
@ -449,7 +495,7 @@
</Component>
<!-- On Win64 copy fuse3-x64.pc -->
<Component Id="C.fuse3_x64.pc" Guid="FE59E3BA-E5EA-4822-80B1-19A1DE6B62C7">
<Component Id="C.fuse3_x64.pc" Guid="EEAF35B5-5D6C-47D6-BEE3-5E44DD5A294B">
<File
Id="FILE.fuse3_x64.pc"
Name="fuse3.pc"
@ -459,7 +505,7 @@
</Component>
<!-- On Win32 copy fuse3-x86.pc -->
<Component Id="C.fuse3_x86.pc" Guid="176205D0-07EA-4DFC-947F-18E89ABDAFAB">
<Component Id="C.fuse3_x86.pc" Guid="476CF5E5-2B8E-4D75-B1A5-FFA8C3DAECB2">
<File
Id="FILE.fuse3_x86.pc"
Name="fuse3.pc"
@ -737,62 +783,6 @@
</Component>
</Directory>
</DirectoryRef>
<DirectoryRef Id="SYMDIR">
<Component Id="C.$(var.MyProductFileName)_a64.sys.pdb">
<File Name="$(var.MyProductFileName)-a64.sys.pdb" Source="..\build\$(var.Configuration)\$(var.MyProductFileName)-a64.sys.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.$(var.MyProductFileName)_x64.sys.pdb">
<File Name="$(var.MyProductFileName)-x64.sys.pdb" Source="..\build\$(var.Configuration)\$(var.MyProductFileName)-x64.sys.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.$(var.MyProductFileName)_x86.sys.pdb">
<File Name="$(var.MyProductFileName)-x86.sys.pdb" Source="..\build\$(var.Configuration)\$(var.MyProductFileName)-x86.sys.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.$(var.MyProductFileName)_a64.dll.pdb">
<File Name="$(var.MyProductFileName)-a64.dll.pdb" Source="..\build\$(var.Configuration)\$(var.MyProductFileName)-a64.dll.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.$(var.MyProductFileName)_x64.dll.pdb">
<File Name="$(var.MyProductFileName)-x64.dll.pdb" Source="..\build\$(var.Configuration)\$(var.MyProductFileName)-x64.dll.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.$(var.MyProductFileName)_x86.dll.pdb">
<File Name="$(var.MyProductFileName)-x86.dll.pdb" Source="..\build\$(var.Configuration)\$(var.MyProductFileName)-x86.dll.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.launcher_a64.pdb">
<File Name="launcher-a64.pdb" Source="..\build\$(var.Configuration)\launcher-a64.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.launcher_x64.pdb">
<File Name="launcher-x64.pdb" Source="..\build\$(var.Configuration)\launcher-x64.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.launcher_x86.pdb">
<File Name="launcher-x86.pdb" Source="..\build\$(var.Configuration)\launcher-x86.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.launchctl_a64.pdb">
<File Name="launchctl-a64.pdb" Source="..\build\$(var.Configuration)\launchctl-a64.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.launchctl_x64.pdb">
<File Name="launchctl-x64.pdb" Source="..\build\$(var.Configuration)\launchctl-x64.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.launchctl_x86.pdb">
<File Name="launchctl-x86.pdb" Source="..\build\$(var.Configuration)\launchctl-x86.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.fsptool_a64.pdb">
<File Name="fsptool-a64.pdb" Source="..\build\$(var.Configuration)\fsptool-a64.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.fsptool_x64.pdb">
<File Name="fsptool-x64.pdb" Source="..\build\$(var.Configuration)\fsptool-x64.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.fsptool_x86.pdb">
<File Name="fsptool-x86.pdb" Source="..\build\$(var.Configuration)\fsptool-x86.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.memfs_a64.pdb">
<File Name="memfs-a64.pdb" Source="..\build\$(var.Configuration)\memfs-a64.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.memfs_x64.pdb">
<File Name="memfs-x64.pdb" Source="..\build\$(var.Configuration)\memfs-x64.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.memfs_x86.pdb">
<File Name="memfs-x86.pdb" Source="..\build\$(var.Configuration)\memfs-x86.public.pdb" KeyPath="yes" />
</Component>
</DirectoryRef>
<ComponentGroup Id="C.$(var.MyProductName).bin">
<ComponentRef Id="C.$(var.MyProductFileName)_a64.sys" />
@ -927,26 +917,6 @@
<ComponentRef Id="C.notifyfs.vcxproj" />
<ComponentRef Id="C.notifyfs.vcxproj.filters" />
</ComponentGroup>
<ComponentGroup Id="C.$(var.MyProductName).sym">
<ComponentRef Id="C.$(var.MyProductFileName)_a64.sys.pdb" />
<ComponentRef Id="C.$(var.MyProductFileName)_x64.sys.pdb" />
<ComponentRef Id="C.$(var.MyProductFileName)_x86.sys.pdb" />
<ComponentRef Id="C.$(var.MyProductFileName)_a64.dll.pdb" />
<ComponentRef Id="C.$(var.MyProductFileName)_x64.dll.pdb" />
<ComponentRef Id="C.$(var.MyProductFileName)_x86.dll.pdb" />
<ComponentRef Id="C.launcher_a64.pdb" />
<ComponentRef Id="C.launcher_x64.pdb" />
<ComponentRef Id="C.launcher_x86.pdb" />
<ComponentRef Id="C.launchctl_a64.pdb" />
<ComponentRef Id="C.launchctl_x64.pdb" />
<ComponentRef Id="C.launchctl_x86.pdb" />
<ComponentRef Id="C.fsptool_a64.pdb" />
<ComponentRef Id="C.fsptool_x64.pdb" />
<ComponentRef Id="C.fsptool_x86.pdb" />
<ComponentRef Id="C.memfs_a64.pdb" />
<ComponentRef Id="C.memfs_x64.pdb" />
<ComponentRef Id="C.memfs_x86.pdb" />
</ComponentGroup>
<ComponentGroup Id="C.$(var.MyProductName).net">
<ComponentRef Id="C.$(var.MyProductFileName)_msil.dll" />
<ComponentRef Id="C.$(var.MyProductFileName)_msil.xml" />
@ -978,6 +948,7 @@
Absent="disallow">
<ComponentRef Id="C.INSTALLDIR" />
<ComponentRef Id="C.License.txt" />
<ComponentRef Id="C.SXSDIR" />
<Feature
Id="F.User"
Level="1"
@ -1013,7 +984,6 @@
<ComponentGroupRef Id="C.$(var.MyProductName).lib" />
<ComponentGroupRef Id="C.$(var.MyProductName).smp" />
<ComponentGroupRef Id="C.$(var.MyProductName).smp.net" />
<ComponentGroupRef Id="C.$(var.MyProductName).sym" />
</Feature>
<Feature
Id="F.KernelDeveloper"
@ -1056,7 +1026,24 @@
Order="10">NOT Installed</Publish>
</UI>
<!-- Custom Actions -->
<Binary Id="CustomActions" SourceFile="..\build\$(var.Configuration)\CustomActions.dll" />
<!-- InstanceID computes a unique per-installer-run ID -->
<CustomAction
Id="Action.InstanceID"
BinaryKey="CustomActions"
DllEntry="InstanceID"
Execute="firstSequence"
Return="check" />
<InstallExecuteSequence>
<Custom Action="Action.InstanceID" Before="AppSearch" />
</InstallExecuteSequence>
<InstallUISequence>
<Custom Action="Action.InstanceID" Before="AppSearch" />
</InstallUISequence>
<!-- ServiceRunning determines if the old driver (that did not support unload) is running. -->
<CustomAction
Id="Params.ServiceRunning"
Property="ServiceRunning"
@ -1069,16 +1056,109 @@
Return="ignore" />
<CustomAction
Id="Action.ServiceRunning.Error"
Error="The $(var.MyProductName) service appears to be running. If you just uninstalled $(var.MyProductName) please restart your computer. If you are running a development version of $(var.MyProductName) please remove it before proceeding." />
Error="A component from an older version of $(var.MyProductName) that cannot be upgraded appears to be running. If you just uninstalled an older version of $(var.MyProductName) please restart your computer." />
<InstallExecuteSequence>
<Custom Action="Params.ServiceRunning" Before="Action.ServiceRunning" />
<Custom Action="Action.ServiceRunning" Before="LaunchConditions" />
<Custom Action="Action.ServiceRunning" After="LaunchConditions">
<![CDATA[NOT Installed]]>
</Custom>
<Custom Action="Action.ServiceRunning.Error" After="Action.ServiceRunning">
<![CDATA[NOT Installed AND (0 <> ServiceRunning)]]>
</Custom>
<ScheduleReboot After="RemoveFiles">
<![CDATA[(REMOVE ~= "ALL") AND (0 <> ServiceRunning)]]>
</ScheduleReboot>
</InstallExecuteSequence>
<InstallUISequence>
<Custom Action="Params.ServiceRunning" Before="Action.ServiceRunning" />
<Custom Action="Action.ServiceRunning" After="LaunchConditions">
<![CDATA[NOT Installed]]>
</Custom>
<Custom Action="Action.ServiceRunning.Error" After="Action.ServiceRunning">
<![CDATA[NOT Installed AND (0 <> ServiceRunning)]]>
</Custom>
</InstallUISequence>
<!-- InstallSymlinks installs SxS symlinks -->
<SetProperty
Id="Deferred.InstallSymlinks"
Value='InstallJunctions "[INSTALLDIR]\" "[SXSDIR]\" bin'
Before="Deferred.InstallSymlinks"
Sequence="execute" />
<CustomAction
Id="Deferred.InstallSymlinks"
BinaryKey="CustomActions"
DllEntry="DeferredAction"
Execute="deferred"
Impersonate="no"
Return="check" />
<SetProperty
Id="Rollback.InstallSymlinks"
Value='RemoveFiles "[INSTALLDIR]\" bin'
Before="Rollback.InstallSymlinks"
Sequence="execute" />
<CustomAction
Id="Rollback.InstallSymlinks"
BinaryKey="CustomActions"
DllEntry="DeferredAction"
Execute="rollback"
Impersonate="no"
Return="ignore" />
<InstallExecuteSequence>
<!--
deferred: `InstallSymlinks` on install or repair
rollback: `RemoveSymlinks` on install only
-->
<Custom Action="Rollback.InstallSymlinks" After="InstallFiles">
NOT Installed
</Custom>
<Custom Action="Deferred.InstallSymlinks" After="Rollback.InstallSymlinks">
(NOT Installed) OR REINSTALL
</Custom>
</InstallExecuteSequence>
<!-- RemoveSymlinks removes SxS symlinks -->
<SetProperty
Id="Deferred.RemoveSymlinks"
Value='RemoveFiles "[INSTALLDIR]\" bin'
Before="Deferred.RemoveSymlinks"
Sequence="execute" />
<CustomAction
Id="Deferred.RemoveSymlinks"
BinaryKey="CustomActions"
DllEntry="DeferredAction"
Execute="deferred"
Impersonate="no"
Return="ignore" />
<SetProperty
Id="Rollback.RemoveSymlinks"
Value='InstallJunctions "[INSTALLDIR]\" "[SXSDIR]\" bin'
Before="Rollback.RemoveSymlinks"
Sequence="execute" />
<CustomAction
Id="Rollback.RemoveSymlinks"
BinaryKey="CustomActions"
DllEntry="DeferredAction"
Execute="rollback"
Impersonate="no"
Return="check" />
<InstallExecuteSequence>
<!--
deferred: `RemoveSymlinks` on uninstall
rollback: `InstallSymlinks` on uninstall
-->
<Custom Action="Rollback.RemoveSymlinks" Before="RemoveFiles">
REMOVE ~= "ALL"
</Custom>
<Custom Action="Deferred.RemoveSymlinks" After="Rollback.RemoveSymlinks">
REMOVE ~= "ALL"
</Custom>
</InstallExecuteSequence>
<!--
Specify WIXFAILWHENDEFERRED=1 on the msiexec cmdline for rollback testing.
See http://tinyurl.com/yxkaywek
-->
<!--
<Property Id="WIXFAILWHENDEFERRED" Value="0" Secure="yes" />
<CustomActionRef Id="WixFailWhenDeferred" />
-->
</Product>
</Wix>

View File

@ -20,7 +20,7 @@
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>True</Pedantic>
<SuppressPdbOutput>True</SuppressPdbOutput>
<SuppressIces>ICE30</SuppressIces>
<SuppressIces>ICE30;ICE61</SuppressIces>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
@ -29,12 +29,16 @@
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>True</Pedantic>
<SuppressPdbOutput>True</SuppressPdbOutput>
<SuppressIces>ICE30</SuppressIces>
<SuppressIces>ICE30;ICE61</SuppressIces>
</PropertyGroup>
<ItemGroup>
<Compile Include="Product.wxs" />
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUtilExtension">
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
<Name>WixUtilExtension</Name>
</WixExtension>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>

View File

@ -1,27 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project>
<PropertyGroup>
<BaseIntermediateOutputPath>$(SolutionDir)build\$(MSBuildProjectName).build\</BaseIntermediateOutputPath>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.common.props))/build.common.props" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4920E350-D496-4652-AE98-6C4208AEC1D8}</ProjectGuid>
<OutputType>Exe</OutputType>
<ProjectName>memfs-dotnet</ProjectName>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>memfs</RootNamespace>
<AssemblyName>memfs-dotnet-msil</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFramework>net452</TargetFramework>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<BaseIntermediateOutputPath>$(SolutionDir)build\$(ProjectName).build\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
@ -33,32 +36,16 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<BaseIntermediateOutputPath>$(SolutionDir)build\$(ProjectName).build\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<ProjectReference Include="..\dotnet\winfsp.net.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\tst\memfs-dotnet\Program.cs">
<Link>Program.cs</Link>
</Compile>
<Compile Include="..\..\..\tst\memfs-dotnet\Program.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\dotnet\winfsp.net.csproj">
<Project>{94580219-cc8d-4fe5-a3be-437b0b3481e1}</Project>
<Name>winfsp.net</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project>

View File

@ -284,6 +284,7 @@
<ClCompile Include="..\..\..\tst\winfsp-tests\security-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\stream-tests.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\timeout-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\loadun-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\uuid5-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\version-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\volpath-test.c" />

View File

@ -112,6 +112,9 @@
<ClCompile Include="..\..\..\tst\winfsp-tests\notify-test.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\loadun-test.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\ext\tlib\testsuite.h">

View File

@ -73,8 +73,10 @@
<ClCompile Include="..\..\src\dll\ntstatus.c" />
<ClCompile Include="..\..\src\dll\path.c" />
<ClCompile Include="..\..\src\dll\service.c" />
<ClCompile Include="..\..\src\dll\sxs.c" />
<ClCompile Include="..\..\src\dll\util.c" />
<ClCompile Include="..\..\src\dll\wksid.c" />
<ClCompile Include="..\..\src\shared\ku\mountmgr.c" />
<ClCompile Include="..\..\src\shared\ku\posix.c" />
</ItemGroup>
<ItemGroup>
@ -287,7 +289,7 @@ copy /b $(OutDir)fuse3-$(MyProductFileArch).pc + %(FullPath) $(OutDir)fuse3-$(My
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;secur32.lib;version.lib;netapi32.lib;wldap32.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);credui.lib;netapi32.lib;rpcrt4.lib;secur32.lib;shlwapi.lib;version.lib;wldap32.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
@ -314,7 +316,7 @@ copy /b $(OutDir)fuse3-$(MyProductFileArch).pc + %(FullPath) $(OutDir)fuse3-$(My
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;secur32.lib;version.lib;netapi32.lib;wldap32.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);credui.lib;netapi32.lib;rpcrt4.lib;secur32.lib;shlwapi.lib;version.lib;wldap32.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
@ -341,7 +343,7 @@ copy /b $(OutDir)fuse3-$(MyProductFileArch).pc + %(FullPath) $(OutDir)fuse3-$(My
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;secur32.lib;version.lib;netapi32.lib;wldap32.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);credui.lib;netapi32.lib;rpcrt4.lib;secur32.lib;shlwapi.lib;version.lib;wldap32.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
@ -371,7 +373,7 @@ copy /b $(OutDir)fuse3-$(MyProductFileArch).pc + %(FullPath) $(OutDir)fuse3-$(My
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;secur32.lib;version.lib;netapi32.lib;wldap32.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);credui.lib;netapi32.lib;rpcrt4.lib;secur32.lib;shlwapi.lib;version.lib;wldap32.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
<AdditionalOptions>/PDBALTPATH:$(TargetFileName).pdb %(AdditionalOptions)</AdditionalOptions>
</Link>
@ -402,7 +404,7 @@ copy /b $(OutDir)fuse3-$(MyProductFileArch).pc + %(FullPath) $(OutDir)fuse3-$(My
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;secur32.lib;version.lib;netapi32.lib;wldap32.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);credui.lib;netapi32.lib;rpcrt4.lib;secur32.lib;shlwapi.lib;version.lib;wldap32.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
<AdditionalOptions>/PDBALTPATH:$(TargetFileName).pdb %(AdditionalOptions)</AdditionalOptions>
</Link>
@ -433,7 +435,7 @@ copy /b $(OutDir)fuse3-$(MyProductFileArch).pc + %(FullPath) $(OutDir)fuse3-$(My
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;secur32.lib;version.lib;netapi32.lib;wldap32.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);credui.lib;netapi32.lib;rpcrt4.lib;secur32.lib;shlwapi.lib;version.lib;wldap32.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
<AdditionalOptions>/PDBALTPATH:$(TargetFileName).pdb %(AdditionalOptions)</AdditionalOptions>
</Link>

View File

@ -175,6 +175,12 @@
<ClCompile Include="..\..\src\dll\debug.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\src\shared\ku\mountmgr.c">
<Filter>Source\shared\ku</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\sxs.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\dll\library.def">

View File

@ -228,6 +228,7 @@
<FilesToPackage Include="$(TargetPath)" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\shared\ku\mountmgr.c" />
<ClCompile Include="..\..\src\shared\ku\posix.c" />
<ClCompile Include="..\..\src\shared\ku\uuid5.c" />
<ClCompile Include="..\..\src\sys\cleanup.c" />
@ -259,6 +260,7 @@
<ClCompile Include="..\..\src\sys\shutdown.c" />
<ClCompile Include="..\..\src\sys\silo.c" />
<ClCompile Include="..\..\src\sys\statistics.c" />
<ClCompile Include="..\..\src\sys\sxs.c" />
<ClCompile Include="..\..\src\sys\trace.c" />
<ClCompile Include="..\..\src\sys\util.c" />
<ClCompile Include="..\..\src\sys\volinfo.c" />
@ -289,6 +291,9 @@
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">set DriverFile=$(TargetFileName)
set Provider="$(MyCompanyName)"
set CatalogFile=driver-$(MyProductFileArch).cat
if "$(MyProductFileArch)"=="a64" set ArchDecoration=ntarm64
if "$(MyProductFileArch)"=="x64" set ArchDecoration=ntamd64
if "$(MyProductFileArch)"=="x86" set ArchDecoration=ntx86
setlocal EnableDelayedExpansion
if exist $(OutDir)driver-$(MyProductFileArch).inf del $(OutDir)driver-$(MyProductFileArch).inf
@ -302,6 +307,9 @@ stampinf -d * -v $(MyVersion) -f $(OutDir)driver-$(MyProductFileArch).inf</Comma
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">set DriverFile=$(TargetFileName)
set Provider="$(MyCompanyName)"
set CatalogFile=driver-$(MyProductFileArch).cat
if "$(MyProductFileArch)"=="a64" set ArchDecoration=ntarm64
if "$(MyProductFileArch)"=="x64" set ArchDecoration=ntamd64
if "$(MyProductFileArch)"=="x86" set ArchDecoration=ntx86
setlocal EnableDelayedExpansion
if exist $(OutDir)driver-$(MyProductFileArch).inf del $(OutDir)driver-$(MyProductFileArch).inf
@ -315,6 +323,9 @@ stampinf -d * -v $(MyVersion) -f $(OutDir)driver-$(MyProductFileArch).inf</Comma
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">set DriverFile=$(TargetFileName)
set Provider="$(MyCompanyName)"
set CatalogFile=driver-$(MyProductFileArch).cat
if "$(MyProductFileArch)"=="a64" set ArchDecoration=ntarm64
if "$(MyProductFileArch)"=="x64" set ArchDecoration=ntamd64
if "$(MyProductFileArch)"=="x86" set ArchDecoration=ntx86
setlocal EnableDelayedExpansion
if exist $(OutDir)driver-$(MyProductFileArch).inf del $(OutDir)driver-$(MyProductFileArch).inf
@ -327,6 +338,9 @@ stampinf -d * -v $(MyVersion) -f $(OutDir)driver-$(MyProductFileArch).inf</Comma
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">set DriverFile=$(TargetFileName)
set Provider="$(MyCompanyName)"
set CatalogFile=driver-$(MyProductFileArch).cat
if "$(MyProductFileArch)"=="a64" set ArchDecoration=ntarm64
if "$(MyProductFileArch)"=="x64" set ArchDecoration=ntamd64
if "$(MyProductFileArch)"=="x86" set ArchDecoration=ntx86
setlocal EnableDelayedExpansion
if exist $(OutDir)driver-$(MyProductFileArch).inf del $(OutDir)driver-$(MyProductFileArch).inf
@ -341,6 +355,9 @@ stampinf -d * -v $(MyVersion) -f $(OutDir)driver-$(MyProductFileArch).inf</Comma
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">set DriverFile=$(TargetFileName)
set Provider="$(MyCompanyName)"
set CatalogFile=driver-$(MyProductFileArch).cat
if "$(MyProductFileArch)"=="a64" set ArchDecoration=ntarm64
if "$(MyProductFileArch)"=="x64" set ArchDecoration=ntamd64
if "$(MyProductFileArch)"=="x86" set ArchDecoration=ntx86
setlocal EnableDelayedExpansion
if exist $(OutDir)driver-$(MyProductFileArch).inf del $(OutDir)driver-$(MyProductFileArch).inf
@ -353,6 +370,9 @@ stampinf -d * -v $(MyVersion) -f $(OutDir)driver-$(MyProductFileArch).inf</Comma
<Command Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">set DriverFile=$(TargetFileName)
set Provider="$(MyCompanyName)"
set CatalogFile=driver-$(MyProductFileArch).cat
if "$(MyProductFileArch)"=="a64" set ArchDecoration=ntarm64
if "$(MyProductFileArch)"=="x64" set ArchDecoration=ntamd64
if "$(MyProductFileArch)"=="x86" set ArchDecoration=ntx86
setlocal EnableDelayedExpansion
if exist $(OutDir)driver-$(MyProductFileArch).inf del $(OutDir)driver-$(MyProductFileArch).inf

View File

@ -131,6 +131,12 @@
<ClCompile Include="..\..\src\sys\devtimer.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\src\shared\ku\mountmgr.c">
<Filter>Source\shared\ku</Filter>
</ClCompile>
<ClCompile Include="..\..\src\sys\sxs.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\sys\driver.h">

View File

@ -6,18 +6,17 @@
I am running Windows 7 and I am finding that the installed driver is not signed.::
Your Windows 7 OS is missing SHA-2 Code Signing Support. You need to install the following security advisory that will rectify the problem:
https://technet.microsoft.com/en-us/library/security/3033929.aspx
Your Windows 7 OS is missing SHA-2 Code Signing Support. Make sure it is fully updated.
I cannot run a program located in a WinFsp drive as administrator. I cannot run `regedit.exe` from within a WinFsp drive.::
When running an executable as administrator, the Windows OS seems to require that the name of the file system that is housing the executable is "NTFS". For example, the MEMFS file system with the command line `memfs-x64.exe -i -F NTFS -m X:` works.
Disconnecting (unmapping) a network drive does not work.::
You may have Dokany installed. Dokany installs its own Network Provider DLL that unfortunately interferes with the WinFsp handling of network drives. The solution is to change your system's Network Provider order and ensure that the WinFsp Network Provider runs before the Dokany one. Instructions on how to change the Network Provider order can be found in this http://blogs.interfacett.com/changing-the-network-provider-order-in-windows-10[article].
Case-sensitive file systems do not work properly when mounted as a directory.::
This is fixed as of WinFsp 2018.2 B3.
You may have Dokany installed. Dokany installs its own Network Provider DLL that unfortunately interferes with the WinFsp handling of network drives. The solution is to change your system's Network Provider order and ensure that the WinFsp Network Provider runs before the Dokany one. Instructions on how to change the Network Provider order can be found in this https://www.interfacett.com/blogs/changing-the-network-provider-order-in-windows-10/[article].
Why is the DLL not installed in the Windows system directories?::
@ -29,7 +28,7 @@ There are a few alternative methods to overcome this problem. WinFsp recommends
Does WinFsp provide debugging symbols?::
Public debugging symbols are already included in the installer. You need to install the "Developer" feature; the symbols can be found in the `sym` directory under the WinFsp installation directory.
Debugging symbols can be found in the https://github.com/winfsp/winfsp.sym repository.
Is there a maximum number of concurrent file systems?::
@ -61,11 +60,6 @@ With this in mind here are the reasons for the current WinFsp-FUSE behavior:
- Most importantly: inability to guarantee that the mount point will cease to exist if the file system crashes. WinFsp attempts to guarantee that all resources used by a file system will get cleaned up. This is certainly true for the kernel-mode FSD, but an attempt is made to do so also in user mode. For this reason, drive symbolic links are marked as temporary and (importantly for our discussion) mount directories are opened with `FILE_FLAG_DELETE_ON_CLOSE`. There is no way to guarantee the removal of a reparse point in the same way.
WinFsp-FUSE does not have the ability to support multiple file systems from within the same process. Why?::
This is supported as of WinFsp 2018.2 B2.
I have problems getting permissions to work properly in a WinFsp-FUSE file system. Can you help?::
The WinFsp-FUSE layer includes a built-in command line option that can help: `-o uid=-1`. This instructs the WinFsp-FUSE layer to present all file system files as if they are owned by the user that launched the file system.

View File

@ -11,6 +11,7 @@ This document contains a list of known open-source file systems and file system
- https://github.com/ihaveamac/fuse-3ds[fuse-3ds] - FUSE Filesystem Python scripts for Nintendo 3DS files
- https://github.com/sganis/golddrive[golddrive] - Windows ssh network drive
- https://github.com/winfsp/hubfs[hubfs] - File system for GitHub
- https://github.com/juicedata/juicefs[JuiceFS] - a distributed POSIX file system built on top of Redis and S3
- https://github.com/FrKaram/KS2.Drive[KS2.Drive] - Mount a webDAV/AOS server as a local drive
- https://github.com/winfsp/nfs-win[nfs-win] - NFS for Windows
- https://github.com/winfsp/objfs[objfs] - Object Storage File System
@ -29,7 +30,7 @@ This document contains a list of known open-source file systems and file system
- https://github.com/winfsp/cgofuse[Go: cgofuse] - Cross-platform FUSE library for Go
- https://github.com/SerCeMan/jnr-fuse[Java: jnr-fuse] - FUSE implementation in Java using Java Native Runtime (JNR)
- https://github.com/jnr-winfsp-team/jnr-winfsp[Java: jnr-winfsp] - A Java binding for WinFsp using Java Native Runtime (JNR)
- https://github.com/DuroSoft/fuse-bindings[Nodejs: fuse-bindings] - Fully maintained FUSE bindings for Node that aims to cover the entire FUSE api
- https://github.com/billziss-gh/fusepy[Python: fusepy] - Simple ctypes bindings for FUSE
- https://github.com/pleiszenburg/refuse[Python: refuse] - Simple cross-plattform ctypes bindings for libfuse / FUSE for macOS / WinFsp
- https://github.com/Scille/winfspy[Python: winfspy] - WinFSP binding for Python
- https://github.com/SnowflakePowered/winfsp-rs[Rust: winfsp-rs] - WinFSP binding for Rust

View File

@ -0,0 +1,59 @@
= WinFsp Building
This document provides instructions on building WinFsp and describes the WinFsp project structure.
== Building
In order to build WinFsp you will need the following:
* Visual Studio 2019
* Windows Driver Kit (WDK)
* https://wixtoolset.org[Wix toolset]
Use the command `tools\build.bat Release` to produce a full build (including the installer). However the resulting product will not be properly signed and Windows will refuse to load the WinFsp driver, unless you enable testsigning with `bcdedit -set testsigning on`.
Producing a fully functional build requires an EV certificate and a Partner Center for Windows Hardware account. Assuming you have those, the steps to produce a full build are as follows:
* Produce a build signed with your EV certificate using `tools\build.bat Release`.
* Upload the signed `driver.cab` file to Microsoft for "attestation signing".
* Download the now Microsoft-signed `driver.cab` file and extract it into a folder (e.g. `signed-drivers`).
* Re-run the build using `tools\build.bat Release PATH\TO\signed-drivers`
== Versioning
WinFsp versioning (and branding) is controlled by the file `build\VStudio\build.version.props`. See the link:WinFsp-Rebranding.asciidoc[WinFsp Rebranding] document for details.
== Project Structure
The WinFsp project is structured as follows:
* 📁 https://github.com/winfsp/winfsp/tree/master/art[art]: Project logo and other art.
* 📁 https://github.com/winfsp/winfsp/tree/master/build[build]: Project build files.
** 📁 https://github.com/winfsp/winfsp/tree/master/build/choco[choco]: Chocolatey package files.
** 📁 https://github.com/winfsp/winfsp/tree/master/build/VStudio[VStudio]: Visual Studio solution and project files.
* 📁 https://github.com/winfsp/winfsp/tree/master/doc[doc]: Project documentation.
* 📁 https://github.com/winfsp/winfsp/tree/master/ext[ext]: External dependencies.
** 📁 https://github.com/winfsp/winfsp/tree/master/ext/tlib[tlib]: Test library for C originally from the secfs project.
** 📁 https://github.com/winfsp/winfsp/tree/master/ext/test[test]: Submodule containing additional file system testing tools.
* 📁 https://github.com/winfsp/winfsp/tree/master/inc[inc]: Public headers.
** 📁 https://github.com/winfsp/winfsp/tree/master/inc/fuse[fuse]: Public headers for the FUSE compatibility layer.
** 📁 https://github.com/winfsp/winfsp/tree/master/inc/fuse3[fuse3]: Public headers for the FUSE3 compatibility layer.
** 📁 https://github.com/winfsp/winfsp/tree/master/inc/winfsp[winfsp]: Public headers for the WinFsp API.
* 📁 https://github.com/winfsp/winfsp/tree/master/opt[opt]: Additional source code and files.
** 📁 https://github.com/winfsp/winfsp/tree/master/opt/cygfuse[cygfuse]: Source code for the FUSE for Cygwin package.
** 📁 https://github.com/winfsp/winfsp/tree/master/opt/fsext[fsext]: Source code for the fsext package.
* 📁 https://github.com/winfsp/winfsp/tree/master/src[src]: Project source code.
** 📁 https://github.com/winfsp/winfsp/tree/master/src/dll[dll]: Source code for the WinFsp DLL.
*** 📁 https://github.com/winfsp/winfsp/tree/master/src/dll/fuse[fuse]: Source code for the FUSE compatibility layer.
*** 📁 https://github.com/winfsp/winfsp/tree/master/src/dll/fuse3[fuse3]: Source code for the FUSE3 compatibility layer.
** 📁 https://github.com/winfsp/winfsp/tree/master/src/dotnet[dotnet]: Source code for the .NET layer.
** 📁 https://github.com/winfsp/winfsp/tree/master/src/fsptool[fsptool]: Source code for the fsptool command line utility.
** 📁 https://github.com/winfsp/winfsp/tree/master/src/launcher[launcher]: Source code for the launcher and the launchctl utility.
** 📁 https://github.com/winfsp/winfsp/tree/master/src/shared[shared]: Shared source code.
*** 📁 https://github.com/winfsp/winfsp/tree/master/src/shared/ku[ku]: Shared source code for kernel and user mode.
*** 📁 https://github.com/winfsp/winfsp/tree/master/src/shared/um[um]: Shared source code for user mode only.
** 📁 https://github.com/winfsp/winfsp/tree/master/src/sys[sys]: Source code for the WinFsp FSD.
* 📁 https://github.com/winfsp/winfsp/tree/master/tools[tools]: Tools for building and testing WinFsp.
* 📁 https://github.com/winfsp/winfsp/tree/master/tst[tst]: Source code for example file systems and test suites.
** 📁 https://github.com/winfsp/winfsp/tree/master/tst/memfs[memfs]: The MEMFS reference file system.
** 📁 https://github.com/winfsp/winfsp/tree/master/tst/winfsp-tests[winfsp-tests]: The primary WinFsp test suite.

View File

@ -1,192 +1,163 @@
= Performance Testing
:caption:
This document discusses performance testing for WinFsp. The goal of this performance testing is to discover optimization opportunities for WinFsp and compare its performance to that of NTFS and Dokany.
This document presents results from performance testing of WinFsp. These results show that WinFsp has excellent performance that rivals or exceeds that of NTFS in many file system scenarios. Some further optimization opportunities are also identified.
== Executive Summary
== Summary
This performance testing shows that WinFsp has excellent performance in all tested scenarios. It outperforms NTFS in most scenarios (an unfair comparison as NTFS is a disk file system and WinFsp is tested with an in-memory file system). It also outperforms Dokany in all scenarios, often by an order of magnitude.
Two reference WinFsp file systems, MEMFS and NTPTFS, are compared against NTFS in multiple file system scenarios. MEMFS is an in-memory file system, whereas NTPTFS (NT passthrough file system) is a file system that passes all file system requests onto an underlying NTFS file system.
ifdef::env-browser[chart::bar[data-uri="WinFsp-Performance-Testing/file_tests.csv",file="WinFsp-Performance-Testing/file_tests.png",opt="y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_tests.png[]]
The test results are summarized in the charts below. The "File Tests" chart summarizes performance of file path namespace manipulations (e.g. creating/deleting files, opening files, listing files, etc.). The "Read/Write Tests" chart summarizes performance of file I/O (e.g. cached read/write, memory mapped I/O, etc.)
ifdef::env-browser[chart::bar[data-uri="WinFsp-Performance-Testing/rdwr_tests.csv",file="WinFsp-Performance-Testing/rdwr_tests.png",opt="y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_tests.png[]]
The important takeaways are:
== Fsbench
- MEMFS is faster than NTFS is most scenarios. This is a somewhat expected result because MEMFS is an in-memory file system, whereas NTFS is a disk file system. However it shows that WinFsp does not add significant overhead and user mode file systems can be fast.
All testing was performed using a new performance test suite developed as part of WinFsp, called https://github.com/winfsp/winfsp/blob/master/tst/fsbench/fsbench.c[fsbench]. Fsbench was developed because it allows the creation of tests that are important to file system developers; for example, it can answer questions of the type: "how long does it take to delete 1000 files" or "how long does it take to list a directory with 10000 files in it".
- MEMFS and NTPTFS both outperform NTFS when doing cached file I/O! This is a significant result because doing file I/O is the primary purpose of a file system. It is also an unexpected result at least in the case of NTPTFS, since NTPTFS runs on top of NTFS.
Fsbench is based on the https://github.com/winfsp/winfsp/tree/master/ext/tlib[tlib] library, originally from the *secfs* project. Tlib is usually used to develop regression test suites in C/C++, but can be also used to create performance tests.
The following sections present the testing methodology used, provide instructions for independent verification, describe the individual tests in detail and provide an explanation for the observed results.
Fsbench currently includes the following tests:
[width="100%",cols="20%,60%,20%",options="header"]
[cols="a,a", frame=none, grid=none]
|===
|Test |Measures performance of |Parameters
|file_create_test |CreateFileW(CREATE_NEW) / CloseHandle |file count
|file_open_test |CreateFileW(OPEN_EXISTING) / CloseHandle |file count
|file_overwrite_test|CreateFileW(CREATE_ALWAYS) / CloseHandle with existing files|file count
|file_list_test |FindFirstFileW / FindNextFile / FindClose |iterations
|file_delete_test |DeleteFileW |file count
|file_mkdir_test |CreateDirectoryW |file count
|file_rmdir_test |RemoveDirectoryW |file count
|rdwr_cc_write_page_test |WriteFile (1 page; cached) |iterations
|rdwr_cc_read_page_test |ReadFile (1 page; cached) |iterations
|rdwr_nc_write_page_test |WriteFile (1 page; non-cached) |iterations
|rdwr_nc_read_page_test |ReadFile (1 page; non-cached) |iterations
|rdwr_cc_write_large_test |WriteFile (16 pages; cached) |iterations
|rdwr_cc_read_large_test |ReadFile (16 pages; cached) |iterations
|rdwr_nc_write_large_test |WriteFile (16 pages; non-cached) |iterations
|rdwr_nc_read_large_test |ReadFile (16 pages; non-cached) |iterations
|mmap_write_test |Memory mapped write test |iterations
|mmap_write_test |Memory mapped read test |iterations
|image::WinFsp-Performance-Testing/file_tests.png[]
|image::WinFsp-Performance-Testing/rdwr_tests.png[]
|===
== Tested File Systems
== Methodology
=== NTFS
A test run consists of performance tests run one after the other (in sequence). The test driver is careful to clear system caches before each test to minimize timing interference between the tests (because we would not want operations performed in test A to affect measurements of test B). Tests are run on an idle computer to minimize interference from third party components.
The comparison to NTFS is very important to establish a baseline. It is also very misleading because NTFS is a disk file system and MEMFS (either the WinFsp or Dokany variants) is an in memory file system. The tests will show that MEMFS is faster than NTFS. This should not be taken to mean that we are trying to make the (obvious) claim that an in memory file system is faster than a disk file system, but to show that the approach of writing a file system in user mode is a valid proposition and can be efficient.
Each test run is run a number of times (default: 3) against each file system and the smallest time value for the particular test and file system is chosen. The assumption is that even in a seemingly idle system there is some activity that affects the results; the smallest value is the preferred one to use because it reflects the time when there is less or no other system activity.
=== WinFsp/MEMFS
For the NTFS file system we use the default configuration as it ships with Windows (e.g. 8.3 names are enabled). For the NTPTFS file system we disable anti-virus checks on the lower file system, because it makes no sense for NTPTFS to pay for virus checking twice. (Consider an NTPTFS file system that exposes a lower NTFS directory `C:\t` as an upper drive `X:`. Such a file system would have virus checking applied on file accesses to `X:`, but also to its own accesses to `C:\t`. This is unnecessary and counter-productive.)
MEMFS is the file system used to test WinFsp and shipped as a sample bundled with the WinFsp installer. MEMFS is a simple in memory file system and as such is very fast under most conditions. This is desirable because our goal with this performance testing is to measure the speed of the WinFsp system components rather the performance of a complex user mode file system. MEMFS has minimal overhead and is ideal for this purpose.
Note that the sequential nature of the tests represents a worst case scenario for WinFsp. The reason is that a single file system operation may require a roundtrip to the user mode file system and such a roundtrip requires two process context switches (i.e. address space and thread switches): one context switch to carry the file system request to the user mode file system and one context switch to carry the response back to the originating process. WinFsp performs better when multiple processes issue file system operations concurrently, because multiple requests are queued in its internal queues and multiple requests can be handled in a single context switch.
WinFsp/MEMFS can be run in different configurations, which enable or disable WinFsp caching features. The tested configurations were:
For more information refer to the link:WinFsp-Performance-Testing/WinFsp-Performance-Testing-Analysis.ipynb[Performance Testing Analysis] notebook. This notebook together with the `run-all-perf-tests.bat` script can be used for replication and independent verification of the results presented in this document.
- An infinite FileInfoTimeout, which enables caching of metadata and data.
- A FileInfoTimeout of 1s (second), which enables caching of metadata but disables caching of data.
- A FileInfoTimeout of 0, which completely disables caching.
The WinFsp git commit at the time of testing was d804f5674d76f11ea86d14f4bcb1157e6e40e719.
=== Dokany/MEMFS
To achieve fairness when comparing Dokany to WinFsp the MEMFS file system has been ported to Dokany. Substantial care was taken to ensure that WinFsp/MEMFS and Dokany/MEMFS perform equally well, so that the performance of the Dokany FSD and user-mode components can be measured and compared accurately.
The Dokany/MEMFS project has its own https://github.com/billziss-gh/memfs-dokany[repository]. The project comes without a license, which means that it may not be used for any purpose other than as a reference.
The Dokany version used for testing was 1.0.1. The Dokany/MEMFS git commit was 27a678d7c0d5ee2fb3fb2ecc8e38210857ae941c.
== Test Environment
Tests were performed on an idle computer/VM. There was a reboot of both the computer and VM before each file system was tested. Each test was run twice and the smaller time value chosen. The assumption is that even in a seemingly idle desktop system there is some activity which will affect the results; the smaller value is the preferred one to use because it reflects the time when there is less or no other activity.
The test environment was as follows:
The test environment for the results presented in this document is as follows:
----
MacBook Pro (Retina, 13-inch, Early 2015)
3.1 GHz Intel Core i7
16 GB 1867 MHz DDR3
500 GB SSD
Dell XPS 13 9300
Intel Core i7-1065G7 CPU
32GB 3733MHz LPDDR4x RAM
2TB M.2 PCIe NVMe SSD
VirtualBox Version 5.0.20 r106931
1 CPU
4 GB RAM
80 GB Dynamically allocated differencing storage
Windows 10 (64-bit) Version 1511 (OS Build 10586.420)
Windows 11 (64-bit) Version 21H2 (OS Build 22000.258)
WinFsp 2022+ARM64 Beta3 (v1.11B3)
----
== Test Results
== Results
In the graphs below we use consistent coloring to quickly identify a file system. Red is used for NTFS, yellow for WinFsp/MEMFS with a FileInfoTimeout of 0, green for WinFsp/MEMFS with a FileInfoTimeout of 1, light blue for WinFsp/MEMFS with an infinite FileInfoTimeout and deep blue for Dokany/MEMFS.
In the charts below we use consistent coloring and markers to quickly identify a file system. Blue and the letter 'N' is used for NTFS, orange and the letter 'M' is used for MEMFS, green and the letter 'P' is used for NTPTFS.
In bar charts shorter bars are better. In plot charts lower times are better. (Better means that the file system is faster).
In all tests lower times are better (the file system is faster).
=== File Tests
These tests measure the performance of creating, opening, overwriting and listing files and directories.
File tests are tests that are performed against the hierarchical path namespace of a file system. These tests measure the performance of creating, opening, overwriting, listing and deleting files.
Measured times for these tests are normalized against the NTFS time (so that the NTFS value is always 1). This allows for easy comparison between file systems across all file tests.
MEMFS has the best performance in most of these tests. NTFS performs better in some tests; these are discussed further below. NTPTFS is last as it has the overhead of both NTFS and WinFsp.
image::WinFsp-Performance-Testing/file_tests.png[]
==== file_create_test
This test measures the performance of CreateFileW(CREATE_NEW) / CloseHandle. WinFsp has the best performance here. Dokany follows and NTFS is last as it has to actually update its data structures on disk.
This test measures the performance of creating new files using `CreateFileW(CREATE_NEW)` / `CloseHandle`. MEMFS has the best performance here, while NTFS has worse performance as it has to update its data structures on disk.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_create_test.csv",file="WinFsp-Performance-Testing/file_create_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_create_test.png[]]
image::WinFsp-Performance-Testing/file_create_test.png[]
==== file_open_test
This test measures the performance of CreateFileW(OPEN_EXISTING) / CloseHandle. WinFsp again has the best (although uneven) performance, followed by NTFS and then Dokany.
This test measures the performance of opening different files using `CreateFileW(OPEN_EXISTING)` / `CloseHandle`. MEMFS again has the best performance, followed by NTFS and then NTPTFS.
WinFsp appears to have very uneven performance here. In particular notice that opening 1000 files is slower than opening 2000 files, which makes no sense! I suspect that the test observes an initial acquisition of resouces when the test first starts, which is not necessary when the test runs for 2000 files at a later time. This uneven performance should probably be investigated in the future.
image::WinFsp-Performance-Testing/file_open_test.png[]
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_open_test.csv",file="WinFsp-Performance-Testing/file_open_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_open_test.png[]]
==== iter.file_open_test
This test measures the performance of opening the same files repeatedly using `CreateFileW(OPEN_EXISTING)` / `CloseHandle`. NTFS has the best performance, with MEMFS following and NTPTFS a distant third.
This test shows that NTFS does a better job than WinFsp when re-opening a file. The problem is that in most cases the WinFsp API design requires a round-trip to the user mode file system when opening a file. Improving WinFsp performance here would likely require substantial changes to the WinFsp API.
image::WinFsp-Performance-Testing/iter.file_open_test.png[]
==== file_overwrite_test
This test measures the performance of CreateFileW(CREATE_ALWAYS) / CloseHandle. WinFsp is fastest, followed by NTFS and then Dokany.
This test measures the performance of overwriting files using `CreateFileW(CREATE_ALWAYS)` / `CloseHandle`. MEMFS is fastest, followed by NTFS and then NTPTFS.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_overwrite_test.csv",file="WinFsp-Performance-Testing/file_overwrite_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_overwrite_test.png[]]
image::WinFsp-Performance-Testing/file_overwrite_test.png[]
==== file_list_test
This test measures the performance of FindFirstFileW / FindNextFile / FindClose. NTFS wins this scenario, likely because it can satisfy the list operation from cache. WinFsp has overall good performance. Dokany appears to show slightly quadratic performance in this scenario.
This test measures the performance of listing files using `FindFirstFileW` / `FindNextFile` / `FindClose`. MEMFS is again fastest with NTFS and NTPTFS following.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_list_test.csv",file="WinFsp-Performance-Testing/file_list_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_list_test.png[]]
It should be noted that NTFS can perform better in this test, if 8.3 (i.e. short) names are disabled (see `fsutil 8dot3name`). However Microsoft ships NTFS with 8.3 names enabled by default and these tests are performed against the default configuration of NTFS.
image::WinFsp-Performance-Testing/file_list_test.png[]
==== file_list_single_test
This test measures the performance of listing a single file using `FindFirstFileW` / `FindNextFile` / `FindClose`. NTFS has again best performance, with MEMFS following and NTPTFS a distant third.
This test shows that NTFS does a better job than WinFsp at caching directory data. Improving WinFsp performance here would likely require a more aggressive and/or intelligent directory caching scheme than the one used now.
image::WinFsp-Performance-Testing/file_list_single_test.png[]
==== file_delete_test
This test measures the performance of DeleteFileW. WinFsp has the best performance, followed by Dokany and NTFS with very similar performance.
This test measures the performance of deleting files using `DeleteFileW`. MEMFS has the best performance, followed by NTFS and NTPTFS.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_delete_test.csv",file="WinFsp-Performance-Testing/file_delete_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_delete_test.png[]]
image::WinFsp-Performance-Testing/file_delete_test.png[]
=== Read/Write Tests
These tests measure the performance of cached, non-cached and memory-mapped I/O.
Read/write tests are tests that measure the performance of cached, non-cached and memory-mapped I/O.
==== rdwr_cc_write_page_test
Measured times for these tests are normalized against the NTFS time (so that the NTFS value is always 1). This allows for easy comparison between file systems across all read/write tests.
This test measures the performance of cached WriteFile with 1 page writes. NTFS and WinFsp with an infinite FileInfoTimeout have the best performance, with a clear edge to NTFS (likely because of its use of FastIO, which WinFsp does not currently support). WinFsp with a FileInfoTimeout of 0 or 1 performance is next, because WinFsp does not use the NTOS Cache Manager in this scenario. Dokany performance is last.
MEMFS and NTPTFS outperform NTFS in cached and non-cached I/O tests and have equal performance to NTFS in memory mapped I/O tests. This result may be somewhat counter-intuitive (especially for NTPTFS), but the reasons are explained below.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/rdwr_cc_write_page_test.csv",file="WinFsp-Performance-Testing/rdwr_cc_write_page_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_cc_write_page_test.png[]]
image::WinFsp-Performance-Testing/rdwr_tests.png[]
==== rdwr_cc_read_page_test
This test measures the performance of cached ReadFile with 1 page reads. The results here are very similar to the rdwr_cc_write_page_test case and similar comments apply.
This test measures the performance of cached `ReadFile` with 1 page reads. MEMFS and NTPTFS outperform NTFS by a considerable margin.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/rdwr_cc_read_page_test.csv",file="WinFsp-Performance-Testing/rdwr_cc_read_page_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_cc_read_page_test.png[]]
Cached reads are satisfied from cache and they can effectively be a "memory copy" from the operating system's buffers into the `ReadFile` buffer. Both WinFsp and NTFS implement NT "fast I/O" and one explanation for the test's result is that the WinFsp "fast I/O" implementation is more performant than the NTFS one.
==== rdwr_nc_write_page_test
An alternative explanation is that MEMFS and NTPTFS are simply faster in filling the file system cache when a cache miss occurs. While this may be true for MEMFS (because it maintains file data in user mode memory), it cannot be true for NTPTFS. Recall that the test driver clears system caches prior to running every test, which means that when NTPTFS tries to fill its file system cache for the upper file system, it has to access lower file system data from disk (the same as NTFS).
This test measures the performance of non-cached WriteFile with 1 page writes. WinFsp has the best performance, followed by Dokany. NTFS shows bad performance, which of course make sense as we are asking it to write all data to the disk.
image::WinFsp-Performance-Testing/rdwr_cc_read_page_test.png[]
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/rdwr_nc_write_page_test.csv",file="WinFsp-Performance-Testing/rdwr_nc_write_page_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_nc_write_page_test.png[]]
==== rdwr_cc_write_page_test
This test measures the performance of cached `WriteFile` with 1 page writes. As in the read case, MEMFS and NTPTFS outperform NTFS albeit with a smaller margin.
Similar comments as for `rdwr_cc_read_page_test` apply.
image::WinFsp-Performance-Testing/rdwr_cc_write_page_test.png[]
==== rdwr_nc_read_page_test
This test measures the performance of non-cached ReadFile with 1 page reads. The results here are very similar to the rdwr_nc_write_page_test case and similar comments apply.
This test measures the performance of non-cached `ReadFile` with 1 page reads. Although MEMFS and NTPTFS have better performance than NTFS, this result is not as interesting, because MEMFS is an in-memory file system and NTPTFS currently implements only cached I/O (this may change in the future). However we include this test for completeness.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/rdwr_nc_read_page_test.csv",file="WinFsp-Performance-Testing/rdwr_nc_read_page_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_nc_read_page_test.png[]]
image::WinFsp-Performance-Testing/rdwr_nc_read_page_test.png[]
==== mmap_write_test
==== rdwr_nc_write_page_test
This test measures the performance of memory mapped writes. NTFS and WinFsp seem to have identical performance here, which actually makes sense because memory mapped I/O is effectively always cached and most of the actual I/O is done asynchronously by the system.
This test measures the performance of non-cached `WriteFile` with 1 page writes. Again MEMFS and NTPTFS have better performance than NTFS, but similar comments as for `rdwr_nc_read_page_test` apply.
There are no results for Dokany as it seems to (still) not support memory mapped files:
----
Y:\>c:\Users\billziss\Projects\winfsp\build\VStudio\build\Release\fsbench-x64.exe --mmap=100 mmap*
mmap_write_test........................ KO
ASSERT(0 != Mapping) failed at fsbench.c:226:mmap_dotest
----
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/mmap_write_test.csv",file="WinFsp-Performance-Testing/mmap_write_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/mmap_write_test.png[]]
image::WinFsp-Performance-Testing/rdwr_nc_write_page_test.png[]
==== mmap_read_test
This test measures the performance of memory mapped reads. Again NTFS and WinFsp seem to have identical performance here.
This test measures the performance of memory mapped reads. NTFS and WinFsp have identical performance here, which actually makes sense because memory mapped I/O is effectively cached by buffers that are mapped into the address space of the process doing the I/O.
There are no results for Dokany as it faces the same issue as with mmap_write_test.
image::WinFsp-Performance-Testing/mmap_read_test.png[]
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/mmap_read_test.csv",file="WinFsp-Performance-Testing/mmap_read_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/mmap_read_test.png[]]
==== mmap_write_test
This test measures the performance of memory mapped writes. NTFS and WinFsp have again identical performance here. Similar comments as for `mmap_read_test` apply.
image::WinFsp-Performance-Testing/mmap_write_test.png[]

View File

@ -0,0 +1,238 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Performance Testing Analysis\n",
"\n",
"This notebook describes the methodology for analyzing WinFsp performance."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Data Collection\n",
"\n",
"Performance data is collected by running the script `run-all-perf-tests.bat`. This script runs a variety of performance tests against the NTFS, MEMFS and NTPTFS file systems. The tests are run a number of times (default: 3) and the results are saved in CSV files with names `ntfs-N.csv`, `memfs-N.csv` and `ntptfs-N.csv` (where `N` represents the results of test run `N`)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Data Loading\n",
"\n",
"Data is loaded from all CSV files into a single pandas `DataFrame`. The resulting `DataFrame` has columns `test`, `iter`, `ntfs`, `memfs`, `ntptfs`. With multiple test runs there will be multiple time values for a `test`, `iter`, file system triple; in this case the smallest time value is entered into the `DataFrame`. The assumption is that even in a seemingly idle system there is some activity that affects the results; the smallest value is the preferred one to use because it reflects the time when there is less or no other system activity.\n",
"\n",
"The resulting `DataFrame` will contain data similar to the following:\n",
"\n",
"| test | iter | ntfs | memfs | ntptfs |\n",
"|:------------------|------:|-------:|-------:|-------:|\n",
"| file_create_test | 1000 | 0.20 | 0.06 | 0.28 |\n",
"| file_open_test | 1000 | 0.09 | 0.05 | 0.22 |\n",
"| ... | ... | ... | ... | ... |"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import glob, os\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"\n",
"nameord = [\"ntfs\", \"memfs\", \"ntptfs\"]\n",
"\n",
"datamap = {}\n",
"for f in sorted(glob.iglob(\"*.csv\")):\n",
" datamap.setdefault(f.rsplit(\"-\", maxsplit=1)[0], []).append(f)\n",
"\n",
"df = None\n",
"for n in nameord:\n",
" ndf = None\n",
" for f in datamap[n]:\n",
" df0 = pd.read_csv(f, header=None, names=[\"test\", \"iter\", n])\n",
" if ndf is None:\n",
" ndf = df0\n",
" else:\n",
" ndf = ndf.combine(df0, np.minimum)\n",
" if df is None:\n",
" df = ndf\n",
" else:\n",
" df = df.merge(ndf, how=\"left\")\n",
"#df"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Data Analysis\n",
"\n",
"For each test a plot is drawn that shows how each file system performs in the particular test. This allows for easy comparisons between file systems for a particular test."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"markermap = { \"ntfs\": \"$\\mathtt{N}$\", \"memfs\": \"$\\mathtt{M}$\", \"ntptfs\": \"$\\mathtt{P}$\"}\n",
"for t, tdf in df.groupby(\"test\", sort=False):\n",
" plt.figure(figsize=(10,8), dpi=100, facecolor=\"white\")\n",
" plt.title(t)\n",
" xlabel = \"iter\"\n",
" if t.startswith(\"file_\"):\n",
" xlabel = \"files\"\n",
" for n in nameord:\n",
" tdf.plot(ax=plt.gca(), x=\"iter\", xlabel=xlabel, y=n, ylabel=\"time\", marker=markermap[n], ms=8)\n",
" plt.legend(nameord)\n",
" plt.savefig(t + \".png\")\n",
" #plt.show()\n",
" plt.close()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](file_create_test.png)\n",
"![](file_open_test.png)\n",
"![](file_overwrite_test.png)\n",
"![](file_attr_test.png)\n",
"![](file_list_test.png)\n",
"![](file_list_single_test.png)\n",
"![](file_list_none_test.png)\n",
"![](file_delete_test.png)\n",
"![](file_mkdir_test.png)\n",
"![](file_rmdir_test.png)\n",
"\n",
"![](iter.file_open_test.png)\n",
"![](iter.file_attr_test.png)\n",
"![](iter.file_list_single_test.png)\n",
"![](iter.file_list_none_test.png)\n",
"\n",
"![](rdwr_cc_read_large_test.png)\n",
"![](rdwr_cc_read_page_test.png)\n",
"![](rdwr_cc_write_large_test.png)\n",
"![](rdwr_cc_write_page_test.png)\n",
"![](rdwr_nc_read_large_test.png)\n",
"![](rdwr_nc_read_page_test.png)\n",
"![](rdwr_nc_write_large_test.png)\n",
"![](rdwr_nc_write_page_test.png)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### File tests\n",
"\n",
"File tests are tests that are performed against the hierarchical path namespace of a file system. Such tests include `file_create_test`, `file_open_test`, etc. Measured times for these tests are normalized against the `ntfs` time (so that the `ntfs` time value becomes 1) and a single aggregate plot is produced.\n",
"\n",
"This allows for easy comparison between file systems across all file tests."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"fileord = [\"create\", \"open\", \"iter.open\", \"overwrite\", \"list\", \"list_single\", \"delete\"]\n",
"fdf = pd.concat([df[df.iter == 5000], df[df.iter == 50]])\n",
"fdf.test = fdf.test.map(lambda x: x.replace(\"file_\", \"\").replace(\"_test\", \"\"))\n",
"fdf = fdf.set_index(\"test\").loc[fileord]\n",
"fdf.memfs /= fdf.ntfs; fdf.ntptfs /= fdf.ntfs; fdf.ntfs = 1\n",
"plt.figure(figsize=(10,8), dpi=100, facecolor=\"white\")\n",
"plt.suptitle(\"File Tests\", fontweight=\"light\", fontsize=20, y=0.95)\n",
"plt.title(\"(Shorter bars are better)\")\n",
"fdf.plot.barh(ax=plt.gca(), y=nameord).invert_yaxis()\n",
"plt.gca().set(ylabel=None)\n",
"for container in plt.gca().containers:\n",
" plt.gca().bar_label(container, fmt=\"%0.2f\", padding=4.0, fontsize=\"xx-small\")\n",
"plt.savefig(\"file_tests.png\")\n",
"#plt.show()\n",
"plt.close()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](file_tests.png)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Read/write tests\n",
"\n",
"Read/write tests are file I/O tests. Such tests include `rdwr_cc_write_page_test`, `rdwr_cc_read_page_test`, etc. As before measured times for these tests are normalized against the `ntfs` time (so that the `ntfs` time value becomes 1) and a single aggregate plot is produced.\n",
"\n",
"This allows for easy comparison between file systems across all read/write tests."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"rdwrord = [\"cc_read_page\", \"cc_write_page\", \"nc_read_page\", \"nc_write_page\", \"mmap_read\", \"mmap_write\"]\n",
"sdf = df[df.iter == 500].copy()\n",
"sdf.test = sdf.test.map(lambda x: x.replace(\"rdwr_\", \"\").replace(\"_test\", \"\"))\n",
"sdf = sdf.set_index(\"test\").loc[rdwrord]\n",
"sdf.memfs /= sdf.ntfs; sdf.ntptfs /= sdf.ntfs; sdf.ntfs = 1\n",
"plt.figure(figsize=(10,8), dpi=100, facecolor=\"white\")\n",
"plt.suptitle(\"Read/Write Tests\", fontweight=\"light\", fontsize=20, y=0.95)\n",
"plt.title(\"(Shorter bars are better)\")\n",
"sdf.plot.barh(ax=plt.gca(), y=nameord).invert_yaxis()\n",
"plt.gca().set(ylabel=None)\n",
"for container in plt.gca().containers:\n",
" plt.gca().bar_label(container, fmt=\"%0.2f\", padding=4.0, fontsize=\"xx-small\")\n",
"plt.savefig(\"rdwr_tests.png\")\n",
"#plt.show()\n",
"plt.close()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](rdwr_tests.png)"
]
}
],
"metadata": {
"interpreter": {
"hash": "78f203ba605732dcd419e55e4a2fc56c1449fc8b262db510a48272adb5557637"
},
"kernelspec": {
"display_name": "Python 3.9.7 64-bit ('base': conda)",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.12"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.06
file_open_test,1000,0.06
file_overwrite_test,1000,0.06
file_attr_test,1000,0.03
file_list_test,1000,0.06
file_list_single_test,1000,0.12
file_list_none_test,1000,0.12
file_delete_test,1000,0.09
file_mkdir_test,1000,0.06
file_rmdir_test,1000,0.08
file_create_test,2000,0.14
file_open_test,2000,0.11
file_overwrite_test,2000,0.14
file_attr_test,2000,0.08
file_list_test,2000,0.16
file_list_single_test,2000,0.30
file_list_none_test,2000,0.25
file_delete_test,2000,0.17
file_mkdir_test,2000,0.14
file_rmdir_test,2000,0.17
file_create_test,3000,0.20
file_open_test,3000,0.16
file_overwrite_test,3000,0.20
file_attr_test,3000,0.12
file_list_test,3000,0.23
file_list_single_test,3000,0.44
file_list_none_test,3000,0.36
file_delete_test,3000,0.25
file_mkdir_test,3000,0.19
file_rmdir_test,3000,0.27
file_create_test,4000,0.28
file_open_test,4000,0.22
file_overwrite_test,4000,0.27
file_attr_test,4000,0.16
file_list_test,4000,0.31
file_list_single_test,4000,0.61
file_list_none_test,4000,0.52
file_delete_test,4000,0.34
file_mkdir_test,4000,0.25
file_rmdir_test,4000,0.36
file_create_test,5000,0.34
file_open_test,5000,0.27
file_overwrite_test,5000,0.33
file_attr_test,5000,0.22
file_list_test,5000,0.42
file_list_single_test,5000,0.80
file_list_none_test,5000,0.66
file_delete_test,5000,0.42
file_mkdir_test,5000,0.31
file_rmdir_test,5000,0.44
iter.file_open_test,10,0.55
iter.file_attr_test,10,0.41
iter.file_list_single_test,10,0.61
iter.file_list_none_test,10,0.61
iter.file_open_test,20,1.08
iter.file_attr_test,20,0.84
iter.file_list_single_test,20,1.25
iter.file_list_none_test,20,1.20
iter.file_open_test,30,1.62
iter.file_attr_test,30,1.30
iter.file_list_single_test,30,1.92
iter.file_list_none_test,30,1.83
iter.file_open_test,40,2.17
iter.file_attr_test,40,1.72
iter.file_list_single_test,40,2.52
iter.file_list_none_test,40,2.42
iter.file_open_test,50,2.77
iter.file_attr_test,50,2.14
iter.file_list_single_test,50,3.12
iter.file_list_none_test,50,2.98
rdwr_cc_write_page_test,100,0.23
rdwr_cc_read_page_test,100,0.23
rdwr_cc_write_large_test,100,0.06
rdwr_cc_read_large_test,100,0.06
rdwr_cc_write_page_test,200,0.45
rdwr_cc_read_page_test,200,0.45
rdwr_cc_write_large_test,200,0.12
rdwr_cc_read_large_test,200,0.11
rdwr_cc_write_page_test,300,0.66
rdwr_cc_read_page_test,300,0.59
rdwr_cc_write_large_test,300,0.19
rdwr_cc_read_large_test,300,0.19
rdwr_cc_write_page_test,400,0.89
rdwr_cc_read_page_test,400,0.86
rdwr_cc_write_large_test,400,0.25
rdwr_cc_read_large_test,400,0.25
rdwr_cc_write_page_test,500,1.11
rdwr_cc_read_page_test,500,0.91
rdwr_cc_write_large_test,500,0.31
rdwr_cc_read_large_test,500,0.25
rdwr_nc_write_page_test,100,1.81
rdwr_nc_read_page_test,100,1.88
rdwr_nc_write_large_test,100,0.14
rdwr_nc_read_large_test,100,0.16
rdwr_nc_write_page_test,200,3.66
rdwr_nc_read_page_test,200,3.77
rdwr_nc_write_large_test,200,0.30
rdwr_nc_read_large_test,200,0.30
rdwr_nc_write_page_test,300,5.42
rdwr_nc_read_page_test,300,5.66
rdwr_nc_write_large_test,300,0.44
rdwr_nc_read_large_test,300,0.47
rdwr_nc_write_page_test,400,7.28
rdwr_nc_read_page_test,400,7.58
rdwr_nc_write_large_test,400,0.58
rdwr_nc_read_large_test,400,0.61
rdwr_nc_write_page_test,500,9.08
rdwr_nc_read_page_test,500,9.56
rdwr_nc_write_large_test,500,0.81
rdwr_nc_read_large_test,500,0.78
mmap_write_test,100,0.01
mmap_read_test,100,0.06
mmap_write_test,200,0.03
mmap_read_test,200,0.11
mmap_write_test,300,0.05
mmap_read_test,300,0.17
mmap_write_test,400,0.05
mmap_read_test,400,0.22
mmap_write_test,500,0.06
mmap_read_test,500,0.27
1 file_create_test 1000 0.06
2 file_open_test 1000 0.06
3 file_overwrite_test 1000 0.06
4 file_attr_test 1000 0.03
5 file_list_test 1000 0.06
6 file_list_single_test 1000 0.12
7 file_list_none_test 1000 0.12
8 file_delete_test 1000 0.09
9 file_mkdir_test 1000 0.06
10 file_rmdir_test 1000 0.08
11 file_create_test 2000 0.14
12 file_open_test 2000 0.11
13 file_overwrite_test 2000 0.14
14 file_attr_test 2000 0.08
15 file_list_test 2000 0.16
16 file_list_single_test 2000 0.30
17 file_list_none_test 2000 0.25
18 file_delete_test 2000 0.17
19 file_mkdir_test 2000 0.14
20 file_rmdir_test 2000 0.17
21 file_create_test 3000 0.20
22 file_open_test 3000 0.16
23 file_overwrite_test 3000 0.20
24 file_attr_test 3000 0.12
25 file_list_test 3000 0.23
26 file_list_single_test 3000 0.44
27 file_list_none_test 3000 0.36
28 file_delete_test 3000 0.25
29 file_mkdir_test 3000 0.19
30 file_rmdir_test 3000 0.27
31 file_create_test 4000 0.28
32 file_open_test 4000 0.22
33 file_overwrite_test 4000 0.27
34 file_attr_test 4000 0.16
35 file_list_test 4000 0.31
36 file_list_single_test 4000 0.61
37 file_list_none_test 4000 0.52
38 file_delete_test 4000 0.34
39 file_mkdir_test 4000 0.25
40 file_rmdir_test 4000 0.36
41 file_create_test 5000 0.34
42 file_open_test 5000 0.27
43 file_overwrite_test 5000 0.33
44 file_attr_test 5000 0.22
45 file_list_test 5000 0.42
46 file_list_single_test 5000 0.80
47 file_list_none_test 5000 0.66
48 file_delete_test 5000 0.42
49 file_mkdir_test 5000 0.31
50 file_rmdir_test 5000 0.44
51 iter.file_open_test 10 0.55
52 iter.file_attr_test 10 0.41
53 iter.file_list_single_test 10 0.61
54 iter.file_list_none_test 10 0.61
55 iter.file_open_test 20 1.08
56 iter.file_attr_test 20 0.84
57 iter.file_list_single_test 20 1.25
58 iter.file_list_none_test 20 1.20
59 iter.file_open_test 30 1.62
60 iter.file_attr_test 30 1.30
61 iter.file_list_single_test 30 1.92
62 iter.file_list_none_test 30 1.83
63 iter.file_open_test 40 2.17
64 iter.file_attr_test 40 1.72
65 iter.file_list_single_test 40 2.52
66 iter.file_list_none_test 40 2.42
67 iter.file_open_test 50 2.77
68 iter.file_attr_test 50 2.14
69 iter.file_list_single_test 50 3.12
70 iter.file_list_none_test 50 2.98
71 rdwr_cc_write_page_test 100 0.23
72 rdwr_cc_read_page_test 100 0.23
73 rdwr_cc_write_large_test 100 0.06
74 rdwr_cc_read_large_test 100 0.06
75 rdwr_cc_write_page_test 200 0.45
76 rdwr_cc_read_page_test 200 0.45
77 rdwr_cc_write_large_test 200 0.12
78 rdwr_cc_read_large_test 200 0.11
79 rdwr_cc_write_page_test 300 0.66
80 rdwr_cc_read_page_test 300 0.59
81 rdwr_cc_write_large_test 300 0.19
82 rdwr_cc_read_large_test 300 0.19
83 rdwr_cc_write_page_test 400 0.89
84 rdwr_cc_read_page_test 400 0.86
85 rdwr_cc_write_large_test 400 0.25
86 rdwr_cc_read_large_test 400 0.25
87 rdwr_cc_write_page_test 500 1.11
88 rdwr_cc_read_page_test 500 0.91
89 rdwr_cc_write_large_test 500 0.31
90 rdwr_cc_read_large_test 500 0.25
91 rdwr_nc_write_page_test 100 1.81
92 rdwr_nc_read_page_test 100 1.88
93 rdwr_nc_write_large_test 100 0.14
94 rdwr_nc_read_large_test 100 0.16
95 rdwr_nc_write_page_test 200 3.66
96 rdwr_nc_read_page_test 200 3.77
97 rdwr_nc_write_large_test 200 0.30
98 rdwr_nc_read_large_test 200 0.30
99 rdwr_nc_write_page_test 300 5.42
100 rdwr_nc_read_page_test 300 5.66
101 rdwr_nc_write_large_test 300 0.44
102 rdwr_nc_read_large_test 300 0.47
103 rdwr_nc_write_page_test 400 7.28
104 rdwr_nc_read_page_test 400 7.58
105 rdwr_nc_write_large_test 400 0.58
106 rdwr_nc_read_large_test 400 0.61
107 rdwr_nc_write_page_test 500 9.08
108 rdwr_nc_read_page_test 500 9.56
109 rdwr_nc_write_large_test 500 0.81
110 rdwr_nc_read_large_test 500 0.78
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.06
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.11
115 mmap_write_test 300 0.05
116 mmap_read_test 300 0.17
117 mmap_write_test 400 0.05
118 mmap_read_test 400 0.22
119 mmap_write_test 500 0.06
120 mmap_read_test 500 0.27

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.06
file_open_test,1000,0.05
file_overwrite_test,1000,0.06
file_attr_test,1000,0.03
file_list_test,1000,0.06
file_list_single_test,1000,0.12
file_list_none_test,1000,0.12
file_delete_test,1000,0.08
file_mkdir_test,1000,0.06
file_rmdir_test,1000,0.08
file_create_test,2000,0.14
file_open_test,2000,0.11
file_overwrite_test,2000,0.14
file_attr_test,2000,0.08
file_list_test,2000,0.14
file_list_single_test,2000,0.30
file_list_none_test,2000,0.27
file_delete_test,2000,0.17
file_mkdir_test,2000,0.14
file_rmdir_test,2000,0.17
file_create_test,3000,0.22
file_open_test,3000,0.16
file_overwrite_test,3000,0.20
file_attr_test,3000,0.12
file_list_test,3000,0.23
file_list_single_test,3000,0.47
file_list_none_test,3000,0.38
file_delete_test,3000,0.27
file_mkdir_test,3000,0.20
file_rmdir_test,3000,0.28
file_create_test,4000,0.42
file_open_test,4000,0.25
file_overwrite_test,4000,0.27
file_attr_test,4000,0.17
file_list_test,4000,0.34
file_list_single_test,4000,0.61
file_list_none_test,4000,0.52
file_delete_test,4000,0.34
file_mkdir_test,4000,0.25
file_rmdir_test,4000,0.36
file_create_test,5000,0.36
file_open_test,5000,0.28
file_overwrite_test,5000,0.34
file_attr_test,5000,0.22
file_list_test,5000,0.44
file_list_single_test,5000,0.78
file_list_none_test,5000,0.64
file_delete_test,5000,0.44
file_mkdir_test,5000,0.31
file_rmdir_test,5000,0.45
iter.file_open_test,10,0.55
iter.file_attr_test,10,0.42
iter.file_list_single_test,10,0.66
iter.file_list_none_test,10,0.61
iter.file_open_test,20,1.08
iter.file_attr_test,20,0.86
iter.file_list_single_test,20,1.26
iter.file_list_none_test,20,1.17
iter.file_open_test,30,1.61
iter.file_attr_test,30,1.28
iter.file_list_single_test,30,1.91
iter.file_list_none_test,30,1.81
iter.file_open_test,40,2.17
iter.file_attr_test,40,1.70
iter.file_list_single_test,40,2.61
iter.file_list_none_test,40,2.41
iter.file_open_test,50,2.70
iter.file_attr_test,50,2.09
iter.file_list_single_test,50,3.17
iter.file_list_none_test,50,2.94
rdwr_cc_write_page_test,100,0.23
rdwr_cc_read_page_test,100,0.22
rdwr_cc_write_large_test,100,0.06
rdwr_cc_read_large_test,100,0.06
rdwr_cc_write_page_test,200,0.44
rdwr_cc_read_page_test,200,0.45
rdwr_cc_write_large_test,200,0.12
rdwr_cc_read_large_test,200,0.12
rdwr_cc_write_page_test,300,0.66
rdwr_cc_read_page_test,300,0.64
rdwr_cc_write_large_test,300,0.19
rdwr_cc_read_large_test,300,0.17
rdwr_cc_write_page_test,400,0.87
rdwr_cc_read_page_test,400,0.73
rdwr_cc_write_large_test,400,0.25
rdwr_cc_read_large_test,400,0.31
rdwr_cc_write_page_test,500,1.09
rdwr_cc_read_page_test,500,1.02
rdwr_cc_write_large_test,500,0.31
rdwr_cc_read_large_test,500,0.39
rdwr_nc_write_page_test,100,1.83
rdwr_nc_read_page_test,100,1.86
rdwr_nc_write_large_test,100,0.16
rdwr_nc_read_large_test,100,0.16
rdwr_nc_write_page_test,200,3.61
rdwr_nc_read_page_test,200,3.81
rdwr_nc_write_large_test,200,0.30
rdwr_nc_read_large_test,200,0.31
rdwr_nc_write_page_test,300,5.50
rdwr_nc_read_page_test,300,5.72
rdwr_nc_write_large_test,300,0.44
rdwr_nc_read_large_test,300,0.47
rdwr_nc_write_page_test,400,7.31
rdwr_nc_read_page_test,400,7.45
rdwr_nc_write_large_test,400,0.59
rdwr_nc_read_large_test,400,0.61
rdwr_nc_write_page_test,500,9.00
rdwr_nc_read_page_test,500,9.42
rdwr_nc_write_large_test,500,0.73
rdwr_nc_read_large_test,500,0.77
mmap_write_test,100,0.01
mmap_read_test,100,0.06
mmap_write_test,200,0.03
mmap_read_test,200,0.11
mmap_write_test,300,0.03
mmap_read_test,300,0.16
mmap_write_test,400,0.05
mmap_read_test,400,0.22
mmap_write_test,500,0.06
mmap_read_test,500,0.27
1 file_create_test 1000 0.06
2 file_open_test 1000 0.05
3 file_overwrite_test 1000 0.06
4 file_attr_test 1000 0.03
5 file_list_test 1000 0.06
6 file_list_single_test 1000 0.12
7 file_list_none_test 1000 0.12
8 file_delete_test 1000 0.08
9 file_mkdir_test 1000 0.06
10 file_rmdir_test 1000 0.08
11 file_create_test 2000 0.14
12 file_open_test 2000 0.11
13 file_overwrite_test 2000 0.14
14 file_attr_test 2000 0.08
15 file_list_test 2000 0.14
16 file_list_single_test 2000 0.30
17 file_list_none_test 2000 0.27
18 file_delete_test 2000 0.17
19 file_mkdir_test 2000 0.14
20 file_rmdir_test 2000 0.17
21 file_create_test 3000 0.22
22 file_open_test 3000 0.16
23 file_overwrite_test 3000 0.20
24 file_attr_test 3000 0.12
25 file_list_test 3000 0.23
26 file_list_single_test 3000 0.47
27 file_list_none_test 3000 0.38
28 file_delete_test 3000 0.27
29 file_mkdir_test 3000 0.20
30 file_rmdir_test 3000 0.28
31 file_create_test 4000 0.42
32 file_open_test 4000 0.25
33 file_overwrite_test 4000 0.27
34 file_attr_test 4000 0.17
35 file_list_test 4000 0.34
36 file_list_single_test 4000 0.61
37 file_list_none_test 4000 0.52
38 file_delete_test 4000 0.34
39 file_mkdir_test 4000 0.25
40 file_rmdir_test 4000 0.36
41 file_create_test 5000 0.36
42 file_open_test 5000 0.28
43 file_overwrite_test 5000 0.34
44 file_attr_test 5000 0.22
45 file_list_test 5000 0.44
46 file_list_single_test 5000 0.78
47 file_list_none_test 5000 0.64
48 file_delete_test 5000 0.44
49 file_mkdir_test 5000 0.31
50 file_rmdir_test 5000 0.45
51 iter.file_open_test 10 0.55
52 iter.file_attr_test 10 0.42
53 iter.file_list_single_test 10 0.66
54 iter.file_list_none_test 10 0.61
55 iter.file_open_test 20 1.08
56 iter.file_attr_test 20 0.86
57 iter.file_list_single_test 20 1.26
58 iter.file_list_none_test 20 1.17
59 iter.file_open_test 30 1.61
60 iter.file_attr_test 30 1.28
61 iter.file_list_single_test 30 1.91
62 iter.file_list_none_test 30 1.81
63 iter.file_open_test 40 2.17
64 iter.file_attr_test 40 1.70
65 iter.file_list_single_test 40 2.61
66 iter.file_list_none_test 40 2.41
67 iter.file_open_test 50 2.70
68 iter.file_attr_test 50 2.09
69 iter.file_list_single_test 50 3.17
70 iter.file_list_none_test 50 2.94
71 rdwr_cc_write_page_test 100 0.23
72 rdwr_cc_read_page_test 100 0.22
73 rdwr_cc_write_large_test 100 0.06
74 rdwr_cc_read_large_test 100 0.06
75 rdwr_cc_write_page_test 200 0.44
76 rdwr_cc_read_page_test 200 0.45
77 rdwr_cc_write_large_test 200 0.12
78 rdwr_cc_read_large_test 200 0.12
79 rdwr_cc_write_page_test 300 0.66
80 rdwr_cc_read_page_test 300 0.64
81 rdwr_cc_write_large_test 300 0.19
82 rdwr_cc_read_large_test 300 0.17
83 rdwr_cc_write_page_test 400 0.87
84 rdwr_cc_read_page_test 400 0.73
85 rdwr_cc_write_large_test 400 0.25
86 rdwr_cc_read_large_test 400 0.31
87 rdwr_cc_write_page_test 500 1.09
88 rdwr_cc_read_page_test 500 1.02
89 rdwr_cc_write_large_test 500 0.31
90 rdwr_cc_read_large_test 500 0.39
91 rdwr_nc_write_page_test 100 1.83
92 rdwr_nc_read_page_test 100 1.86
93 rdwr_nc_write_large_test 100 0.16
94 rdwr_nc_read_large_test 100 0.16
95 rdwr_nc_write_page_test 200 3.61
96 rdwr_nc_read_page_test 200 3.81
97 rdwr_nc_write_large_test 200 0.30
98 rdwr_nc_read_large_test 200 0.31
99 rdwr_nc_write_page_test 300 5.50
100 rdwr_nc_read_page_test 300 5.72
101 rdwr_nc_write_large_test 300 0.44
102 rdwr_nc_read_large_test 300 0.47
103 rdwr_nc_write_page_test 400 7.31
104 rdwr_nc_read_page_test 400 7.45
105 rdwr_nc_write_large_test 400 0.59
106 rdwr_nc_read_large_test 400 0.61
107 rdwr_nc_write_page_test 500 9.00
108 rdwr_nc_read_page_test 500 9.42
109 rdwr_nc_write_large_test 500 0.73
110 rdwr_nc_read_large_test 500 0.77
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.06
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.11
115 mmap_write_test 300 0.03
116 mmap_read_test 300 0.16
117 mmap_write_test 400 0.05
118 mmap_read_test 400 0.22
119 mmap_write_test 500 0.06
120 mmap_read_test 500 0.27

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.06
file_open_test,1000,0.05
file_overwrite_test,1000,0.06
file_attr_test,1000,0.03
file_list_test,1000,0.05
file_list_single_test,1000,0.14
file_list_none_test,1000,0.12
file_delete_test,1000,0.08
file_mkdir_test,1000,0.06
file_rmdir_test,1000,0.08
file_create_test,2000,0.14
file_open_test,2000,0.11
file_overwrite_test,2000,0.14
file_attr_test,2000,0.09
file_list_test,2000,0.14
file_list_single_test,2000,0.28
file_list_none_test,2000,0.25
file_delete_test,2000,0.17
file_mkdir_test,2000,0.12
file_rmdir_test,2000,0.17
file_create_test,3000,0.20
file_open_test,3000,0.17
file_overwrite_test,3000,0.20
file_attr_test,3000,0.14
file_list_test,3000,0.25
file_list_single_test,3000,0.44
file_list_none_test,3000,0.36
file_delete_test,3000,0.27
file_mkdir_test,3000,0.19
file_rmdir_test,3000,0.27
file_create_test,4000,0.28
file_open_test,4000,0.22
file_overwrite_test,4000,0.28
file_attr_test,4000,0.17
file_list_test,4000,0.33
file_list_single_test,4000,0.59
file_list_none_test,4000,0.50
file_delete_test,4000,0.34
file_mkdir_test,4000,0.27
file_rmdir_test,4000,0.36
file_create_test,5000,0.37
file_open_test,5000,0.27
file_overwrite_test,5000,0.36
file_attr_test,5000,0.22
file_list_test,5000,0.42
file_list_single_test,5000,0.75
file_list_none_test,5000,0.62
file_delete_test,5000,0.48
file_mkdir_test,5000,0.34
file_rmdir_test,5000,0.45
iter.file_open_test,10,0.53
iter.file_attr_test,10,0.42
iter.file_list_single_test,10,0.61
iter.file_list_none_test,10,0.61
iter.file_open_test,20,1.08
iter.file_attr_test,20,0.81
iter.file_list_single_test,20,1.20
iter.file_list_none_test,20,1.16
iter.file_open_test,30,1.61
iter.file_attr_test,30,1.25
iter.file_list_single_test,30,1.88
iter.file_list_none_test,30,1.81
iter.file_open_test,40,2.14
iter.file_attr_test,40,1.91
iter.file_list_single_test,40,2.66
iter.file_list_none_test,40,2.48
iter.file_open_test,50,2.73
iter.file_attr_test,50,2.14
iter.file_list_single_test,50,3.16
iter.file_list_none_test,50,3.08
rdwr_cc_write_page_test,100,0.23
rdwr_cc_read_page_test,100,0.22
rdwr_cc_write_large_test,100,0.06
rdwr_cc_read_large_test,100,0.06
rdwr_cc_write_page_test,200,0.45
rdwr_cc_read_page_test,200,0.41
rdwr_cc_write_large_test,200,0.12
rdwr_cc_read_large_test,200,0.11
rdwr_cc_write_page_test,300,0.67
rdwr_cc_read_page_test,300,0.62
rdwr_cc_write_large_test,300,0.19
rdwr_cc_read_large_test,300,0.23
rdwr_cc_write_page_test,400,0.87
rdwr_cc_read_page_test,400,0.94
rdwr_cc_write_large_test,400,0.25
rdwr_cc_read_large_test,400,0.33
rdwr_cc_write_page_test,500,1.09
rdwr_cc_read_page_test,500,1.12
rdwr_cc_write_large_test,500,0.31
rdwr_cc_read_large_test,500,0.44
rdwr_nc_write_page_test,100,1.86
rdwr_nc_read_page_test,100,1.94
rdwr_nc_write_large_test,100,0.16
rdwr_nc_read_large_test,100,0.16
rdwr_nc_write_page_test,200,3.66
rdwr_nc_read_page_test,200,3.83
rdwr_nc_write_large_test,200,0.28
rdwr_nc_read_large_test,200,0.30
rdwr_nc_write_page_test,300,5.42
rdwr_nc_read_page_test,300,5.86
rdwr_nc_write_large_test,300,0.45
rdwr_nc_read_large_test,300,0.45
rdwr_nc_write_page_test,400,7.36
rdwr_nc_read_page_test,400,7.56
rdwr_nc_write_large_test,400,0.58
rdwr_nc_read_large_test,400,0.61
rdwr_nc_write_page_test,500,9.09
rdwr_nc_read_page_test,500,9.45
rdwr_nc_write_large_test,500,0.73
rdwr_nc_read_large_test,500,0.75
mmap_write_test,100,0.01
mmap_read_test,100,0.06
mmap_write_test,200,0.03
mmap_read_test,200,0.11
mmap_write_test,300,0.05
mmap_read_test,300,0.16
mmap_write_test,400,0.05
mmap_read_test,400,0.22
mmap_write_test,500,0.06
mmap_read_test,500,0.27
1 file_create_test 1000 0.06
2 file_open_test 1000 0.05
3 file_overwrite_test 1000 0.06
4 file_attr_test 1000 0.03
5 file_list_test 1000 0.05
6 file_list_single_test 1000 0.14
7 file_list_none_test 1000 0.12
8 file_delete_test 1000 0.08
9 file_mkdir_test 1000 0.06
10 file_rmdir_test 1000 0.08
11 file_create_test 2000 0.14
12 file_open_test 2000 0.11
13 file_overwrite_test 2000 0.14
14 file_attr_test 2000 0.09
15 file_list_test 2000 0.14
16 file_list_single_test 2000 0.28
17 file_list_none_test 2000 0.25
18 file_delete_test 2000 0.17
19 file_mkdir_test 2000 0.12
20 file_rmdir_test 2000 0.17
21 file_create_test 3000 0.20
22 file_open_test 3000 0.17
23 file_overwrite_test 3000 0.20
24 file_attr_test 3000 0.14
25 file_list_test 3000 0.25
26 file_list_single_test 3000 0.44
27 file_list_none_test 3000 0.36
28 file_delete_test 3000 0.27
29 file_mkdir_test 3000 0.19
30 file_rmdir_test 3000 0.27
31 file_create_test 4000 0.28
32 file_open_test 4000 0.22
33 file_overwrite_test 4000 0.28
34 file_attr_test 4000 0.17
35 file_list_test 4000 0.33
36 file_list_single_test 4000 0.59
37 file_list_none_test 4000 0.50
38 file_delete_test 4000 0.34
39 file_mkdir_test 4000 0.27
40 file_rmdir_test 4000 0.36
41 file_create_test 5000 0.37
42 file_open_test 5000 0.27
43 file_overwrite_test 5000 0.36
44 file_attr_test 5000 0.22
45 file_list_test 5000 0.42
46 file_list_single_test 5000 0.75
47 file_list_none_test 5000 0.62
48 file_delete_test 5000 0.48
49 file_mkdir_test 5000 0.34
50 file_rmdir_test 5000 0.45
51 iter.file_open_test 10 0.53
52 iter.file_attr_test 10 0.42
53 iter.file_list_single_test 10 0.61
54 iter.file_list_none_test 10 0.61
55 iter.file_open_test 20 1.08
56 iter.file_attr_test 20 0.81
57 iter.file_list_single_test 20 1.20
58 iter.file_list_none_test 20 1.16
59 iter.file_open_test 30 1.61
60 iter.file_attr_test 30 1.25
61 iter.file_list_single_test 30 1.88
62 iter.file_list_none_test 30 1.81
63 iter.file_open_test 40 2.14
64 iter.file_attr_test 40 1.91
65 iter.file_list_single_test 40 2.66
66 iter.file_list_none_test 40 2.48
67 iter.file_open_test 50 2.73
68 iter.file_attr_test 50 2.14
69 iter.file_list_single_test 50 3.16
70 iter.file_list_none_test 50 3.08
71 rdwr_cc_write_page_test 100 0.23
72 rdwr_cc_read_page_test 100 0.22
73 rdwr_cc_write_large_test 100 0.06
74 rdwr_cc_read_large_test 100 0.06
75 rdwr_cc_write_page_test 200 0.45
76 rdwr_cc_read_page_test 200 0.41
77 rdwr_cc_write_large_test 200 0.12
78 rdwr_cc_read_large_test 200 0.11
79 rdwr_cc_write_page_test 300 0.67
80 rdwr_cc_read_page_test 300 0.62
81 rdwr_cc_write_large_test 300 0.19
82 rdwr_cc_read_large_test 300 0.23
83 rdwr_cc_write_page_test 400 0.87
84 rdwr_cc_read_page_test 400 0.94
85 rdwr_cc_write_large_test 400 0.25
86 rdwr_cc_read_large_test 400 0.33
87 rdwr_cc_write_page_test 500 1.09
88 rdwr_cc_read_page_test 500 1.12
89 rdwr_cc_write_large_test 500 0.31
90 rdwr_cc_read_large_test 500 0.44
91 rdwr_nc_write_page_test 100 1.86
92 rdwr_nc_read_page_test 100 1.94
93 rdwr_nc_write_large_test 100 0.16
94 rdwr_nc_read_large_test 100 0.16
95 rdwr_nc_write_page_test 200 3.66
96 rdwr_nc_read_page_test 200 3.83
97 rdwr_nc_write_large_test 200 0.28
98 rdwr_nc_read_large_test 200 0.30
99 rdwr_nc_write_page_test 300 5.42
100 rdwr_nc_read_page_test 300 5.86
101 rdwr_nc_write_large_test 300 0.45
102 rdwr_nc_read_large_test 300 0.45
103 rdwr_nc_write_page_test 400 7.36
104 rdwr_nc_read_page_test 400 7.56
105 rdwr_nc_write_large_test 400 0.58
106 rdwr_nc_read_large_test 400 0.61
107 rdwr_nc_write_page_test 500 9.09
108 rdwr_nc_read_page_test 500 9.45
109 rdwr_nc_write_large_test 500 0.73
110 rdwr_nc_read_large_test 500 0.75
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.06
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.11
115 mmap_write_test 300 0.05
116 mmap_read_test 300 0.16
117 mmap_write_test 400 0.05
118 mmap_read_test 400 0.22
119 mmap_write_test 500 0.06
120 mmap_read_test 500 0.27

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.20
file_open_test,1000,0.09
file_overwrite_test,1000,0.16
file_attr_test,1000,0.08
file_list_test,1000,0.11
file_list_single_test,1000,0.08
file_list_none_test,1000,0.03
file_delete_test,1000,0.14
file_mkdir_test,1000,0.14
file_rmdir_test,1000,0.12
file_create_test,2000,0.45
file_open_test,2000,0.19
file_overwrite_test,2000,0.38
file_attr_test,2000,0.17
file_list_test,2000,0.22
file_list_single_test,2000,0.16
file_list_none_test,2000,0.06
file_delete_test,2000,0.31
file_mkdir_test,2000,0.30
file_rmdir_test,2000,0.28
file_create_test,3000,0.64
file_open_test,3000,0.28
file_overwrite_test,3000,0.55
file_attr_test,3000,0.25
file_list_test,3000,0.36
file_list_single_test,3000,0.25
file_list_none_test,3000,0.08
file_delete_test,3000,0.50
file_mkdir_test,3000,0.47
file_rmdir_test,3000,0.42
file_create_test,4000,0.83
file_open_test,4000,0.36
file_overwrite_test,4000,0.73
file_attr_test,4000,0.33
file_list_test,4000,0.45
file_list_single_test,4000,0.33
file_list_none_test,4000,0.11
file_delete_test,4000,0.64
file_mkdir_test,4000,0.64
file_rmdir_test,4000,0.53
file_create_test,5000,1.03
file_open_test,5000,0.44
file_overwrite_test,5000,0.92
file_attr_test,5000,0.38
file_list_test,5000,0.56
file_list_single_test,5000,0.39
file_list_none_test,5000,0.14
file_delete_test,5000,0.80
file_mkdir_test,5000,0.73
file_rmdir_test,5000,0.64
iter.file_open_test,10,0.25
iter.file_attr_test,10,0.19
iter.file_list_single_test,10,0.34
iter.file_list_none_test,10,0.27
iter.file_open_test,20,0.42
iter.file_attr_test,20,0.33
iter.file_list_single_test,20,0.59
iter.file_list_none_test,20,0.53
iter.file_open_test,30,0.64
iter.file_attr_test,30,0.50
iter.file_list_single_test,30,0.95
iter.file_list_none_test,30,0.77
iter.file_open_test,40,0.78
iter.file_attr_test,40,0.61
iter.file_list_single_test,40,1.19
iter.file_list_none_test,40,1.03
iter.file_open_test,50,0.98
iter.file_attr_test,50,0.73
iter.file_list_single_test,50,1.47
iter.file_list_none_test,50,1.27
rdwr_cc_write_page_test,100,0.28
rdwr_cc_read_page_test,100,0.27
rdwr_cc_write_large_test,100,0.08
rdwr_cc_read_large_test,100,0.09
rdwr_cc_write_page_test,200,0.56
rdwr_cc_read_page_test,200,0.47
rdwr_cc_write_large_test,200,0.16
rdwr_cc_read_large_test,200,0.20
rdwr_cc_write_page_test,300,0.86
rdwr_cc_read_page_test,300,0.73
rdwr_cc_write_large_test,300,0.23
rdwr_cc_read_large_test,300,0.25
rdwr_cc_write_page_test,400,1.11
rdwr_cc_read_page_test,400,0.95
rdwr_cc_write_large_test,400,0.30
rdwr_cc_read_large_test,400,0.30
rdwr_cc_write_page_test,500,1.39
rdwr_cc_read_page_test,500,1.16
rdwr_cc_write_large_test,500,0.39
rdwr_cc_read_large_test,500,0.33
rdwr_nc_write_page_test,100,4.94
rdwr_nc_read_page_test,100,4.55
rdwr_nc_write_large_test,100,0.48
rdwr_nc_read_large_test,100,0.58
rdwr_nc_write_page_test,200,9.84
rdwr_nc_read_page_test,200,9.17
rdwr_nc_write_large_test,200,0.98
rdwr_nc_read_large_test,200,1.14
rdwr_nc_write_page_test,300,14.62
rdwr_nc_read_page_test,300,13.78
rdwr_nc_write_large_test,300,1.42
rdwr_nc_read_large_test,300,1.74
rdwr_nc_write_page_test,400,19.27
rdwr_nc_read_page_test,400,17.14
rdwr_nc_write_large_test,400,1.89
rdwr_nc_read_large_test,400,2.78
rdwr_nc_write_page_test,500,23.80
rdwr_nc_read_page_test,500,21.61
rdwr_nc_write_large_test,500,2.28
rdwr_nc_read_large_test,500,3.98
mmap_write_test,100,0.01
mmap_read_test,100,0.08
mmap_write_test,200,0.03
mmap_read_test,200,0.12
mmap_write_test,300,0.05
mmap_read_test,300,0.17
mmap_write_test,400,0.05
mmap_read_test,400,0.22
mmap_write_test,500,0.06
mmap_read_test,500,0.27
1 file_create_test 1000 0.20
2 file_open_test 1000 0.09
3 file_overwrite_test 1000 0.16
4 file_attr_test 1000 0.08
5 file_list_test 1000 0.11
6 file_list_single_test 1000 0.08
7 file_list_none_test 1000 0.03
8 file_delete_test 1000 0.14
9 file_mkdir_test 1000 0.14
10 file_rmdir_test 1000 0.12
11 file_create_test 2000 0.45
12 file_open_test 2000 0.19
13 file_overwrite_test 2000 0.38
14 file_attr_test 2000 0.17
15 file_list_test 2000 0.22
16 file_list_single_test 2000 0.16
17 file_list_none_test 2000 0.06
18 file_delete_test 2000 0.31
19 file_mkdir_test 2000 0.30
20 file_rmdir_test 2000 0.28
21 file_create_test 3000 0.64
22 file_open_test 3000 0.28
23 file_overwrite_test 3000 0.55
24 file_attr_test 3000 0.25
25 file_list_test 3000 0.36
26 file_list_single_test 3000 0.25
27 file_list_none_test 3000 0.08
28 file_delete_test 3000 0.50
29 file_mkdir_test 3000 0.47
30 file_rmdir_test 3000 0.42
31 file_create_test 4000 0.83
32 file_open_test 4000 0.36
33 file_overwrite_test 4000 0.73
34 file_attr_test 4000 0.33
35 file_list_test 4000 0.45
36 file_list_single_test 4000 0.33
37 file_list_none_test 4000 0.11
38 file_delete_test 4000 0.64
39 file_mkdir_test 4000 0.64
40 file_rmdir_test 4000 0.53
41 file_create_test 5000 1.03
42 file_open_test 5000 0.44
43 file_overwrite_test 5000 0.92
44 file_attr_test 5000 0.38
45 file_list_test 5000 0.56
46 file_list_single_test 5000 0.39
47 file_list_none_test 5000 0.14
48 file_delete_test 5000 0.80
49 file_mkdir_test 5000 0.73
50 file_rmdir_test 5000 0.64
51 iter.file_open_test 10 0.25
52 iter.file_attr_test 10 0.19
53 iter.file_list_single_test 10 0.34
54 iter.file_list_none_test 10 0.27
55 iter.file_open_test 20 0.42
56 iter.file_attr_test 20 0.33
57 iter.file_list_single_test 20 0.59
58 iter.file_list_none_test 20 0.53
59 iter.file_open_test 30 0.64
60 iter.file_attr_test 30 0.50
61 iter.file_list_single_test 30 0.95
62 iter.file_list_none_test 30 0.77
63 iter.file_open_test 40 0.78
64 iter.file_attr_test 40 0.61
65 iter.file_list_single_test 40 1.19
66 iter.file_list_none_test 40 1.03
67 iter.file_open_test 50 0.98
68 iter.file_attr_test 50 0.73
69 iter.file_list_single_test 50 1.47
70 iter.file_list_none_test 50 1.27
71 rdwr_cc_write_page_test 100 0.28
72 rdwr_cc_read_page_test 100 0.27
73 rdwr_cc_write_large_test 100 0.08
74 rdwr_cc_read_large_test 100 0.09
75 rdwr_cc_write_page_test 200 0.56
76 rdwr_cc_read_page_test 200 0.47
77 rdwr_cc_write_large_test 200 0.16
78 rdwr_cc_read_large_test 200 0.20
79 rdwr_cc_write_page_test 300 0.86
80 rdwr_cc_read_page_test 300 0.73
81 rdwr_cc_write_large_test 300 0.23
82 rdwr_cc_read_large_test 300 0.25
83 rdwr_cc_write_page_test 400 1.11
84 rdwr_cc_read_page_test 400 0.95
85 rdwr_cc_write_large_test 400 0.30
86 rdwr_cc_read_large_test 400 0.30
87 rdwr_cc_write_page_test 500 1.39
88 rdwr_cc_read_page_test 500 1.16
89 rdwr_cc_write_large_test 500 0.39
90 rdwr_cc_read_large_test 500 0.33
91 rdwr_nc_write_page_test 100 4.94
92 rdwr_nc_read_page_test 100 4.55
93 rdwr_nc_write_large_test 100 0.48
94 rdwr_nc_read_large_test 100 0.58
95 rdwr_nc_write_page_test 200 9.84
96 rdwr_nc_read_page_test 200 9.17
97 rdwr_nc_write_large_test 200 0.98
98 rdwr_nc_read_large_test 200 1.14
99 rdwr_nc_write_page_test 300 14.62
100 rdwr_nc_read_page_test 300 13.78
101 rdwr_nc_write_large_test 300 1.42
102 rdwr_nc_read_large_test 300 1.74
103 rdwr_nc_write_page_test 400 19.27
104 rdwr_nc_read_page_test 400 17.14
105 rdwr_nc_write_large_test 400 1.89
106 rdwr_nc_read_large_test 400 2.78
107 rdwr_nc_write_page_test 500 23.80
108 rdwr_nc_read_page_test 500 21.61
109 rdwr_nc_write_large_test 500 2.28
110 rdwr_nc_read_large_test 500 3.98
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.08
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.12
115 mmap_write_test 300 0.05
116 mmap_read_test 300 0.17
117 mmap_write_test 400 0.05
118 mmap_read_test 400 0.22
119 mmap_write_test 500 0.06
120 mmap_read_test 500 0.27

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.20
file_open_test,1000,0.09
file_overwrite_test,1000,0.17
file_attr_test,1000,0.08
file_list_test,1000,0.11
file_list_single_test,1000,0.08
file_list_none_test,1000,0.03
file_delete_test,1000,0.16
file_mkdir_test,1000,0.14
file_rmdir_test,1000,0.12
file_create_test,2000,0.42
file_open_test,2000,0.19
file_overwrite_test,2000,0.41
file_attr_test,2000,0.17
file_list_test,2000,0.22
file_list_single_test,2000,0.17
file_list_none_test,2000,0.06
file_delete_test,2000,0.34
file_mkdir_test,2000,0.33
file_rmdir_test,2000,0.28
file_create_test,3000,0.66
file_open_test,3000,0.30
file_overwrite_test,3000,0.59
file_attr_test,3000,0.27
file_list_test,3000,0.36
file_list_single_test,3000,0.28
file_list_none_test,3000,0.09
file_delete_test,3000,0.52
file_mkdir_test,3000,0.48
file_rmdir_test,3000,0.41
file_create_test,4000,0.89
file_open_test,4000,0.36
file_overwrite_test,4000,0.72
file_attr_test,4000,0.34
file_list_test,4000,0.47
file_list_single_test,4000,0.33
file_list_none_test,4000,0.11
file_delete_test,4000,0.66
file_mkdir_test,4000,0.61
file_rmdir_test,4000,0.56
file_create_test,5000,1.01
file_open_test,5000,0.44
file_overwrite_test,5000,0.89
file_attr_test,5000,0.39
file_list_test,5000,0.56
file_list_single_test,5000,0.39
file_list_none_test,5000,0.14
file_delete_test,5000,0.78
file_mkdir_test,5000,0.73
file_rmdir_test,5000,0.64
iter.file_open_test,10,0.25
iter.file_attr_test,10,0.19
iter.file_list_single_test,10,0.33
iter.file_list_none_test,10,0.25
iter.file_open_test,20,0.44
iter.file_attr_test,20,0.33
iter.file_list_single_test,20,0.61
iter.file_list_none_test,20,0.52
iter.file_open_test,30,0.59
iter.file_attr_test,30,0.47
iter.file_list_single_test,30,0.89
iter.file_list_none_test,30,0.81
iter.file_open_test,40,0.84
iter.file_attr_test,40,0.67
iter.file_list_single_test,40,1.17
iter.file_list_none_test,40,1.00
iter.file_open_test,50,0.97
iter.file_attr_test,50,0.73
iter.file_list_single_test,50,1.45
iter.file_list_none_test,50,1.28
rdwr_cc_write_page_test,100,0.25
rdwr_cc_read_page_test,100,0.23
rdwr_cc_write_large_test,100,0.06
rdwr_cc_read_large_test,100,0.08
rdwr_cc_write_page_test,200,0.50
rdwr_cc_read_page_test,200,0.45
rdwr_cc_write_large_test,200,0.12
rdwr_cc_read_large_test,200,0.14
rdwr_cc_write_page_test,300,0.73
rdwr_cc_read_page_test,300,0.70
rdwr_cc_write_large_test,300,0.19
rdwr_cc_read_large_test,300,0.25
rdwr_cc_write_page_test,400,0.98
rdwr_cc_read_page_test,400,0.91
rdwr_cc_write_large_test,400,0.27
rdwr_cc_read_large_test,400,0.34
rdwr_cc_write_page_test,500,1.22
rdwr_cc_read_page_test,500,1.14
rdwr_cc_write_large_test,500,0.33
rdwr_cc_read_large_test,500,0.30
rdwr_nc_write_page_test,100,4.78
rdwr_nc_read_page_test,100,4.28
rdwr_nc_write_large_test,100,0.48
rdwr_nc_read_large_test,100,0.59
rdwr_nc_write_page_test,200,9.44
rdwr_nc_read_page_test,200,8.78
rdwr_nc_write_large_test,200,0.94
rdwr_nc_read_large_test,200,1.16
rdwr_nc_write_page_test,300,14.53
rdwr_nc_read_page_test,300,13.44
rdwr_nc_write_large_test,300,1.50
rdwr_nc_read_large_test,300,1.73
rdwr_nc_write_page_test,400,19.16
rdwr_nc_read_page_test,400,17.14
rdwr_nc_write_large_test,400,1.86
rdwr_nc_read_large_test,400,2.66
rdwr_nc_write_page_test,500,23.55
rdwr_nc_read_page_test,500,21.91
rdwr_nc_write_large_test,500,2.39
rdwr_nc_read_large_test,500,3.36
mmap_write_test,100,0.01
mmap_read_test,100,0.06
mmap_write_test,200,0.03
mmap_read_test,200,0.12
mmap_write_test,300,0.05
mmap_read_test,300,0.19
mmap_write_test,400,0.05
mmap_read_test,400,0.23
mmap_write_test,500,0.08
mmap_read_test,500,0.28
1 file_create_test 1000 0.20
2 file_open_test 1000 0.09
3 file_overwrite_test 1000 0.17
4 file_attr_test 1000 0.08
5 file_list_test 1000 0.11
6 file_list_single_test 1000 0.08
7 file_list_none_test 1000 0.03
8 file_delete_test 1000 0.16
9 file_mkdir_test 1000 0.14
10 file_rmdir_test 1000 0.12
11 file_create_test 2000 0.42
12 file_open_test 2000 0.19
13 file_overwrite_test 2000 0.41
14 file_attr_test 2000 0.17
15 file_list_test 2000 0.22
16 file_list_single_test 2000 0.17
17 file_list_none_test 2000 0.06
18 file_delete_test 2000 0.34
19 file_mkdir_test 2000 0.33
20 file_rmdir_test 2000 0.28
21 file_create_test 3000 0.66
22 file_open_test 3000 0.30
23 file_overwrite_test 3000 0.59
24 file_attr_test 3000 0.27
25 file_list_test 3000 0.36
26 file_list_single_test 3000 0.28
27 file_list_none_test 3000 0.09
28 file_delete_test 3000 0.52
29 file_mkdir_test 3000 0.48
30 file_rmdir_test 3000 0.41
31 file_create_test 4000 0.89
32 file_open_test 4000 0.36
33 file_overwrite_test 4000 0.72
34 file_attr_test 4000 0.34
35 file_list_test 4000 0.47
36 file_list_single_test 4000 0.33
37 file_list_none_test 4000 0.11
38 file_delete_test 4000 0.66
39 file_mkdir_test 4000 0.61
40 file_rmdir_test 4000 0.56
41 file_create_test 5000 1.01
42 file_open_test 5000 0.44
43 file_overwrite_test 5000 0.89
44 file_attr_test 5000 0.39
45 file_list_test 5000 0.56
46 file_list_single_test 5000 0.39
47 file_list_none_test 5000 0.14
48 file_delete_test 5000 0.78
49 file_mkdir_test 5000 0.73
50 file_rmdir_test 5000 0.64
51 iter.file_open_test 10 0.25
52 iter.file_attr_test 10 0.19
53 iter.file_list_single_test 10 0.33
54 iter.file_list_none_test 10 0.25
55 iter.file_open_test 20 0.44
56 iter.file_attr_test 20 0.33
57 iter.file_list_single_test 20 0.61
58 iter.file_list_none_test 20 0.52
59 iter.file_open_test 30 0.59
60 iter.file_attr_test 30 0.47
61 iter.file_list_single_test 30 0.89
62 iter.file_list_none_test 30 0.81
63 iter.file_open_test 40 0.84
64 iter.file_attr_test 40 0.67
65 iter.file_list_single_test 40 1.17
66 iter.file_list_none_test 40 1.00
67 iter.file_open_test 50 0.97
68 iter.file_attr_test 50 0.73
69 iter.file_list_single_test 50 1.45
70 iter.file_list_none_test 50 1.28
71 rdwr_cc_write_page_test 100 0.25
72 rdwr_cc_read_page_test 100 0.23
73 rdwr_cc_write_large_test 100 0.06
74 rdwr_cc_read_large_test 100 0.08
75 rdwr_cc_write_page_test 200 0.50
76 rdwr_cc_read_page_test 200 0.45
77 rdwr_cc_write_large_test 200 0.12
78 rdwr_cc_read_large_test 200 0.14
79 rdwr_cc_write_page_test 300 0.73
80 rdwr_cc_read_page_test 300 0.70
81 rdwr_cc_write_large_test 300 0.19
82 rdwr_cc_read_large_test 300 0.25
83 rdwr_cc_write_page_test 400 0.98
84 rdwr_cc_read_page_test 400 0.91
85 rdwr_cc_write_large_test 400 0.27
86 rdwr_cc_read_large_test 400 0.34
87 rdwr_cc_write_page_test 500 1.22
88 rdwr_cc_read_page_test 500 1.14
89 rdwr_cc_write_large_test 500 0.33
90 rdwr_cc_read_large_test 500 0.30
91 rdwr_nc_write_page_test 100 4.78
92 rdwr_nc_read_page_test 100 4.28
93 rdwr_nc_write_large_test 100 0.48
94 rdwr_nc_read_large_test 100 0.59
95 rdwr_nc_write_page_test 200 9.44
96 rdwr_nc_read_page_test 200 8.78
97 rdwr_nc_write_large_test 200 0.94
98 rdwr_nc_read_large_test 200 1.16
99 rdwr_nc_write_page_test 300 14.53
100 rdwr_nc_read_page_test 300 13.44
101 rdwr_nc_write_large_test 300 1.50
102 rdwr_nc_read_large_test 300 1.73
103 rdwr_nc_write_page_test 400 19.16
104 rdwr_nc_read_page_test 400 17.14
105 rdwr_nc_write_large_test 400 1.86
106 rdwr_nc_read_large_test 400 2.66
107 rdwr_nc_write_page_test 500 23.55
108 rdwr_nc_read_page_test 500 21.91
109 rdwr_nc_write_large_test 500 2.39
110 rdwr_nc_read_large_test 500 3.36
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.06
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.12
115 mmap_write_test 300 0.05
116 mmap_read_test 300 0.19
117 mmap_write_test 400 0.05
118 mmap_read_test 400 0.23
119 mmap_write_test 500 0.08
120 mmap_read_test 500 0.28

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.20
file_open_test,1000,0.09
file_overwrite_test,1000,0.17
file_attr_test,1000,0.08
file_list_test,1000,0.11
file_list_single_test,1000,0.08
file_list_none_test,1000,0.03
file_delete_test,1000,0.14
file_mkdir_test,1000,0.14
file_rmdir_test,1000,0.14
file_create_test,2000,0.42
file_open_test,2000,0.19
file_overwrite_test,2000,0.38
file_attr_test,2000,0.19
file_list_test,2000,0.23
file_list_single_test,2000,0.17
file_list_none_test,2000,0.06
file_delete_test,2000,0.33
file_mkdir_test,2000,0.30
file_rmdir_test,2000,0.27
file_create_test,3000,0.64
file_open_test,3000,0.30
file_overwrite_test,3000,0.59
file_attr_test,3000,0.25
file_list_test,3000,0.36
file_list_single_test,3000,0.27
file_list_none_test,3000,0.08
file_delete_test,3000,0.48
file_mkdir_test,3000,0.47
file_rmdir_test,3000,0.42
file_create_test,4000,0.86
file_open_test,4000,0.38
file_overwrite_test,4000,0.73
file_attr_test,4000,0.33
file_list_test,4000,0.48
file_list_single_test,4000,0.33
file_list_none_test,4000,0.11
file_delete_test,4000,0.64
file_mkdir_test,4000,0.62
file_rmdir_test,4000,0.52
file_create_test,5000,1.03
file_open_test,5000,0.44
file_overwrite_test,5000,0.92
file_attr_test,5000,0.38
file_list_test,5000,0.58
file_list_single_test,5000,0.38
file_list_none_test,5000,0.14
file_delete_test,5000,0.80
file_mkdir_test,5000,0.73
file_rmdir_test,5000,0.69
iter.file_open_test,10,0.25
iter.file_attr_test,10,0.19
iter.file_list_single_test,10,0.33
iter.file_list_none_test,10,0.26
iter.file_open_test,20,0.44
iter.file_attr_test,20,0.34
iter.file_list_single_test,20,0.61
iter.file_list_none_test,20,0.52
iter.file_open_test,30,0.61
iter.file_attr_test,30,0.48
iter.file_list_single_test,30,0.88
iter.file_list_none_test,30,0.78
iter.file_open_test,40,0.77
iter.file_attr_test,40,0.61
iter.file_list_single_test,40,1.19
iter.file_list_none_test,40,1.03
iter.file_open_test,50,0.95
iter.file_attr_test,50,0.73
iter.file_list_single_test,50,1.42
iter.file_list_none_test,50,1.28
rdwr_cc_write_page_test,100,0.25
rdwr_cc_read_page_test,100,0.23
rdwr_cc_write_large_test,100,0.08
rdwr_cc_read_large_test,100,0.08
rdwr_cc_write_page_test,200,0.48
rdwr_cc_read_page_test,200,0.45
rdwr_cc_write_large_test,200,0.12
rdwr_cc_read_large_test,200,0.17
rdwr_cc_write_page_test,300,0.73
rdwr_cc_read_page_test,300,0.61
rdwr_cc_write_large_test,300,0.19
rdwr_cc_read_large_test,300,0.23
rdwr_cc_write_page_test,400,0.97
rdwr_cc_read_page_test,400,0.88
rdwr_cc_write_large_test,400,0.27
rdwr_cc_read_large_test,400,0.33
rdwr_cc_write_page_test,500,1.20
rdwr_cc_read_page_test,500,1.14
rdwr_cc_write_large_test,500,0.31
rdwr_cc_read_large_test,500,0.39
rdwr_nc_write_page_test,100,4.76
rdwr_nc_read_page_test,100,4.24
rdwr_nc_write_large_test,100,0.47
rdwr_nc_read_large_test,100,0.56
rdwr_nc_write_page_test,200,9.44
rdwr_nc_read_page_test,200,8.44
rdwr_nc_write_large_test,200,0.94
rdwr_nc_read_large_test,200,1.14
rdwr_nc_write_page_test,300,14.19
rdwr_nc_read_page_test,300,12.70
rdwr_nc_write_large_test,300,1.39
rdwr_nc_read_large_test,300,1.74
rdwr_nc_write_page_test,400,19.20
rdwr_nc_read_page_test,400,17.41
rdwr_nc_write_large_test,400,1.95
rdwr_nc_read_large_test,400,2.53
rdwr_nc_write_page_test,500,24.02
rdwr_nc_read_page_test,500,22.16
rdwr_nc_write_large_test,500,2.42
rdwr_nc_read_large_test,500,3.14
mmap_write_test,100,0.01
mmap_read_test,100,0.08
mmap_write_test,200,0.03
mmap_read_test,200,0.14
mmap_write_test,300,0.05
mmap_read_test,300,0.17
mmap_write_test,400,0.05
mmap_read_test,400,0.22
mmap_write_test,500,0.06
mmap_read_test,500,0.28
1 file_create_test 1000 0.20
2 file_open_test 1000 0.09
3 file_overwrite_test 1000 0.17
4 file_attr_test 1000 0.08
5 file_list_test 1000 0.11
6 file_list_single_test 1000 0.08
7 file_list_none_test 1000 0.03
8 file_delete_test 1000 0.14
9 file_mkdir_test 1000 0.14
10 file_rmdir_test 1000 0.14
11 file_create_test 2000 0.42
12 file_open_test 2000 0.19
13 file_overwrite_test 2000 0.38
14 file_attr_test 2000 0.19
15 file_list_test 2000 0.23
16 file_list_single_test 2000 0.17
17 file_list_none_test 2000 0.06
18 file_delete_test 2000 0.33
19 file_mkdir_test 2000 0.30
20 file_rmdir_test 2000 0.27
21 file_create_test 3000 0.64
22 file_open_test 3000 0.30
23 file_overwrite_test 3000 0.59
24 file_attr_test 3000 0.25
25 file_list_test 3000 0.36
26 file_list_single_test 3000 0.27
27 file_list_none_test 3000 0.08
28 file_delete_test 3000 0.48
29 file_mkdir_test 3000 0.47
30 file_rmdir_test 3000 0.42
31 file_create_test 4000 0.86
32 file_open_test 4000 0.38
33 file_overwrite_test 4000 0.73
34 file_attr_test 4000 0.33
35 file_list_test 4000 0.48
36 file_list_single_test 4000 0.33
37 file_list_none_test 4000 0.11
38 file_delete_test 4000 0.64
39 file_mkdir_test 4000 0.62
40 file_rmdir_test 4000 0.52
41 file_create_test 5000 1.03
42 file_open_test 5000 0.44
43 file_overwrite_test 5000 0.92
44 file_attr_test 5000 0.38
45 file_list_test 5000 0.58
46 file_list_single_test 5000 0.38
47 file_list_none_test 5000 0.14
48 file_delete_test 5000 0.80
49 file_mkdir_test 5000 0.73
50 file_rmdir_test 5000 0.69
51 iter.file_open_test 10 0.25
52 iter.file_attr_test 10 0.19
53 iter.file_list_single_test 10 0.33
54 iter.file_list_none_test 10 0.26
55 iter.file_open_test 20 0.44
56 iter.file_attr_test 20 0.34
57 iter.file_list_single_test 20 0.61
58 iter.file_list_none_test 20 0.52
59 iter.file_open_test 30 0.61
60 iter.file_attr_test 30 0.48
61 iter.file_list_single_test 30 0.88
62 iter.file_list_none_test 30 0.78
63 iter.file_open_test 40 0.77
64 iter.file_attr_test 40 0.61
65 iter.file_list_single_test 40 1.19
66 iter.file_list_none_test 40 1.03
67 iter.file_open_test 50 0.95
68 iter.file_attr_test 50 0.73
69 iter.file_list_single_test 50 1.42
70 iter.file_list_none_test 50 1.28
71 rdwr_cc_write_page_test 100 0.25
72 rdwr_cc_read_page_test 100 0.23
73 rdwr_cc_write_large_test 100 0.08
74 rdwr_cc_read_large_test 100 0.08
75 rdwr_cc_write_page_test 200 0.48
76 rdwr_cc_read_page_test 200 0.45
77 rdwr_cc_write_large_test 200 0.12
78 rdwr_cc_read_large_test 200 0.17
79 rdwr_cc_write_page_test 300 0.73
80 rdwr_cc_read_page_test 300 0.61
81 rdwr_cc_write_large_test 300 0.19
82 rdwr_cc_read_large_test 300 0.23
83 rdwr_cc_write_page_test 400 0.97
84 rdwr_cc_read_page_test 400 0.88
85 rdwr_cc_write_large_test 400 0.27
86 rdwr_cc_read_large_test 400 0.33
87 rdwr_cc_write_page_test 500 1.20
88 rdwr_cc_read_page_test 500 1.14
89 rdwr_cc_write_large_test 500 0.31
90 rdwr_cc_read_large_test 500 0.39
91 rdwr_nc_write_page_test 100 4.76
92 rdwr_nc_read_page_test 100 4.24
93 rdwr_nc_write_large_test 100 0.47
94 rdwr_nc_read_large_test 100 0.56
95 rdwr_nc_write_page_test 200 9.44
96 rdwr_nc_read_page_test 200 8.44
97 rdwr_nc_write_large_test 200 0.94
98 rdwr_nc_read_large_test 200 1.14
99 rdwr_nc_write_page_test 300 14.19
100 rdwr_nc_read_page_test 300 12.70
101 rdwr_nc_write_large_test 300 1.39
102 rdwr_nc_read_large_test 300 1.74
103 rdwr_nc_write_page_test 400 19.20
104 rdwr_nc_read_page_test 400 17.41
105 rdwr_nc_write_large_test 400 1.95
106 rdwr_nc_read_large_test 400 2.53
107 rdwr_nc_write_page_test 500 24.02
108 rdwr_nc_read_page_test 500 22.16
109 rdwr_nc_write_large_test 500 2.42
110 rdwr_nc_read_large_test 500 3.14
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.08
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.14
115 mmap_write_test 300 0.05
116 mmap_read_test 300 0.17
117 mmap_write_test 400 0.05
118 mmap_read_test 400 0.22
119 mmap_write_test 500 0.06
120 mmap_read_test 500 0.28

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.28
file_open_test,1000,0.22
file_overwrite_test,1000,0.33
file_attr_test,1000,0.20
file_list_test,1000,0.19
file_list_single_test,1000,0.22
file_list_none_test,1000,0.17
file_delete_test,1000,0.30
file_mkdir_test,1000,0.23
file_rmdir_test,1000,0.28
file_create_test,2000,0.64
file_open_test,2000,0.45
file_overwrite_test,2000,0.73
file_attr_test,2000,0.42
file_list_test,2000,0.39
file_list_single_test,2000,0.52
file_list_none_test,2000,0.38
file_delete_test,2000,0.62
file_mkdir_test,2000,0.47
file_rmdir_test,2000,0.56
file_create_test,3000,0.94
file_open_test,3000,0.70
file_overwrite_test,3000,1.12
file_attr_test,3000,0.66
file_list_test,3000,0.62
file_list_single_test,3000,0.83
file_list_none_test,3000,0.55
file_delete_test,3000,0.98
file_mkdir_test,3000,0.72
file_rmdir_test,3000,0.84
file_create_test,4000,1.22
file_open_test,4000,0.90
file_overwrite_test,4000,1.45
file_attr_test,4000,0.84
file_list_test,4000,0.84
file_list_single_test,4000,1.14
file_list_none_test,4000,0.73
file_delete_test,4000,1.26
file_mkdir_test,4000,0.97
file_rmdir_test,4000,1.20
file_create_test,5000,1.53
file_open_test,5000,1.09
file_overwrite_test,5000,1.75
file_attr_test,5000,1.02
file_list_test,5000,1.02
file_list_single_test,5000,1.41
file_list_none_test,5000,0.91
file_delete_test,5000,1.62
file_mkdir_test,5000,1.19
file_rmdir_test,5000,1.45
iter.file_open_test,10,1.47
iter.file_attr_test,10,1.34
iter.file_list_single_test,10,1.28
iter.file_list_none_test,10,1.16
iter.file_open_test,20,2.84
iter.file_attr_test,20,2.61
iter.file_list_single_test,20,2.52
iter.file_list_none_test,20,2.27
iter.file_open_test,30,4.22
iter.file_attr_test,30,3.91
iter.file_list_single_test,30,3.77
iter.file_list_none_test,30,3.50
iter.file_open_test,40,5.61
iter.file_attr_test,40,5.22
iter.file_list_single_test,40,5.09
iter.file_list_none_test,40,4.64
iter.file_open_test,50,7.00
iter.file_attr_test,50,6.42
iter.file_list_single_test,50,6.16
iter.file_list_none_test,50,5.66
rdwr_cc_write_page_test,100,0.23
rdwr_cc_read_page_test,100,0.23
rdwr_cc_write_large_test,100,0.06
rdwr_cc_read_large_test,100,0.06
rdwr_cc_write_page_test,200,0.44
rdwr_cc_read_page_test,200,0.42
rdwr_cc_write_large_test,200,0.12
rdwr_cc_read_large_test,200,0.12
rdwr_cc_write_page_test,300,0.66
rdwr_cc_read_page_test,300,0.59
rdwr_cc_write_large_test,300,0.20
rdwr_cc_read_large_test,300,0.17
rdwr_cc_write_page_test,400,0.88
rdwr_cc_read_page_test,400,0.77
rdwr_cc_write_large_test,400,0.27
rdwr_cc_read_large_test,400,0.20
rdwr_cc_write_page_test,500,1.09
rdwr_cc_read_page_test,500,0.97
rdwr_cc_write_large_test,500,0.31
rdwr_cc_read_large_test,500,0.25
rdwr_nc_write_page_test,100,2.61
rdwr_nc_read_page_test,100,2.41
rdwr_nc_write_large_test,100,0.25
rdwr_nc_read_large_test,100,0.25
rdwr_nc_write_page_test,200,5.22
rdwr_nc_read_page_test,200,4.81
rdwr_nc_write_large_test,200,0.48
rdwr_nc_read_large_test,200,0.47
rdwr_nc_write_page_test,300,7.95
rdwr_nc_read_page_test,300,7.08
rdwr_nc_write_large_test,300,0.72
rdwr_nc_read_large_test,300,0.70
rdwr_nc_write_page_test,400,10.38
rdwr_nc_read_page_test,400,9.25
rdwr_nc_write_large_test,400,0.98
rdwr_nc_read_large_test,400,0.94
rdwr_nc_write_page_test,500,13.05
rdwr_nc_read_page_test,500,11.56
rdwr_nc_write_large_test,500,1.23
rdwr_nc_read_large_test,500,1.23
mmap_write_test,100,0.01
mmap_read_test,100,0.06
mmap_write_test,200,0.03
mmap_read_test,200,0.12
mmap_write_test,300,0.05
mmap_read_test,300,0.17
mmap_write_test,400,0.06
mmap_read_test,400,0.22
mmap_write_test,500,0.06
mmap_read_test,500,0.28
1 file_create_test 1000 0.28
2 file_open_test 1000 0.22
3 file_overwrite_test 1000 0.33
4 file_attr_test 1000 0.20
5 file_list_test 1000 0.19
6 file_list_single_test 1000 0.22
7 file_list_none_test 1000 0.17
8 file_delete_test 1000 0.30
9 file_mkdir_test 1000 0.23
10 file_rmdir_test 1000 0.28
11 file_create_test 2000 0.64
12 file_open_test 2000 0.45
13 file_overwrite_test 2000 0.73
14 file_attr_test 2000 0.42
15 file_list_test 2000 0.39
16 file_list_single_test 2000 0.52
17 file_list_none_test 2000 0.38
18 file_delete_test 2000 0.62
19 file_mkdir_test 2000 0.47
20 file_rmdir_test 2000 0.56
21 file_create_test 3000 0.94
22 file_open_test 3000 0.70
23 file_overwrite_test 3000 1.12
24 file_attr_test 3000 0.66
25 file_list_test 3000 0.62
26 file_list_single_test 3000 0.83
27 file_list_none_test 3000 0.55
28 file_delete_test 3000 0.98
29 file_mkdir_test 3000 0.72
30 file_rmdir_test 3000 0.84
31 file_create_test 4000 1.22
32 file_open_test 4000 0.90
33 file_overwrite_test 4000 1.45
34 file_attr_test 4000 0.84
35 file_list_test 4000 0.84
36 file_list_single_test 4000 1.14
37 file_list_none_test 4000 0.73
38 file_delete_test 4000 1.26
39 file_mkdir_test 4000 0.97
40 file_rmdir_test 4000 1.20
41 file_create_test 5000 1.53
42 file_open_test 5000 1.09
43 file_overwrite_test 5000 1.75
44 file_attr_test 5000 1.02
45 file_list_test 5000 1.02
46 file_list_single_test 5000 1.41
47 file_list_none_test 5000 0.91
48 file_delete_test 5000 1.62
49 file_mkdir_test 5000 1.19
50 file_rmdir_test 5000 1.45
51 iter.file_open_test 10 1.47
52 iter.file_attr_test 10 1.34
53 iter.file_list_single_test 10 1.28
54 iter.file_list_none_test 10 1.16
55 iter.file_open_test 20 2.84
56 iter.file_attr_test 20 2.61
57 iter.file_list_single_test 20 2.52
58 iter.file_list_none_test 20 2.27
59 iter.file_open_test 30 4.22
60 iter.file_attr_test 30 3.91
61 iter.file_list_single_test 30 3.77
62 iter.file_list_none_test 30 3.50
63 iter.file_open_test 40 5.61
64 iter.file_attr_test 40 5.22
65 iter.file_list_single_test 40 5.09
66 iter.file_list_none_test 40 4.64
67 iter.file_open_test 50 7.00
68 iter.file_attr_test 50 6.42
69 iter.file_list_single_test 50 6.16
70 iter.file_list_none_test 50 5.66
71 rdwr_cc_write_page_test 100 0.23
72 rdwr_cc_read_page_test 100 0.23
73 rdwr_cc_write_large_test 100 0.06
74 rdwr_cc_read_large_test 100 0.06
75 rdwr_cc_write_page_test 200 0.44
76 rdwr_cc_read_page_test 200 0.42
77 rdwr_cc_write_large_test 200 0.12
78 rdwr_cc_read_large_test 200 0.12
79 rdwr_cc_write_page_test 300 0.66
80 rdwr_cc_read_page_test 300 0.59
81 rdwr_cc_write_large_test 300 0.20
82 rdwr_cc_read_large_test 300 0.17
83 rdwr_cc_write_page_test 400 0.88
84 rdwr_cc_read_page_test 400 0.77
85 rdwr_cc_write_large_test 400 0.27
86 rdwr_cc_read_large_test 400 0.20
87 rdwr_cc_write_page_test 500 1.09
88 rdwr_cc_read_page_test 500 0.97
89 rdwr_cc_write_large_test 500 0.31
90 rdwr_cc_read_large_test 500 0.25
91 rdwr_nc_write_page_test 100 2.61
92 rdwr_nc_read_page_test 100 2.41
93 rdwr_nc_write_large_test 100 0.25
94 rdwr_nc_read_large_test 100 0.25
95 rdwr_nc_write_page_test 200 5.22
96 rdwr_nc_read_page_test 200 4.81
97 rdwr_nc_write_large_test 200 0.48
98 rdwr_nc_read_large_test 200 0.47
99 rdwr_nc_write_page_test 300 7.95
100 rdwr_nc_read_page_test 300 7.08
101 rdwr_nc_write_large_test 300 0.72
102 rdwr_nc_read_large_test 300 0.70
103 rdwr_nc_write_page_test 400 10.38
104 rdwr_nc_read_page_test 400 9.25
105 rdwr_nc_write_large_test 400 0.98
106 rdwr_nc_read_large_test 400 0.94
107 rdwr_nc_write_page_test 500 13.05
108 rdwr_nc_read_page_test 500 11.56
109 rdwr_nc_write_large_test 500 1.23
110 rdwr_nc_read_large_test 500 1.23
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.06
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.12
115 mmap_write_test 300 0.05
116 mmap_read_test 300 0.17
117 mmap_write_test 400 0.06
118 mmap_read_test 400 0.22
119 mmap_write_test 500 0.06
120 mmap_read_test 500 0.28

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.30
file_open_test,1000,0.22
file_overwrite_test,1000,0.34
file_attr_test,1000,0.20
file_list_test,1000,0.19
file_list_single_test,1000,0.22
file_list_none_test,1000,0.17
file_delete_test,1000,0.31
file_mkdir_test,1000,0.22
file_rmdir_test,1000,0.27
file_create_test,2000,0.61
file_open_test,2000,0.44
file_overwrite_test,2000,0.69
file_attr_test,2000,0.44
file_list_test,2000,0.41
file_list_single_test,2000,0.53
file_list_none_test,2000,0.36
file_delete_test,2000,0.64
file_mkdir_test,2000,0.47
file_rmdir_test,2000,0.55
file_create_test,3000,0.97
file_open_test,3000,0.69
file_overwrite_test,3000,1.08
file_attr_test,3000,0.64
file_list_test,3000,0.64
file_list_single_test,3000,0.88
file_list_none_test,3000,0.56
file_delete_test,3000,0.97
file_mkdir_test,3000,0.73
file_rmdir_test,3000,0.80
file_create_test,4000,1.20
file_open_test,4000,0.91
file_overwrite_test,4000,1.49
file_attr_test,4000,0.83
file_list_test,4000,0.83
file_list_single_test,4000,1.19
file_list_none_test,4000,0.75
file_delete_test,4000,1.28
file_mkdir_test,4000,0.92
file_rmdir_test,4000,1.08
file_create_test,5000,1.44
file_open_test,5000,1.09
file_overwrite_test,5000,1.83
file_attr_test,5000,1.02
file_list_test,5000,1.03
file_list_single_test,5000,1.50
file_list_none_test,5000,0.94
file_delete_test,5000,1.58
file_mkdir_test,5000,1.12
file_rmdir_test,5000,1.42
iter.file_open_test,10,1.47
iter.file_attr_test,10,1.34
iter.file_list_single_test,10,1.31
iter.file_list_none_test,10,1.17
iter.file_open_test,20,2.84
iter.file_attr_test,20,2.61
iter.file_list_single_test,20,2.53
iter.file_list_none_test,20,2.31
iter.file_open_test,30,4.20
iter.file_attr_test,30,3.88
iter.file_list_single_test,30,3.78
iter.file_list_none_test,30,3.58
iter.file_open_test,40,5.59
iter.file_attr_test,40,5.12
iter.file_list_single_test,40,4.89
iter.file_list_none_test,40,4.62
iter.file_open_test,50,7.05
iter.file_attr_test,50,6.42
iter.file_list_single_test,50,6.22
iter.file_list_none_test,50,5.72
rdwr_cc_write_page_test,100,0.23
rdwr_cc_read_page_test,100,0.25
rdwr_cc_write_large_test,100,0.06
rdwr_cc_read_large_test,100,0.06
rdwr_cc_write_page_test,200,0.45
rdwr_cc_read_page_test,200,0.41
rdwr_cc_write_large_test,200,0.12
rdwr_cc_read_large_test,200,0.12
rdwr_cc_write_page_test,300,0.66
rdwr_cc_read_page_test,300,0.59
rdwr_cc_write_large_test,300,0.20
rdwr_cc_read_large_test,300,0.16
rdwr_cc_write_page_test,400,0.87
rdwr_cc_read_page_test,400,0.77
rdwr_cc_write_large_test,400,0.25
rdwr_cc_read_large_test,400,0.20
rdwr_cc_write_page_test,500,1.08
rdwr_cc_read_page_test,500,0.95
rdwr_cc_write_large_test,500,0.31
rdwr_cc_read_large_test,500,0.25
rdwr_nc_write_page_test,100,2.61
rdwr_nc_read_page_test,100,2.41
rdwr_nc_write_large_test,100,0.27
rdwr_nc_read_large_test,100,0.23
rdwr_nc_write_page_test,200,5.23
rdwr_nc_read_page_test,200,4.76
rdwr_nc_write_large_test,200,0.50
rdwr_nc_read_large_test,200,0.45
rdwr_nc_write_page_test,300,8.03
rdwr_nc_read_page_test,300,7.17
rdwr_nc_write_large_test,300,0.73
rdwr_nc_read_large_test,300,0.66
rdwr_nc_write_page_test,400,10.75
rdwr_nc_read_page_test,400,9.47
rdwr_nc_write_large_test,400,0.98
rdwr_nc_read_large_test,400,0.86
rdwr_nc_write_page_test,500,13.12
rdwr_nc_read_page_test,500,11.69
rdwr_nc_write_large_test,500,1.25
rdwr_nc_read_large_test,500,1.27
mmap_write_test,100,0.01
mmap_read_test,100,0.08
mmap_write_test,200,0.03
mmap_read_test,200,0.12
mmap_write_test,300,0.05
mmap_read_test,300,0.17
mmap_write_test,400,0.06
mmap_read_test,400,0.22
mmap_write_test,500,0.08
mmap_read_test,500,0.27
1 file_create_test 1000 0.30
2 file_open_test 1000 0.22
3 file_overwrite_test 1000 0.34
4 file_attr_test 1000 0.20
5 file_list_test 1000 0.19
6 file_list_single_test 1000 0.22
7 file_list_none_test 1000 0.17
8 file_delete_test 1000 0.31
9 file_mkdir_test 1000 0.22
10 file_rmdir_test 1000 0.27
11 file_create_test 2000 0.61
12 file_open_test 2000 0.44
13 file_overwrite_test 2000 0.69
14 file_attr_test 2000 0.44
15 file_list_test 2000 0.41
16 file_list_single_test 2000 0.53
17 file_list_none_test 2000 0.36
18 file_delete_test 2000 0.64
19 file_mkdir_test 2000 0.47
20 file_rmdir_test 2000 0.55
21 file_create_test 3000 0.97
22 file_open_test 3000 0.69
23 file_overwrite_test 3000 1.08
24 file_attr_test 3000 0.64
25 file_list_test 3000 0.64
26 file_list_single_test 3000 0.88
27 file_list_none_test 3000 0.56
28 file_delete_test 3000 0.97
29 file_mkdir_test 3000 0.73
30 file_rmdir_test 3000 0.80
31 file_create_test 4000 1.20
32 file_open_test 4000 0.91
33 file_overwrite_test 4000 1.49
34 file_attr_test 4000 0.83
35 file_list_test 4000 0.83
36 file_list_single_test 4000 1.19
37 file_list_none_test 4000 0.75
38 file_delete_test 4000 1.28
39 file_mkdir_test 4000 0.92
40 file_rmdir_test 4000 1.08
41 file_create_test 5000 1.44
42 file_open_test 5000 1.09
43 file_overwrite_test 5000 1.83
44 file_attr_test 5000 1.02
45 file_list_test 5000 1.03
46 file_list_single_test 5000 1.50
47 file_list_none_test 5000 0.94
48 file_delete_test 5000 1.58
49 file_mkdir_test 5000 1.12
50 file_rmdir_test 5000 1.42
51 iter.file_open_test 10 1.47
52 iter.file_attr_test 10 1.34
53 iter.file_list_single_test 10 1.31
54 iter.file_list_none_test 10 1.17
55 iter.file_open_test 20 2.84
56 iter.file_attr_test 20 2.61
57 iter.file_list_single_test 20 2.53
58 iter.file_list_none_test 20 2.31
59 iter.file_open_test 30 4.20
60 iter.file_attr_test 30 3.88
61 iter.file_list_single_test 30 3.78
62 iter.file_list_none_test 30 3.58
63 iter.file_open_test 40 5.59
64 iter.file_attr_test 40 5.12
65 iter.file_list_single_test 40 4.89
66 iter.file_list_none_test 40 4.62
67 iter.file_open_test 50 7.05
68 iter.file_attr_test 50 6.42
69 iter.file_list_single_test 50 6.22
70 iter.file_list_none_test 50 5.72
71 rdwr_cc_write_page_test 100 0.23
72 rdwr_cc_read_page_test 100 0.25
73 rdwr_cc_write_large_test 100 0.06
74 rdwr_cc_read_large_test 100 0.06
75 rdwr_cc_write_page_test 200 0.45
76 rdwr_cc_read_page_test 200 0.41
77 rdwr_cc_write_large_test 200 0.12
78 rdwr_cc_read_large_test 200 0.12
79 rdwr_cc_write_page_test 300 0.66
80 rdwr_cc_read_page_test 300 0.59
81 rdwr_cc_write_large_test 300 0.20
82 rdwr_cc_read_large_test 300 0.16
83 rdwr_cc_write_page_test 400 0.87
84 rdwr_cc_read_page_test 400 0.77
85 rdwr_cc_write_large_test 400 0.25
86 rdwr_cc_read_large_test 400 0.20
87 rdwr_cc_write_page_test 500 1.08
88 rdwr_cc_read_page_test 500 0.95
89 rdwr_cc_write_large_test 500 0.31
90 rdwr_cc_read_large_test 500 0.25
91 rdwr_nc_write_page_test 100 2.61
92 rdwr_nc_read_page_test 100 2.41
93 rdwr_nc_write_large_test 100 0.27
94 rdwr_nc_read_large_test 100 0.23
95 rdwr_nc_write_page_test 200 5.23
96 rdwr_nc_read_page_test 200 4.76
97 rdwr_nc_write_large_test 200 0.50
98 rdwr_nc_read_large_test 200 0.45
99 rdwr_nc_write_page_test 300 8.03
100 rdwr_nc_read_page_test 300 7.17
101 rdwr_nc_write_large_test 300 0.73
102 rdwr_nc_read_large_test 300 0.66
103 rdwr_nc_write_page_test 400 10.75
104 rdwr_nc_read_page_test 400 9.47
105 rdwr_nc_write_large_test 400 0.98
106 rdwr_nc_read_large_test 400 0.86
107 rdwr_nc_write_page_test 500 13.12
108 rdwr_nc_read_page_test 500 11.69
109 rdwr_nc_write_large_test 500 1.25
110 rdwr_nc_read_large_test 500 1.27
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.08
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.12
115 mmap_write_test 300 0.05
116 mmap_read_test 300 0.17
117 mmap_write_test 400 0.06
118 mmap_read_test 400 0.22
119 mmap_write_test 500 0.08
120 mmap_read_test 500 0.27

View File

@ -0,0 +1,120 @@
file_create_test,1000,0.28
file_open_test,1000,0.22
file_overwrite_test,1000,0.36
file_attr_test,1000,0.19
file_list_test,1000,0.17
file_list_single_test,1000,0.22
file_list_none_test,1000,0.19
file_delete_test,1000,0.31
file_mkdir_test,1000,0.23
file_rmdir_test,1000,0.28
file_create_test,2000,0.58
file_open_test,2000,0.52
file_overwrite_test,2000,0.84
file_attr_test,2000,0.52
file_list_test,2000,0.44
file_list_single_test,2000,0.56
file_list_none_test,2000,0.38
file_delete_test,2000,0.64
file_mkdir_test,2000,0.47
file_rmdir_test,2000,0.55
file_create_test,3000,0.92
file_open_test,3000,0.66
file_overwrite_test,3000,1.06
file_attr_test,3000,0.66
file_list_test,3000,0.64
file_list_single_test,3000,0.86
file_list_none_test,3000,0.56
file_delete_test,3000,1.00
file_mkdir_test,3000,0.77
file_rmdir_test,3000,0.86
file_create_test,4000,1.22
file_open_test,4000,0.89
file_overwrite_test,4000,1.44
file_attr_test,4000,0.81
file_list_test,4000,0.84
file_list_single_test,4000,1.12
file_list_none_test,4000,0.73
file_delete_test,4000,1.31
file_mkdir_test,4000,0.97
file_rmdir_test,4000,1.12
file_create_test,5000,1.53
file_open_test,5000,1.05
file_overwrite_test,5000,1.73
file_attr_test,5000,1.02
file_list_test,5000,1.03
file_list_single_test,5000,1.41
file_list_none_test,5000,0.94
file_delete_test,5000,1.61
file_mkdir_test,5000,1.20
file_rmdir_test,5000,1.36
iter.file_open_test,10,1.44
iter.file_attr_test,10,1.38
iter.file_list_single_test,10,1.26
iter.file_list_none_test,10,1.14
iter.file_open_test,20,2.89
iter.file_attr_test,20,2.61
iter.file_list_single_test,20,2.52
iter.file_list_none_test,20,2.45
iter.file_open_test,30,4.19
iter.file_attr_test,30,3.86
iter.file_list_single_test,30,3.77
iter.file_list_none_test,30,3.47
iter.file_open_test,40,5.64
iter.file_attr_test,40,5.17
iter.file_list_single_test,40,4.84
iter.file_list_none_test,40,4.55
iter.file_open_test,50,7.00
iter.file_attr_test,50,6.44
iter.file_list_single_test,50,6.12
iter.file_list_none_test,50,5.64
rdwr_cc_write_page_test,100,0.27
rdwr_cc_read_page_test,100,0.23
rdwr_cc_write_large_test,100,0.06
rdwr_cc_read_large_test,100,0.06
rdwr_cc_write_page_test,200,0.44
rdwr_cc_read_page_test,200,0.41
rdwr_cc_write_large_test,200,0.12
rdwr_cc_read_large_test,200,0.11
rdwr_cc_write_page_test,300,0.67
rdwr_cc_read_page_test,300,0.59
rdwr_cc_write_large_test,300,0.19
rdwr_cc_read_large_test,300,0.16
rdwr_cc_write_page_test,400,0.87
rdwr_cc_read_page_test,400,0.77
rdwr_cc_write_large_test,400,0.25
rdwr_cc_read_large_test,400,0.22
rdwr_cc_write_page_test,500,1.09
rdwr_cc_read_page_test,500,0.94
rdwr_cc_write_large_test,500,0.31
rdwr_cc_read_large_test,500,0.27
rdwr_nc_write_page_test,100,2.56
rdwr_nc_read_page_test,100,2.38
rdwr_nc_write_large_test,100,0.23
rdwr_nc_read_large_test,100,0.23
rdwr_nc_write_page_test,200,5.20
rdwr_nc_read_page_test,200,4.62
rdwr_nc_write_large_test,200,0.48
rdwr_nc_read_large_test,200,0.45
rdwr_nc_write_page_test,300,7.70
rdwr_nc_read_page_test,300,6.86
rdwr_nc_write_large_test,300,0.73
rdwr_nc_read_large_test,300,0.70
rdwr_nc_write_page_test,400,10.23
rdwr_nc_read_page_test,400,9.17
rdwr_nc_write_large_test,400,0.95
rdwr_nc_read_large_test,400,0.94
rdwr_nc_write_page_test,500,12.91
rdwr_nc_read_page_test,500,11.66
rdwr_nc_write_large_test,500,1.22
rdwr_nc_read_large_test,500,1.25
mmap_write_test,100,0.01
mmap_read_test,100,0.06
mmap_write_test,200,0.03
mmap_read_test,200,0.12
mmap_write_test,300,0.05
mmap_read_test,300,0.17
mmap_write_test,400,0.06
mmap_read_test,400,0.23
mmap_write_test,500,0.06
mmap_read_test,500,0.28
1 file_create_test 1000 0.28
2 file_open_test 1000 0.22
3 file_overwrite_test 1000 0.36
4 file_attr_test 1000 0.19
5 file_list_test 1000 0.17
6 file_list_single_test 1000 0.22
7 file_list_none_test 1000 0.19
8 file_delete_test 1000 0.31
9 file_mkdir_test 1000 0.23
10 file_rmdir_test 1000 0.28
11 file_create_test 2000 0.58
12 file_open_test 2000 0.52
13 file_overwrite_test 2000 0.84
14 file_attr_test 2000 0.52
15 file_list_test 2000 0.44
16 file_list_single_test 2000 0.56
17 file_list_none_test 2000 0.38
18 file_delete_test 2000 0.64
19 file_mkdir_test 2000 0.47
20 file_rmdir_test 2000 0.55
21 file_create_test 3000 0.92
22 file_open_test 3000 0.66
23 file_overwrite_test 3000 1.06
24 file_attr_test 3000 0.66
25 file_list_test 3000 0.64
26 file_list_single_test 3000 0.86
27 file_list_none_test 3000 0.56
28 file_delete_test 3000 1.00
29 file_mkdir_test 3000 0.77
30 file_rmdir_test 3000 0.86
31 file_create_test 4000 1.22
32 file_open_test 4000 0.89
33 file_overwrite_test 4000 1.44
34 file_attr_test 4000 0.81
35 file_list_test 4000 0.84
36 file_list_single_test 4000 1.12
37 file_list_none_test 4000 0.73
38 file_delete_test 4000 1.31
39 file_mkdir_test 4000 0.97
40 file_rmdir_test 4000 1.12
41 file_create_test 5000 1.53
42 file_open_test 5000 1.05
43 file_overwrite_test 5000 1.73
44 file_attr_test 5000 1.02
45 file_list_test 5000 1.03
46 file_list_single_test 5000 1.41
47 file_list_none_test 5000 0.94
48 file_delete_test 5000 1.61
49 file_mkdir_test 5000 1.20
50 file_rmdir_test 5000 1.36
51 iter.file_open_test 10 1.44
52 iter.file_attr_test 10 1.38
53 iter.file_list_single_test 10 1.26
54 iter.file_list_none_test 10 1.14
55 iter.file_open_test 20 2.89
56 iter.file_attr_test 20 2.61
57 iter.file_list_single_test 20 2.52
58 iter.file_list_none_test 20 2.45
59 iter.file_open_test 30 4.19
60 iter.file_attr_test 30 3.86
61 iter.file_list_single_test 30 3.77
62 iter.file_list_none_test 30 3.47
63 iter.file_open_test 40 5.64
64 iter.file_attr_test 40 5.17
65 iter.file_list_single_test 40 4.84
66 iter.file_list_none_test 40 4.55
67 iter.file_open_test 50 7.00
68 iter.file_attr_test 50 6.44
69 iter.file_list_single_test 50 6.12
70 iter.file_list_none_test 50 5.64
71 rdwr_cc_write_page_test 100 0.27
72 rdwr_cc_read_page_test 100 0.23
73 rdwr_cc_write_large_test 100 0.06
74 rdwr_cc_read_large_test 100 0.06
75 rdwr_cc_write_page_test 200 0.44
76 rdwr_cc_read_page_test 200 0.41
77 rdwr_cc_write_large_test 200 0.12
78 rdwr_cc_read_large_test 200 0.11
79 rdwr_cc_write_page_test 300 0.67
80 rdwr_cc_read_page_test 300 0.59
81 rdwr_cc_write_large_test 300 0.19
82 rdwr_cc_read_large_test 300 0.16
83 rdwr_cc_write_page_test 400 0.87
84 rdwr_cc_read_page_test 400 0.77
85 rdwr_cc_write_large_test 400 0.25
86 rdwr_cc_read_large_test 400 0.22
87 rdwr_cc_write_page_test 500 1.09
88 rdwr_cc_read_page_test 500 0.94
89 rdwr_cc_write_large_test 500 0.31
90 rdwr_cc_read_large_test 500 0.27
91 rdwr_nc_write_page_test 100 2.56
92 rdwr_nc_read_page_test 100 2.38
93 rdwr_nc_write_large_test 100 0.23
94 rdwr_nc_read_large_test 100 0.23
95 rdwr_nc_write_page_test 200 5.20
96 rdwr_nc_read_page_test 200 4.62
97 rdwr_nc_write_large_test 200 0.48
98 rdwr_nc_read_large_test 200 0.45
99 rdwr_nc_write_page_test 300 7.70
100 rdwr_nc_read_page_test 300 6.86
101 rdwr_nc_write_large_test 300 0.73
102 rdwr_nc_read_large_test 300 0.70
103 rdwr_nc_write_page_test 400 10.23
104 rdwr_nc_read_page_test 400 9.17
105 rdwr_nc_write_large_test 400 0.95
106 rdwr_nc_read_large_test 400 0.94
107 rdwr_nc_write_page_test 500 12.91
108 rdwr_nc_read_page_test 500 11.66
109 rdwr_nc_write_large_test 500 1.22
110 rdwr_nc_read_large_test 500 1.25
111 mmap_write_test 100 0.01
112 mmap_read_test 100 0.06
113 mmap_write_test 200 0.03
114 mmap_read_test 200 0.12
115 mmap_write_test 300 0.05
116 mmap_read_test 300 0.17
117 mmap_write_test 400 0.06
118 mmap_read_test 400 0.23
119 mmap_write_test 500 0.06
120 mmap_read_test 500 0.28

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -0,0 +1,128 @@
# WinFsp Registry Settings
<details>
<summary>
📁 <code>HKLM\SYSTEM\CurrentControlSet\Services\WinFsp</code>
</summary>
<blockquote>
Stores information about the WinFsp file system driver as required by the Windows OS.
</blockquote>
</details>
<details>
<summary>
📁 <code>HKLM\SYSTEM\CurrentControlSet\Services\WinFsp.Launcher</code>
</summary>
<blockquote>
Stores information about the WinFsp Launcher service as required by the Windows OS.
</blockquote>
</details>
<details>
<summary>
📁 <code>HKLM\SYSTEM\CurrentControlSet\Services\WinFsp.Np</code>
</summary>
<blockquote>
Stores information about the WinFsp network provider as required by the Windows OS.
</blockquote>
</details>
<details>
<summary>
📁 <code>HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\WinFsp</code>
</summary>
<blockquote>
Stores information about the WinFsp event source as required by the Windows OS.
</blockquote>
</details>
<details>
<summary>
📁 <code>HKLM\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order</code>
</summary>
<blockquote>
Stores information about the WinFsp network provider as required by the Windows OS.
</blockquote>
</details>
<details>
<summary>
📁 <code>HKLM\SOFTWARE\WinFsp</code>
</summary>
<blockquote>
Primary registry key used to store WinFsp settings. On a 64-bit system (x64 or ARM64) this key is stored in the 32-bit portion of the registry and its true location is `HKLM\SOFTWARE\WOW6432Node\WinFsp`.
* `InstallDir (REG_SZ)`: Contains the WinFsp installation directory.
* `SxsDir (REG_SZ)`: Contains the WinFsp Side-by-Side (SxS) directory. The SxS directory allows for multiple versions of WinFsp to be active at the same time and among other benefits it enables reinstalling WinFsp without reboot. The SxS directory contains primarily executable files.
* `DistinctPermsForSameOwnerGroup (REG_DWORD)`: Directs how WinFsp-FUSE should consider UNIX owner and group permissions in the case when the Windows owner and group SID are the same (for example, this can happen when someone uses a Microsoft account as their primary login). When this setting is 0 and the Windows owner and group SID are the same, WinFsp-FUSE combines the UNIX owner and group permissions (for example, user permission `rw-` and group permission `---` combine to `---`), which can result in inadvertent "access denied" errors. When this setting is 1 and even if the Windows owner and group SID are the same, WinFsp-FUSE looks at the UNIX owner permissions and the UNIX group permissions separately. The default value is 1 since v1.11B1 and was 0 in earlier versions.
* `MountBroadcastDriveChange (REG_DWORD)`: A value of 1 instructs WinFsp to broadcast an additional "drive change" message to all top-level windows during mounting and unmounting. The default value is 0. Normally the Windows infrastructure broadcasts a `WM_DEVICECHANGE` message whenever a drive gets added/removed. In some rare systems it is possible for this message to get lost or stalled. The workaround for these rare systems is to enable this registry setting, in which case WinFsp will broadcast the `WM_DEVICECHANGE` using a slightly different but more reliable method than the one Windows uses.
* `MountDoNotUseLauncher (REG_DWORD)`: A value of 1 disallows the use of the Launcher for drive mounting. The default value of 0 allows use of the Launcher for drive mounting when necessary. In general the Launcher is not necessary for mounting. However when running a file system in the Windows Service context (session 0) under an account that is not LocalSystem (e.g. `NT AUTHORITY\NETWORK SERVICE`), the Launcher is used to create global drives.
* `MountUseMountmgrFromFSD (REG_DWORD)`: A value of 1 instructs WinFsp to use the Mount Manager from the FSD (File System Driver) which runs in kernel mode. The default value of 0 instructs WinFsp to use the Mount Manager from the DLL which runs in user mode. Using the Mount Manager from user mode requires Administrator access and this setting allows a file system to circumvent the Administrator access requirement. This setting is not recommended for general use.
</blockquote>
</details>
<details>
<summary>
📁 <code>HKLM\SOFTWARE\WinFsp\Services\:SERVICE</code>
</summary>
<blockquote>
Registry key used to store information about the WinFsp service with name `:SERVICE`. WinFsp services are user mode file systems controlled by the Launcher; for more information see the [Service Architecture](WinFsp-Service-Architecture.asciidoc) document. On a 64-bit system (x64 or ARM64) this key is stored in the 32-bit portion of the registry and its true location is `HKLM\SOFTWARE\WOW6432Node\WinFsp\Services\:SERVICE`.
* `Agent (REG_SZ)`: UNDOCUMENTED (see source code).
* `Executable (REG_SZ)`: Contains the path to the executable to use when launching the service.
* `CommandLine (REG_SZ)`: Contains the command line to use when launching the service.
* `WorkDirectory (REG_SZ)`: Contains the working directory to use when launching the service.
* `RunAs (REG_SZ)`: Controls the account used when launching the service. Possible values are `LocalSystem` (default), `LocalService`, `NetworkService` and `.` (dot). The `.` (dot) value means that the service should be launched as the account that is launching the file system (e.g. via `net use` or Explorer's "Map Network Drive").
* `Security (REG_SZ)`: Controls which users can launch the service.
* `AuthPackage (REG_SZ)`: UNDOCUMENTED (see source code).
* `Stderr (REG_SZ)`: Specifies a path that the Launcher will redirect service error output to.
* `JobControl (REG_DWORD)`: Controls whether the service is running in the same job as the Launcher. The default value is 1.
* `Credentials (REG_DWORD)`: Controls whether the file system requires credentials.
* `AuthPackageId (REG_DWORD)`: UNDOCUMENTED (see source code).
* `Recovery (REG_DWORD)`: A value of 1 instructs the Launcher to restart a service that has crashed. The default value is 0.
</blockquote>
</details>
<details>
<summary>
📁 <code>HKLM\SOFTWARE\WinFsp\Fsext</code>
</summary>
<blockquote>
Registry key used to store WinFsp fsext provider information. Fsext providers are kernel mode file systems that interface with WinFsp; for more information see the [Kernel Mode File Systems](WinFsp-Kernel-Mode-File-Systems.asciidoc) document. On a 64-bit system (x64 or ARM64) this key is stored in the 32-bit portion of the registry and its true location is `HKLM\SOFTWARE\WOW6432Node\WinFsp\Fsext`.
* `:CTLCODE (REG_SZ)`: The `:CTLCODE` name is the string representation of the fsext provider's transact code in `%08lx` format and the value is the provider's driver name.
</blockquote>
</details>

View File

@ -538,7 +538,8 @@ static NTSTATUS GetFileInfoInternal(HANDLE Handle, FSP_FSCTL_FILE_INFO *FileInfo
FileInfo->LastAccessTime = ((PLARGE_INTEGER)&ByHandleFileInfo.ftLastAccessTime)->QuadPart;
FileInfo->LastWriteTime = ((PLARGE_INTEGER)&ByHandleFileInfo.ftLastWriteTime)->QuadPart;
FileInfo->ChangeTime = FileInfo->LastWriteTime;
FileInfo->IndexNumber = 0;
FileInfo->IndexNumber =
((UINT64)ByHandleFileInfo.nFileIndexHigh << 32) | (UINT64)ByHandleFileInfo.nFileIndexLow;
FileInfo->HardLinks = 0;
return STATUS_SUCCESS;

View File

@ -0,0 +1,192 @@
= Performance Testing
:caption:
This document discusses performance testing for WinFsp. The goal of this performance testing is to discover optimization opportunities for WinFsp and compare its performance to that of NTFS and Dokany.
== Executive Summary
This performance testing shows that WinFsp has excellent performance in all tested scenarios. It outperforms NTFS in most scenarios (an unfair comparison as NTFS is a disk file system and WinFsp is tested with an in-memory file system). It also outperforms Dokany in all scenarios, often by an order of magnitude.
ifdef::env-browser[chart::bar[data-uri="WinFsp-Performance-Testing/file_tests.csv",file="WinFsp-Performance-Testing/file_tests.png",opt="y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_tests.png[]]
ifdef::env-browser[chart::bar[data-uri="WinFsp-Performance-Testing/rdwr_tests.csv",file="WinFsp-Performance-Testing/rdwr_tests.png",opt="y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_tests.png[]]
== Fsbench
All testing was performed using a new performance test suite developed as part of WinFsp, called https://github.com/winfsp/winfsp/blob/master/tst/fsbench/fsbench.c[fsbench]. Fsbench was developed because it allows the creation of tests that are important to file system developers; for example, it can answer questions of the type: "how long does it take to delete 1000 files" or "how long does it take to list a directory with 10000 files in it".
Fsbench is based on the https://github.com/winfsp/winfsp/tree/master/ext/tlib[tlib] library, originally from the *secfs* project. Tlib is usually used to develop regression test suites in C/C++, but can be also used to create performance tests.
Fsbench currently includes the following tests:
[width="100%",cols="20%,60%,20%",options="header"]
|===
|Test |Measures performance of |Parameters
|file_create_test |CreateFileW(CREATE_NEW) / CloseHandle |file count
|file_open_test |CreateFileW(OPEN_EXISTING) / CloseHandle |file count
|file_overwrite_test|CreateFileW(CREATE_ALWAYS) / CloseHandle with existing files|file count
|file_list_test |FindFirstFileW / FindNextFile / FindClose |iterations
|file_delete_test |DeleteFileW |file count
|file_mkdir_test |CreateDirectoryW |file count
|file_rmdir_test |RemoveDirectoryW |file count
|rdwr_cc_write_page_test |WriteFile (1 page; cached) |iterations
|rdwr_cc_read_page_test |ReadFile (1 page; cached) |iterations
|rdwr_nc_write_page_test |WriteFile (1 page; non-cached) |iterations
|rdwr_nc_read_page_test |ReadFile (1 page; non-cached) |iterations
|rdwr_cc_write_large_test |WriteFile (16 pages; cached) |iterations
|rdwr_cc_read_large_test |ReadFile (16 pages; cached) |iterations
|rdwr_nc_write_large_test |WriteFile (16 pages; non-cached) |iterations
|rdwr_nc_read_large_test |ReadFile (16 pages; non-cached) |iterations
|mmap_write_test |Memory mapped write test |iterations
|mmap_write_test |Memory mapped read test |iterations
|===
== Tested File Systems
=== NTFS
The comparison to NTFS is very important to establish a baseline. It is also very misleading because NTFS is a disk file system and MEMFS (either the WinFsp or Dokany variants) is an in memory file system. The tests will show that MEMFS is faster than NTFS. This should not be taken to mean that we are trying to make the (obvious) claim that an in memory file system is faster than a disk file system, but to show that the approach of writing a file system in user mode is a valid proposition and can be efficient.
=== WinFsp/MEMFS
MEMFS is the file system used to test WinFsp and shipped as a sample bundled with the WinFsp installer. MEMFS is a simple in memory file system and as such is very fast under most conditions. This is desirable because our goal with this performance testing is to measure the speed of the WinFsp system components rather the performance of a complex user mode file system. MEMFS has minimal overhead and is ideal for this purpose.
WinFsp/MEMFS can be run in different configurations, which enable or disable WinFsp caching features. The tested configurations were:
- An infinite FileInfoTimeout, which enables caching of metadata and data.
- A FileInfoTimeout of 1s (second), which enables caching of metadata but disables caching of data.
- A FileInfoTimeout of 0, which completely disables caching.
The WinFsp git commit at the time of testing was d804f5674d76f11ea86d14f4bcb1157e6e40e719.
=== Dokany/MEMFS
To achieve fairness when comparing Dokany to WinFsp the MEMFS file system has been ported to Dokany. Substantial care was taken to ensure that WinFsp/MEMFS and Dokany/MEMFS perform equally well, so that the performance of the Dokany FSD and user-mode components can be measured and compared accurately.
The Dokany/MEMFS project has its own https://github.com/billziss-gh/memfs-dokany[repository]. The project comes without a license, which means that it may not be used for any purpose other than as a reference.
The Dokany version used for testing was 1.0.1. The Dokany/MEMFS git commit was 27a678d7c0d5ee2fb3fb2ecc8e38210857ae941c.
== Test Environment
Tests were performed on an idle computer/VM. There was a reboot of both the computer and VM before each file system was tested. Each test was run twice and the smaller time value chosen. The assumption is that even in a seemingly idle desktop system there is some activity which will affect the results; the smaller value is the preferred one to use because it reflects the time when there is less or no other activity.
The test environment was as follows:
----
MacBook Pro (Retina, 13-inch, Early 2015)
3.1 GHz Intel Core i7
16 GB 1867 MHz DDR3
500 GB SSD
VirtualBox Version 5.0.20 r106931
1 CPU
4 GB RAM
80 GB Dynamically allocated differencing storage
Windows 10 (64-bit) Version 1511 (OS Build 10586.420)
----
== Test Results
In the graphs below we use consistent coloring to quickly identify a file system. Red is used for NTFS, yellow for WinFsp/MEMFS with a FileInfoTimeout of 0, green for WinFsp/MEMFS with a FileInfoTimeout of 1, light blue for WinFsp/MEMFS with an infinite FileInfoTimeout and deep blue for Dokany/MEMFS.
In all tests lower times are better (the file system is faster).
=== File Tests
These tests measure the performance of creating, opening, overwriting and listing files and directories.
==== file_create_test
This test measures the performance of CreateFileW(CREATE_NEW) / CloseHandle. WinFsp has the best performance here. Dokany follows and NTFS is last as it has to actually update its data structures on disk.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_create_test.csv",file="WinFsp-Performance-Testing/file_create_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_create_test.png[]]
==== file_open_test
This test measures the performance of CreateFileW(OPEN_EXISTING) / CloseHandle. WinFsp again has the best (although uneven) performance, followed by NTFS and then Dokany.
WinFsp appears to have very uneven performance here. In particular notice that opening 1000 files is slower than opening 2000 files, which makes no sense! I suspect that the test observes an initial acquisition of resouces when the test first starts, which is not necessary when the test runs for 2000 files at a later time. This uneven performance should probably be investigated in the future.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_open_test.csv",file="WinFsp-Performance-Testing/file_open_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_open_test.png[]]
==== file_overwrite_test
This test measures the performance of CreateFileW(CREATE_ALWAYS) / CloseHandle. WinFsp is fastest, followed by NTFS and then Dokany.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_overwrite_test.csv",file="WinFsp-Performance-Testing/file_overwrite_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_overwrite_test.png[]]
==== file_list_test
This test measures the performance of FindFirstFileW / FindNextFile / FindClose. NTFS wins this scenario, likely because it can satisfy the list operation from cache. WinFsp has overall good performance. Dokany appears to show slightly quadratic performance in this scenario.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_list_test.csv",file="WinFsp-Performance-Testing/file_list_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_list_test.png[]]
==== file_delete_test
This test measures the performance of DeleteFileW. WinFsp has the best performance, followed by Dokany and NTFS with very similar performance.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/file_delete_test.csv",file="WinFsp-Performance-Testing/file_delete_test.png",opt="x-label=file count,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/file_delete_test.png[]]
=== Read/Write Tests
These tests measure the performance of cached, non-cached and memory-mapped I/O.
==== rdwr_cc_write_page_test
This test measures the performance of cached WriteFile with 1 page writes. NTFS and WinFsp with an infinite FileInfoTimeout have the best performance, with a clear edge to NTFS (likely because of its use of FastIO, which WinFsp does not currently support). WinFsp with a FileInfoTimeout of 0 or 1 performance is next, because WinFsp does not use the NTOS Cache Manager in this scenario. Dokany performance is last.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/rdwr_cc_write_page_test.csv",file="WinFsp-Performance-Testing/rdwr_cc_write_page_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_cc_write_page_test.png[]]
==== rdwr_cc_read_page_test
This test measures the performance of cached ReadFile with 1 page reads. The results here are very similar to the rdwr_cc_write_page_test case and similar comments apply.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/rdwr_cc_read_page_test.csv",file="WinFsp-Performance-Testing/rdwr_cc_read_page_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_cc_read_page_test.png[]]
==== rdwr_nc_write_page_test
This test measures the performance of non-cached WriteFile with 1 page writes. WinFsp has the best performance, followed by Dokany. NTFS shows bad performance, which of course make sense as we are asking it to write all data to the disk.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/rdwr_nc_write_page_test.csv",file="WinFsp-Performance-Testing/rdwr_nc_write_page_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_nc_write_page_test.png[]]
==== rdwr_nc_read_page_test
This test measures the performance of non-cached ReadFile with 1 page reads. The results here are very similar to the rdwr_nc_write_page_test case and similar comments apply.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/rdwr_nc_read_page_test.csv",file="WinFsp-Performance-Testing/rdwr_nc_read_page_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/rdwr_nc_read_page_test.png[]]
==== mmap_write_test
This test measures the performance of memory mapped writes. NTFS and WinFsp seem to have identical performance here, which actually makes sense because memory mapped I/O is effectively always cached and most of the actual I/O is done asynchronously by the system.
There are no results for Dokany as it seems to (still) not support memory mapped files:
----
Y:\>c:\Users\billziss\Projects\winfsp\build\VStudio\build\Release\fsbench-x64.exe --mmap=100 mmap*
mmap_write_test........................ KO
ASSERT(0 != Mapping) failed at fsbench.c:226:mmap_dotest
----
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/mmap_write_test.csv",file="WinFsp-Performance-Testing/mmap_write_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/mmap_write_test.png[]]
==== mmap_read_test
This test measures the performance of memory mapped reads. Again NTFS and WinFsp seem to have identical performance here.
There are no results for Dokany as it faces the same issue as with mmap_write_test.
ifdef::env-browser[chart::line[data-uri="WinFsp-Performance-Testing/mmap_read_test.csv",file="WinFsp-Performance-Testing/mmap_read_test.png",opt="x-label=iterations,y-label=time"]]
ifndef::env-browser[image::WinFsp-Performance-Testing/mmap_read_test.png[]]

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -1,7 +1,7 @@
/**
* @file tlib/callstack.c
*
* @copyright 2014-2022 Bill Zissimopoulos
* @copyright 2014-2024 Bill Zissimopoulos
*/
#include <tlib/callstack.h>

Some files were not shown because too many files have changed in this diff Show More