Compare commits

..

706 Commits

Author SHA1 Message Date
56873406e3 appveyor: run-perf-tests 2017-01-04 16:04:43 -08:00
40735c4687 sys: POOL_NX_OPTIN 2016-12-14 15:06:00 -08:00
08c283f2a9 tools: run-tests: reorder tests 2016-12-13 16:15:50 -08:00
4fc740588e tst: memfs: disable test that fails with --oplock option 2016-12-13 15:41:00 -08:00
54050c7e1d tst: memfs: stream_create_overwrite_test 2016-12-13 15:17:22 -08:00
ff08d63a82 sys,dll: Overwrite: named streams are now removed as per NTFS 2016-12-13 14:37:44 -08:00
c37444b0ae tst: memfs: reference counting and descendant enumeration improvements 2016-12-13 13:24:46 -08:00
bbb51b4971 sys,dll: Overwrite now correctly handles AllocationSize 2016-12-13 11:52:32 -08:00
6de998ff98 sys: rename: capture correct security context 2016-12-12 13:20:42 -08:00
4b024ebe74 sys: security: turns out that the AccessToken is not needed 2016-12-10 17:45:36 -08:00
418c454a4a dll: FspSetSecurityDescriptor: turns out that the AccessToken is not needed 2016-12-09 17:43:11 -08:00
0b61c48cd6 inc: fsctl: FSP_FSCTL_TRANSACT_REQ QueryDirectory: CaseSensitive 2016-12-09 15:35:55 -08:00
945509ef93 tools: run-tests: net use test 2016-12-09 14:43:10 -08:00
3a65ce332b dll,launcher: invariant string comparisons 2016-12-09 14:23:53 -08:00
228f9e2708 tst: memfs: MEMFS_REPARSE_POINTS conditional 2016-12-08 18:58:05 -08:00
ee3918436b fix erroneous file permissions 2016-12-08 18:43:49 -08:00
1bb6d2a0e7 installer: register MEMFS to accommodate bigger file sizes and more files 2016-12-08 12:54:22 -08:00
6d1b9e95db inc: winfsp: add comment regarding limitations of ReadDirectory/Offset 2016-12-08 09:18:09 -08:00
1d8d72129d sys: util: fix Delays when retrying MustSucceed allocations 2016-12-07 17:19:26 -08:00
2ad4e30754 inc: fsctl: add FSP_FSCTL_FILE_INFO::HardLinks field 2016-12-07 16:43:55 -08:00
26cba02091 doc: minor fix in performance testing document 2016-12-07 14:47:10 -08:00
3697defd16 doc: update performance testing document 2016-12-06 22:14:39 -08:00
69a22f1044 doc: update WinFsp Testing document 2016-12-06 19:24:59 -08:00
5a49115a66 doc: fix case insensitive file names 2016-12-06 17:48:04 -08:00
82c8b0d00f doc: rename Performance Testing document 2016-12-06 17:36:47 -08:00
d00b5d88af doc: rename documents 2016-12-06 17:25:51 -08:00
6d19176d7c update README 2016-12-06 17:06:44 -08:00
e231b9c662 doc: add winfsp.h documentation in markdown format 2016-12-06 17:04:44 -08:00
025a74e663 rename .adoc files to .asciidoc 2016-12-06 16:57:09 -08:00
834adbdc36 restructure project to accommodate wiki 2016-12-06 16:40:32 -08:00
25c687d5c5 doc; winfsp-ipc: update document 2016-12-06 15:25:59 -08:00
200de2a7f9 doc: winfsp-ipc: WinFsp as IPC Mechanism 2016-12-06 09:50:37 -08:00
8e7c241f32 doc: perf-tests: update Performance Testing document 2016-12-05 16:37:31 -08:00
e530e671a5 doc: perf-tests: update Performance Testing document 2016-12-05 14:50:29 -08:00
d804f5674d tst: fsbench: disable rdwr sector tests as they are too slow 2016-12-05 11:54:59 -08:00
ac6f024715 fsbench: expand on read/write tests and fixes 2016-12-04 14:41:38 -08:00
a1af8ff921 sys: Queued Events and use fin FSP_IOQ 2016-12-03 19:41:26 -08:00
f7ca9f0522 tst: memfs: ReadDirectory im: optimization to improve quadratic behavior 2016-11-30 21:50:44 -08:00
3518d7a8c2 tst: memfs: ReadDirectory improvements 2016-11-30 16:12:00 -08:00
281d92f2bc doc: perf-tests: improve conditional check for AsciidocFX 2016-11-30 10:00:43 -08:00
7769a2c062 doc: perf-tests: typos 2016-11-30 09:43:10 -08:00
595a77bd2e doc: update perf-tests document 2016-11-29 23:42:41 -08:00
6860a6986a doc: update perf-tests document 2016-11-29 23:34:54 -08:00
63e8cf1090 doc: add perf-tests document and supporting files 2016-11-29 22:22:45 -08:00
7bdca634aa tools: run-perf-tests: only iterate 5 times 2016-11-29 12:43:25 -08:00
535babc0d5 tools: run-perf-tests 2016-11-27 16:32:45 -08:00
e86dcde1a1 tst: fsbench: improvements 2016-11-27 11:16:06 -08:00
6e10e0489b tst: fsbench: mmap tests 2016-11-26 22:09:40 -08:00
f82cad712a tst: fsbench: rdwr test 2016-11-26 20:50:35 -08:00
d12234bb01 tst: memfs: improve memory allocation scheme 2016-11-26 20:08:55 -08:00
10a8519294 tst: fsbench: file_open_test, file_overwrite_test 2016-11-26 12:01:01 -08:00
1b6395fc91 tst: fsbench: file_list_test 2016-11-25 15:10:07 -08:00
f1a363b848 tst: fsbench: simple benchmark program 2016-11-25 11:46:21 -08:00
eea1a8fd8b tst: winfsp-tests: disable tests that cannot work under a network share 2016-11-24 17:35:45 -08:00
5444ce7f50 sys: rename: only do MmFlushImageSection when ImageSectionObject is not NULL 2016-11-24 15:09:39 -08:00
29c140b9cd tst: winfsp-tests: delete_pending_test 2016-11-24 13:34:51 -08:00
cdfd60877b tst: winfsp-tests: delete_mmap_test 2016-11-24 13:26:50 -08:00
e7931e28fd tst: make non-essential and long running tests optional 2016-11-23 21:26:21 -08:00
002a0262f7 sys: FspFileNodeOplockCheckAsyncEx: DEBUGTEST 2016-11-23 21:23:57 -08:00
1ffba78a18 tst: winfsp-tests: oplock testing 2016-11-23 16:19:46 -08:00
1d3423d5fb tst: winfsp-tests: oplock testing 2016-11-23 16:11:24 -08:00
a894e4a2af tst: winfsp-tests: oplock testing 2016-11-23 15:41:28 -08:00
b6f084d71f tst: winfsp-tests: oplock testing 2016-11-23 11:46:46 -08:00
ca6d0d2dcf tst: winfsp-tests: disable oplock tests on shares 2016-11-22 22:15:46 -08:00
d6d781355f sys: DEBUGTEST_EX macro: fix 2016-11-22 22:20:14 -08:00
851a6145cd tst: winfsp-tests: oplock testing 2016-11-22 21:20:31 -08:00
aec7b34e13 tst: winfsp-tests: HookDeleteFileW: oplock testing 2016-11-22 20:21:35 -08:00
38006ba553 tst: HookMoveFileExW: fix problem with requesting oplock on same file 2016-11-22 18:30:08 -08:00
ee469b40e7 sys: FspFileNodeRename: handle cleaned up but not closed file 2016-11-22 17:27:52 -08:00
1f385a9ab5 sys: rename: bail early when attempting to replace directory 2016-11-22 15:47:34 -08:00
ba78fbb956 sys: rename: oplock refactoring 2016-11-22 14:18:10 -08:00
8f10ba4fc9 sys: file: GATHER_DESCENDANTS, SCATTER_DESCENDANTS macros 2016-11-22 11:32:40 -08:00
b0a59e42fc tst: add oplock testsuite run and disable some tests according to configuration 2016-11-21 16:45:10 -08:00
2e089b92c5 sys: FspFileNodeCheckBatchOplocksOnAllStreams: fix oplock related deadlock
- fix: initiate oplock break, release FileNode and wait for oplock break completion
2016-11-21 16:28:00 -08:00
37362cb8cc sys: file,wq: make oplock functions paged 2016-11-20 17:52:38 -08:00
127d4cc4eb sys: fsctl: oplock fixes 2016-11-20 15:27:24 -08:00
ce551d4e0d sys: oplock: refactoring/cleanup 2016-11-20 14:08:23 -08:00
53f60a698a tst: winfsp-tests: add oplock option 2016-11-19 22:58:40 -08:00
aa23672b01 sys: fsctl: enable oplock processing 2016-11-18 22:20:03 -08:00
e4de0f0513 sys: oplock: perform stream oplock checks
sys: rename: fix some rename issues
2016-11-18 18:38:15 -08:00
8750451e10 sys: FspFsvolDeviceEnumerateContextByName, FspFileNodeRename: bugfix: properly enumerate/rename streams 2016-11-16 14:34:01 -08:00
358db2a54f sys: oplock: misc fixes and improvements 2016-11-16 13:34:43 -08:00
4294182c1a sys: oplock testing 2016-11-15 17:05:05 -08:00
f17168f2fa sys: oplock testing: DEBUGTEST_EX 2016-11-15 13:17:49 -08:00
959d8537c6 sys: oplock testing 2016-11-14 20:36:51 -08:00
6a48087d5f sys: create: oplock testing 2016-11-14 17:28:53 -08:00
0a59c5d685 tools: add executable bit to batch files 2016-11-14 17:21:00 -08:00
5b1b8288c2 sys: create: FspFsvolCreateOpenOrOverwiteOplock: fix typo 2016-11-14 17:15:09 -08:00
53e2f13e38 sys: FspFileNodeRenameCheck 2016-11-14 11:20:32 -08:00
cb6b10385b sys: rename: oplocks 2016-11-13 22:06:53 -08:00
f49cf412a8 sys: fileinfo: oplocks 2016-11-13 10:45:24 -08:00
764b772731 sys: lockctl, read, write: oplocks 2016-11-12 18:01:27 -08:00
7518a6e418 sys: read, write: oplocks 2016-11-12 13:12:35 -08:00
2772af5478 sys: FspWqOplockPrepare: use work routine 2016-11-12 12:06:28 -08:00
f2535484ea sys: wq: WIP 2016-11-12 11:43:47 -08:00
97ee4fa77f sys: lockctl: oplocks 2016-11-12 11:32:37 -08:00
7c34d738b7 sys: wq: FspWqOplockPrepare, FspWqOplockComplete 2016-11-12 11:31:38 -08:00
93254bede4 sys: lockctl: oplocks 2016-11-11 22:54:09 -08:00
f3894dbc7b sys: cleanup: oplocks 2016-11-11 22:08:14 -08:00
dc684acd41 sys: create: oplocks WIP 2016-11-11 21:34:57 -08:00
69935525da sys: create: oplocks WIP 2016-11-11 17:58:57 -08:00
6ba6e16851 sys: create: oplocks: WIP 2016-11-11 17:06:19 -08:00
d33089331b sys: create: sharing violation oplock checks 2016-11-11 16:53:35 -08:00
74de84aaab sys: create: sharing violation oplock checks 2016-11-11 16:52:21 -08:00
a9b4fd4634 sys: FspFileNodeClose 2016-11-11 10:54:21 -08:00
c6798b3060 sys: create: move some code around 2016-11-11 09:39:17 -08:00
f6e3b8e416 sys: create: oplock: WIP 2016-11-11 09:30:29 -08:00
f05ebd9d20 sys: FspFsvolCreateSharingViolationWork 2016-11-10 18:14:17 -08:00
e50c9ff649 sys: IRP_MJ_CREATE: oplock support 2016-11-10 15:03:58 -08:00
fb70eccc9c sys: IRP_MJ_CREATE: oplock support 2016-11-10 14:54:41 -08:00
7adbd7a56c sys: FspIopSetIrpResponse 2016-11-10 13:20:03 -08:00
55c7384c65 sys: FspIopCreateRequestWorkItem 2016-11-10 12:40:21 -08:00
bc8962d2b6 sys: FspOplockBreakH 2016-11-10 12:29:11 -08:00
2267eadbca sys: disable oplock requests momentarily for testing 2016-11-10 12:12:35 -08:00
154aa28381 sys: FspFsvolFileSystemControlOplock: WIP 2016-11-10 12:11:35 -08:00
2d98cda607 sys: oplocks: WIP 2016-11-10 12:11:14 -08:00
8395b22ddc sys: oplocks: WIP 2016-11-10 12:10:55 -08:00
809505d8a3 appveyor: on_finish: perform verifier_query 2016-11-10 11:47:24 -08:00
9df0920de1 tools: run-tests: always do leak test (even on failures) 2016-11-10 11:47:15 -08:00
c10c7cc672 sys: FspFileNodeClose: ensure that cleanup also happens when Create fails 2016-11-10 11:47:06 -08:00
a0cb134bd3 sys: FspFsvolReadNonCached,FspFsvolWriteNonCached: reuse work Requests 2016-11-10 11:46:16 -08:00
becfd2e1c5 sys: request work item refactoring 2016-11-10 11:45:58 -08:00
1e93f0d10d sys: request work item refactoring 2016-11-10 11:45:38 -08:00
adeb847c7e sys: request work item refactoring 2016-11-10 11:45:17 -08:00
5a83c68f56 sys: request work item refactoring 2016-11-10 11:45:04 -08:00
9d176643c3 sys: driver.h: add static assert for size of FSP_FSCTL_TRANSACT_REQ_HEADER 2016-11-10 11:44:42 -08:00
b1d8192d59 sys: restrict build to Win7 2016-11-10 11:44:26 -08:00
bd3d462bce sys: FspFileNodeSetFileInfo: fix Release build warning 2016-11-06 18:44:58 -08:00
aa2d70d8de sys: FspFileNodeSetFileInfo: make CcSetFileSizes failures benign
tst: fscrash: test huge allocation size failures
2016-11-06 17:15:07 -08:00
31c40d017d sys: create: allow user mode file system to disable caching for individual files 2016-11-04 13:08:10 -07:00
5c8da5518c sys: FspFsvolCreate: clarify comment 2016-11-04 12:22:43 -07:00
a80a9d3d4c doc: update winfsp-testing.adoc 2016-11-04 09:58:01 -07:00
57580e91f5 tools: run-tests: fscrash 2016-11-04 00:32:16 -07:00
1a43619c5e tst: fscrash: WIP 2016-11-04 00:03:30 -07:00
aae6a15e5a tst: fscrash: WIP 2016-11-03 22:31:59 -07:00
f54ce6a65d tst: fscrash: WIP 2016-11-03 21:48:34 -07:00
ab0c2fc25c tst: fscrash: WIP 2016-11-03 20:39:28 -07:00
fd439add27 doc: winfsp-testing: add information about fscrash 2016-11-03 19:53:02 -07:00
8855a2b896 tst: fscrash: WIP 2016-11-03 19:18:53 -07:00
7c41ffd64e tst: fscrash: initial commit 2016-11-03 16:15:32 -07:00
621eb63029 doc: minor fix in winfsp-testing.adoc 2016-11-03 12:42:28 -07:00
f1b96f8a28 doc: add WinFsp Testing Strategy document 2016-11-03 12:39:14 -07:00
4512dac0a9 doc: update Changelog 2016-11-03 09:36:50 -07:00
deee32b743 tools: run-tests: perform leak-test after all WinFsp drives have been unmounted 2016-11-02 22:12:39 -07:00
5f1b723fab tools: run-tests: leak-test 2016-11-02 21:31:28 -07:00
453f1732dc tools: run-tests: leak-test: add output 2016-11-02 21:00:08 -07:00
8c8d669be8 tools: run-tests: leak-test: add output 2016-11-02 20:59:16 -07:00
53077d990a tools: run-tests: leak-test 2016-11-02 20:16:18 -07:00
c665812d76 sys: FspVolumeDelete: perform MmForceSectionClosed on open files
- this removes them from the Mm Standby List
2016-11-02 18:27:38 -07:00
b56379b542 tools: run-tests: simple standby list test 2016-11-02 16:22:47 -07:00
83c1489b92 sys: FspVolumeMountNoLock: dereference FsvrtDeviceObject on success
resolves a VPB/FsvrtDeviceObject leak
2016-11-02 13:00:46 -07:00
3e3aa7651f dll: UmFileContextIsUserContext2, UmFileContextIsFullContext support 2016-11-01 18:49:28 -07:00
ec2cf5106d src: ioctl.i: comment out symbol that does not exist during Debug build on AppVeyor 2016-11-01 16:10:19 -07:00
25322059b3 appveyor: build Debug and Release configurations 2016-11-01 16:03:00 -07:00
a255fa11e7 tst: winfsp-tests: disable FILE_FLAG_NO_BUFFERING mmap test against localhost share (Win8 bug) 2016-11-01 14:56:01 -07:00
dbb8b5d3b9 tst: winfsp-tests: --share option now allows running tests against remote share 2016-11-01 13:32:51 -07:00
4c6a61d2c9 tst: winfsp-tests: refactoring/fixes when running --ntfs/--external tests 2016-11-01 11:13:25 -07:00
ac4828ec11 tools: run-tests: disable rdwr_mmap and reparse_symlink tests which currently fail under redirector/SRV2 2016-10-31 12:18:53 -07:00
e0f163e9ba sys: maintain FO_FILE_MODIFIED bit 2016-10-29 13:04:13 -07:00
9bcd8dcb8e sys: FspIopCompleteIrpEx: handle SRV2 query directory completion 2016-10-28 16:33:54 -07:00
096e5b7eb1 Revert "sys: FspFsvolDirectoryControlComplete: support SRV2 queries"
This reverts commit 7f2426271c.
2016-10-28 11:43:26 -07:00
1c85fb94f0 sys: FspFileNodeCleanupComplete, FspFileNodeClose: fix problem with OpenCount handling 2016-10-27 23:57:27 -07:00
4417ebcc92 sys: util: FspSafeMdlCreate: assertion fix 2016-10-27 23:30:16 -07:00
5fa631339d sys: FspFsvolSetRenameInformation: correctly compute Suffix for SRV2 renames 2016-10-27 11:44:43 -07:00
26092211a8 tst: winfsp-tests: --external tests done within a temporary directory 2016-10-26 20:24:57 -07:00
50af8f6444 tools: run-tests: winfsp-tests --external 2016-10-26 16:55:17 -07:00
ee0031f995 sys: FspFsvolQueryInformation: add stub FileEaInformation support 2016-10-26 16:45:18 -07:00
75ff7f2c01 tools: run-tests: add net share tests (currently multiple failures) 2016-10-26 16:03:20 -07:00
3e557e1b65 tools: run-tests: add case-insensitive option when testing dir mounts 2016-10-26 15:09:46 -07:00
79bf651203 tst: winfsp-tests: add WINAPI for Hook* and Resilient* APIs 2016-10-26 15:11:06 -07:00
205a59dbc6 tst: winfsp-tests: ResilientRemoveDirectoryW 2016-10-26 14:36:38 -07:00
8f54152096 tst: winfsp-tests: WIP 2016-10-26 13:59:21 -07:00
5e71992153 tst: winfsp-tests: WIP 2016-10-26 13:40:30 -07:00
dfe45e1be5 tst: winfsp-tests: WIP 2016-10-26 13:27:49 -07:00
ff7a446194 tst: winfsp-tests: WIP 2016-10-26 13:16:27 -07:00
17056b4f3f tst: winfsp-tests: always use CreateDirectoryW 2016-10-26 12:48:30 -07:00
b19621233a tst: winfsp-tests: HookCreateDirectoryW, HookMoveFileExW, HookFindFirstFileW 2016-10-26 12:37:36 -07:00
e07ef0712e tst: winfsp-tests: HookRemoveDirectoryW 2016-10-26 12:08:29 -07:00
0532cee99c tst: winfsp-tests: refactor hooks 2016-10-26 12:02:30 -07:00
b072a1f0da tst: winfsp-tests: add license headers 2016-10-25 20:29:05 -07:00
badaf82462 tst: winfsp-tests: --resilient command line option 2016-10-25 20:19:04 -07:00
3f79b2e46d tst: winfsp-tests: --resilient command line option 2016-10-25 15:35:46 -07:00
319e5d4ee6 tst: winfsp-tests: --resilient command line option 2016-10-25 14:50:12 -07:00
66d5fe98df tst: winfsp-tests: add --ntfs option 2016-10-25 14:03:26 -07:00
8abadf94f3 tst: winfsp-tests: minor fix 2016-10-25 12:52:06 -07:00
728c1b3402 tst: winfsp-tests: add/remove network shares from memfs_start/memfs_stop to properly support test file system 2016-10-25 11:38:26 -07:00
8b31b1018b tst: winfsp-tests: abort messages 2016-10-25 11:15:47 -07:00
310fd23035 tst: winfsp-tests: initial network share support 2016-10-25 11:04:53 -07:00
7f2426271c sys: FspFsvolDirectoryControlComplete: support SRV2 queries 2016-10-23 21:53:45 -07:00
3cfa4156d2 sys: IRP_MN_QUERY_DIRECTORY: prep work to handle non-NULL Irp->MdlAddress 2016-10-23 17:47:57 -07:00
23dadcf8a0 dll,tst: do not add dot entries for root directory 2016-10-23 11:03:44 -07:00
e0b0b1b367 sys: read,write: IRP_MN_MDL improvements 2016-10-22 14:04:31 -07:00
a525e095d3 sys: check Response->IoStatus.Information for Read, Write, QueryDirectory 2016-10-21 21:46:47 -07:00
e16dfd8a43 dll: debug: QueryStreamInformation logging 2016-10-21 21:02:59 -07:00
3bf4140f91 sys,dll: backup/restore privilege support 2016-10-21 19:13:05 -07:00
b194a33406 tst: winfsp-tests: backup/restore privilege testing 2016-10-21 17:43:25 -07:00
0dd452fac1 tools: run-tests: improvements 2016-10-20 18:48:39 -07:00
df11a7d7ff dll: FspAccessCheckEx: fix traverse check problem with reparse points 2016-10-20 18:32:01 -07:00
51d29c172a tools: run-tests: improvements 2016-10-20 17:52:41 -07:00
2803a1b0cf tools: run-tests: correctly test ERRORLEVEL 2016-10-20 16:48:36 -07:00
067a0f1b37 dll: API polishing 2016-10-20 16:32:12 -07:00
03611b6210 sys: FspFsvolSetRenameInformation: when doing an exact case rename do not send it to the user mode file system 2016-10-19 16:15:23 -07:00
2ff60e5e98 tst: memfs: Rename: fix problem when renaming names differing in case only 2016-10-19 15:52:22 -07:00
488993d22b doc: update Changelog 2016-10-19 14:32:00 -07:00
3cba22b9a5 tst: winfsp-tests: replace abort with ABORT in HookCreateFile, etc. 2016-10-19 13:56:15 -07:00
a3e577b091 tst: winfsp-tests: create_notraverse_test: fix security descriptor 2016-10-19 13:55:23 -07:00
9b287fb559 tst: winfsp-tests: create_notraverse_test 2016-10-19 12:40:52 -07:00
f642ea57be dll: FspAccessCheckEx: test access checks without traverse privilege 2016-10-19 11:54:22 -07:00
cb17b7e2e0 dll: FspFileSystemSetMountPoint: testing 2016-10-18 14:08:58 -07:00
82a9c8e80f dll: FspFileSystemSetMountPoint: now supports directories 2016-10-17 21:04:22 -07:00
628dae38d7 case-insensitivity testing 2016-10-17 15:33:23 -07:00
958b5a47a8 installer: include product version in product name 2016-10-17 15:05:45 -07:00
8d38a0dac6 sys,dll: support file name normalization 2016-10-17 14:23:56 -07:00
a653a010ce ext: tlib: fix mistake in cmdline handling introduced in latest change 2016-10-17 13:19:20 -07:00
31eedbddb3 sys: create: OpenTargetDirectory handling moved before the Prepare phase 2016-10-17 11:05:49 -07:00
5bf913045e update submodules 2016-10-16 15:22:19 -07:00
a10a09d4e9 tst: winfsp-tests: dirnotify_test improvements 2016-10-16 14:58:37 -07:00
3e0db6da07 tst: winfsp-tests: dirnotify_test changed to catch filename case problems 2016-10-16 13:30:48 -07:00
77df532ac3 tst: winfsp-tests: getfileinfo_name_test 2016-10-16 13:14:36 -07:00
222da362ec tlib: catch unknown options in tlib_run_tests 2016-10-16 11:27:01 -07:00
3ed7847d84 tst: test case insensitivity
sys: FspFileNameIsValid: $DATA is case insensitive
2016-10-15 19:50:47 -07:00
5773c6eab7 sys: FspFileNodeRename: acquire resource of descendant file nodes when renaming them 2016-10-14 22:47:10 -07:00
5a5a1008de sys: FspFileNameCompare, FspFileNameIsPrefix 2016-10-14 16:01:05 -07:00
32c289fa34 sys: FspFsvolFileSystemControlReparsePoint: replace use of RtlEqualUnicodeString with FspFsvolDeviceVolumePrefixInString 2016-10-14 15:13:52 -07:00
0534225662 sys: canonicalize filename related functions under the name FspFileName* 2016-10-14 14:47:16 -07:00
096b2dabde sys: refactor util.c into strutil.c; introduce FspIsNameInExpression to wrap FsRtlIsNameInExpression 2016-10-14 14:09:54 -07:00
5770f2d901 build: improve build versioning 2016-10-13 14:32:09 -07:00
12e40f908d tst: winfsp-tests: stream_rename_flipflop_test 2016-10-13 00:17:48 -07:00
42745e2239 sys: FspFileNodeRename: correctly handle rename of closed by referenced descendant files 2016-10-12 23:52:54 -07:00
249c1a5cb8 sys: FspFsvolDeviceEnumerateContextByName: fix bug that manifested itself as hanging renames 2016-10-12 20:08:17 -07:00
233904fd51 dll: move STATUS_FILE_IS_A_DIRECTORY collision check to fsop.c from memfs 2016-10-12 12:15:19 -07:00
3e0f2316a7 dll: special case STATUS_OBJECT_NAME_NOT_FOUND and STATUS_OBJECT_NAME_COLLISION to handle open/create via symlink
tst: memfs: support reparse point functionality over a named stream and fix status return on create collision over directory
2016-10-12 11:18:55 -07:00
bd952253fb cosmetic fix 2016-10-11 11:39:17 -07:00
c7780cf7fa license: switch to GPLv3 from AGPLv3 2016-10-10 21:33:27 -07:00
31b54ecc47 dll: FspAccessCheckEx: fix DELETE access check for named streams 2016-10-10 18:04:55 -07:00
4084448bd5 sys,dll: properly implement stream create check 2016-10-10 17:29:16 -07:00
4dc1828e1f update submodules 2016-10-10 15:36:17 -07:00
79b7b66b62 update submodules 2016-10-10 14:46:25 -07:00
612c820630 tst: memfs: add -D option to specify debug log file 2016-10-10 13:25:47 -07:00
e13233ef32 tst: memfs: add -D option to specify debug log file 2016-10-10 13:21:20 -07:00
dd815f3c39 doc: update Changelog 2016-10-10 11:50:34 -07:00
5faafc4d11 doc: update Changelog 2016-10-10 11:49:22 -07:00
78e5d031c0 installer: add RC and GOLD banners 2016-10-09 18:10:52 -07:00
9ef562df15 installer: choose install banner based on MyDevStage project variable 2016-10-09 17:27:33 -07:00
a7cdc815d0 installer: choose install banner based on MyDevStage project variable 2016-10-09 17:10:23 -07:00
bd5e15fe24 sys: FspFileNodeNotifyChange: implement/test stream notifications 2016-10-09 16:08:11 -07:00
214a8406eb art: wix dialog banner 2016-10-08 23:55:52 -07:00
6bd6f0ee35 inc: fsctl: increase request/response size to 16K
dll: remove /Gs[size] switch, fix FspFileSystemResolveReparsePoints to not use more than 4K of stack space
2016-10-08 23:33:59 -07:00
f8cebd1f92 dll: FspDebugLogSetHandle 2016-10-08 18:49:28 -07:00
f8f6d0f1bc tools: run-tests: include stream tests 2016-10-07 12:22:19 -07:00
b06132cb6b tst: winfsp-tests: stream_create_related_test 2016-10-06 20:42:05 -07:00
748c9b6409 tst: winfsp-tests: stream_getstreaminfo_test 2016-10-06 17:20:23 -07:00
bfc7fc5dec tst: winfsp-tests: stream_getstreaminfo_test 2016-10-06 17:06:23 -07:00
03f906f966 sys: FspFsvolQueryDirectoryCopy: minor fix 2016-10-06 16:51:40 -07:00
4b1111fcc5 tst: winfsp-tests: stream_getstreaminfo_test 2016-10-06 15:36:33 -07:00
86ddeed129 tst: memfs: GetStreamInfo 2016-10-06 15:36:09 -07:00
e2d4b36057 sys: FspFsvolQueryStreamInformation* testing 2016-10-06 15:35:40 -07:00
ab2908a9ee sys: FspFileNodeTrySetSecurity, FspFileNodeTrySetDirInfo 2016-10-06 12:41:23 -07:00
fd7b12bb61 tst: memfs: minor fix 2016-10-06 12:13:34 -07:00
eb2000a194 sys: FSP_FILE_NODE: correctly handle FileInfo cache in the presence of streams 2016-10-06 12:13:16 -07:00
e4cabc50c5 tst: winfsp-tests: stream_setfileinfo_test 2016-10-05 18:18:57 -07:00
92dc2feecd sys: use main file security cache 2016-10-05 17:38:16 -07:00
43f333e8a6 sys: FSP_FILE_NODE: change number field access through inline functions 2016-10-05 17:30:50 -07:00
59eb40fd9b tst: winfsp-tests: stream_getsecurity_test 2016-10-05 16:59:54 -07:00
d85d36c94f tst: memfs: MemfsFileNodeMapHasChild: fix problems with streams on directory 2016-10-05 15:21:33 -07:00
27b841faf8 sys: FspFileNodeOpen: refine main file vs stream sharing violations 2016-10-05 14:55:37 -07:00
c6967c737a sys: FspUnicodePathIsValid: check and return stream type 2016-10-05 13:44:32 -07:00
4ccbd1bdf6 tst: winfsp-tests: stream_create_test 2016-10-05 10:48:33 -07:00
0a8b8e8444 sys: create: validate FileName only after FileNode->FileName has been constructed 2016-10-05 10:27:17 -07:00
352450d538 sys: FspMainFileOpen 2016-10-05 00:32:04 -07:00
7e1861a9f5 tst: memfs: GetSecurityByName: fix FileAttributes for streams on directories 2016-10-04 23:00:42 -07:00
860e9db8a7 sys: FspMainFileOpen, FspMainFileClose, FspMainFileOpenCheck 2016-10-04 22:19:41 -07:00
1d435269bd sys: create: correctly compute file name lengths when streams are involved 2016-10-04 11:35:39 -07:00
e58ac1fbde sys,dll: pass NULL security descriptor to user-mode file system during Create 2016-10-03 21:02:43 -07:00
1f0f2fe094 tst: winfsp-tests: stream testing 2016-10-03 20:15:17 -07:00
d7ec331c74 tst: winfsp-tests: stream testing 2016-10-03 20:14:22 -07:00
938c036387 tst: winfsp-tests: stream testing 2016-10-03 18:27:09 -07:00
16f5bd089d tst: winfsp-tests: stream testing 2016-10-03 17:30:30 -07:00
6afea44e31 tst: winfsp-tests: stream testing 2016-10-03 17:13:19 -07:00
2859355fd8 tst: winfsp-tests: stream testing 2016-10-03 16:52:44 -07:00
75012d1301 tst: winfsp-tests: stream testing 2016-10-03 16:40:03 -07:00
8e1512c067 tst: winfsp-tests: stream testing 2016-10-03 16:31:43 -07:00
fa6b621042 tst: winfsp-tests: stream testing 2016-10-03 16:16:09 -07:00
8ffb359f20 tst: winfsp-tests: stream testing 2016-10-03 16:13:17 -07:00
203873ef04 tst: winfsp-tests: stream testing 2016-10-03 16:08:45 -07:00
e73bda3926 tst: winfsp-tests: stream testing 2016-10-03 15:57:34 -07:00
0186b82fea tst: winfsp-tests: stream testing 2016-10-03 15:30:08 -07:00
db38d2f7f8 tst: winfsp-tests: stream testing 2016-10-03 15:19:18 -07:00
016d015fe6 sys: file, callbacks: acquire MainFileNode resources if exists 2016-10-03 14:21:34 -07:00
87b2d4ca4c tst: memfs: MEMFS_NAMED_STREAMS macro 2016-10-03 11:55:39 -07:00
dfd6cbbde1 tst: memfs: support named streams 2016-10-03 10:58:55 -07:00
6a126da51d sys: IRP_MJ_CREATE: handle security descriptor and file attributes correctly for named streams 2016-10-03 10:29:46 -07:00
03df0a9c26 sys: renamed "main stream" to "main file" 2016-10-02 16:57:15 -07:00
5c3a82a074 tst: memfs: Cleanup: remove all named streams on delete 2016-09-28 17:11:30 -07:00
b591015b28 tst: memfs: Cleanup: remove all named streams on delete 2016-09-28 16:59:39 -07:00
fb9b798d3d tst: memfs: implement GetStreamInfo 2016-09-28 16:17:50 -07:00
cc408b71e1 sys: FspFsvolQueryStreamInformationCopy: add stream type ($DATA) to stream names 2016-09-28 16:17:10 -07:00
19a73ca01d update submodules 2016-09-27 17:01:40 -07:00
3992b9ebb1 update submodules 2016-09-27 15:56:29 -07:00
a46c0610c4 tst: memfs: MemfsFileNameHasPrefix: work to support named streams 2016-09-27 15:35:26 -07:00
495fc7a5dc sys: implement named stream open/close and related delete/share access issues 2016-09-27 14:53:59 -07:00
2ba46fdb71 ensure that all source files use UNIX newlines 2016-09-25 21:50:44 -07:00
7cb56bb132 sys: FspUnicodePathIsValid: improvements 2016-09-25 21:38:41 -07:00
687b02c1e6 tools: ntstatus,winerror: lookup status/error codes 2016-09-24 23:55:15 -07:00
218b162d75 update submodules 2016-09-24 22:46:49 -07:00
5e13c8750e sys: FspUnicodePathIsValid, FspUnicodePathIsValidPattern 2016-09-24 22:21:05 -07:00
2e71d2fe14 sys: FspFsvolQueryStreamInformationCopy: improvements 2016-09-24 17:32:35 -07:00
866e4abe10 sys: IRP_MN_QUERY_DIRECTORY: correctly handle STATUS_BUFFER_OVERFLOW cases 2016-09-24 17:16:58 -07:00
7894cc8b7b sys: fileinfo.c: minor comment change 2016-09-24 15:09:15 -07:00
0c810c52fa sys: IRP_MJ_QUERY_INFORMATION: FileStreamInformation 2016-09-24 13:59:02 -07:00
b06e947e0e tst: winfsp-tests: troubleshoot appveyor dirnotify failure 2016-09-21 15:07:51 -07:00
aed134080c inc: fsctl: PostCleanupOnDeleteOnly 2016-09-21 14:22:08 -07:00
3ce490d405 inc: fsctl: UmFileNodeIsUserContext2 2016-09-21 10:40:18 -07:00
76aabecbfb dll: fuse: fstypename, FileSystemName command line options 2016-09-20 21:27:48 -07:00
8eebfe811d sys: FspFsvolQueryFsAttributeInformation: fix buffer overrun error 2016-09-20 20:55:10 -07:00
5798527237 sys: FspFsvolQueryFsAttributeInformation: return full file system name 2016-09-20 16:30:03 -07:00
817beebb63 inc: fsctl: FSP_FSCTL_VOLUME_PARAMS changes:
- increase size of VolumePrefix
- add FileSystemName field (currently unused)
2016-09-20 15:37:42 -07:00
b7a2b5e17a build: bump version to 0.17 2016-09-20 14:26:20 -07:00
20e547c6d0 Merge branch 'master' of https://github.com/billziss-gh/winfsp 2016-09-19 17:25:50 -07:00
d0d0f60033 doc: SSHFS Port Case Study: Step 5: POSIX special files 2016-09-19 17:29:56 -07:00
fbc3d3efce Update Changelog 2016-09-19 15:11:01 -07:00
2c3f177314 tst: winfsp-tests: disable HookCreateFileW for now 2016-09-16 17:34:32 -07:00
91e8bb1229 tst: winfsp-tests: HookCreateFileW 2016-09-16 10:08:16 -07:00
4b48502232 tools: run-tests: correctly test ERRORLEVEL 2016-09-15 21:18:52 -07:00
74af44e2e7 sys: create: FspFsvolCreateNoLock: fix open of network drive root 2016-09-15 20:23:21 -07:00
915279d41d Merge branch 'master' of https://bitbucket.org/billziss/winfsp 2016-09-15 15:30:50 -07:00
316a2940dc sys: write: FspFsvolWriteCached: fix simple but major bug when using FILE_APPEND_DATA 2016-09-15 15:28:55 -07:00
453c1753ab doc: update Changelog 2016-09-15 13:41:18 -07:00
b11b622fc2 doc: Changelog formatting fix 2016-09-15 13:25:59 -07:00
f1ba60e172 doc: update Changelog 2016-09-15 13:09:24 -07:00
7c1b592b84 installer: add public (stripped) symbols 2016-09-15 11:49:42 -07:00
1e88fedb19 src: sys: FspFsvolCreateComplete: minor comment fix 2016-09-15 00:16:25 -07:00
5ecc92f2ba update submodules 2016-09-14 23:46:05 -07:00
5771eedc45 sys,dll: FspFileSystemResolveReparsePoints: use IO_REPARSE_TAG_SYMLINK instead of IO_REPARSE for symlink resolution
- FspFsvolCreateComplete STATUS_REPARSE handling changed to support device-relative symlink reparse points
2016-09-14 22:16:40 -07:00
46a29f663a inc: fsctl: simplify FSP_FSCTL_TRANSACT_RSP Rsp.Create.Reparse 2016-09-14 17:18:59 -07:00
49cd11b34b tst: memfs: GetSecurityByName: reparse point fix 2016-09-14 16:20:21 -07:00
aeff3dc21e dll: debug: add diagnostic information for FileSystemControl requests/responses 2016-09-14 16:17:20 -07:00
b7368336d2 dll: debug: add diagnostic information for FileSystemControl requests/responses 2016-09-14 15:02:40 -07:00
5afe7a5315 tools: run-tests: include reparse point tests 2016-09-14 11:28:34 -07:00
7815b9e2eb dll: fuse: directory symlinks can now be deleted 2016-09-14 10:41:32 -07:00
cbcea380ef dll: fuse: correctly handle NFS_SPECFILE_LNK reparse points, which are in POSIX UTF-16 format 2016-09-14 10:36:52 -07:00
10635db99b dll: fuse: reparse point fixes
- symlinks to directories have the FILE_ATTRIBUTE_DIRECTORY added
- new symlinks/special files are now created with correct uid/gid in fuse_context
2016-09-13 22:17:31 -07:00
cb00f913cc appveyor.yml: the previous version of Visual Studio 2015 is hosed too, so remove :( 2016-09-13 15:49:24 -07:00
c406c89158 appveyor.yml: choose previous version of VS2015 so that AppVeyor builds can complete 2016-09-13 15:45:42 -07:00
f600d51ace dll: fuse: SetReparsePoint testing 2016-09-13 15:17:59 -07:00
7401481d42 dll: fuse: allow opening of reparse points 2016-09-13 14:36:40 -07:00
2d3d92fb2d dll: fuse: reparse point testing 2016-09-13 13:41:09 -07:00
eca93bbdb3 installer: add diag.bat file to installation 2016-09-13 10:24:14 -07:00
5fa0c36c8f dll: relative symbolic link resolution testing 2016-09-13 00:14:35 -07:00
ea2cc54677 dll: relative symbolic link resolution testing 2016-09-12 22:45:47 -07:00
ccec269dd6 dll: relative symbolic link resolution testing 2016-09-12 21:50:25 -07:00
5888e9ab05 dll: relative symbolic link resolution testing 2016-09-12 21:42:02 -07:00
c12b88286d dll: fuse: warning fix 2016-09-12 20:26:14 -07:00
e412d735ed tst: winfsp-tests: reparse_symlink_relative_test 2016-09-12 19:55:35 -07:00
582997b5a4 tst: winfsp-tests: reparse_symlink_large_test 2016-09-12 18:13:25 -07:00
1647702a65 tools: add diag.bat diagnostics batch file 2016-09-12 15:45:48 -07:00
ccf58122a2 sys: FspFsvolFileSystemControlReparsePoint: comments 2016-09-12 15:27:31 -07:00
be8c29114a sys: FspFsvolFileSystemControlReparsePoint: improve computation of TargetOnFileSystem field when MUP is being used 2016-09-12 15:11:45 -07:00
30f2807e2b sys: FspGetDeviceObjectByName: PAGED_CODE() macro 2016-09-11 21:45:32 -07:00
25a2873556 sys: symbolic link testing 2016-09-11 17:18:56 -07:00
bd0acf2289 sys,dll: symbolic link testing 2016-09-11 17:04:01 -07:00
997476f015 sys,launcher: MUP volume prefixes (share names) are now case insensitive 2016-09-11 14:35:56 -07:00
f89c91cd10 sys,dll: SYMLINK_FLAG_RELATIVE 2016-09-11 13:18:54 -07:00
af2cc10c15 sys,dll: reparse point testing 2016-09-10 23:00:55 -07:00
0d25e73364 Submodule secfs.test now pulled from github
- run `git submodule sync` after pull
2016-09-09 22:12:55 -07:00
86d74371aa doc: add Native API vs FUSE document 2016-09-09 21:54:51 -07:00
f32e335855 bump version to 0.16 and update Changelog 2016-09-09 21:45:19 -07:00
165f3ec45d sys,dll: symlink testing 2016-09-09 21:21:24 -07:00
811696d939 sys,dll: reparse point testing 2016-09-09 19:40:37 -07:00
0c07be9628 sys,dll: reparse point testing 2016-09-09 17:21:56 -07:00
5dcbbaa4e7 tst: winfsp-tests: NFS reparse point testing 2016-09-09 15:24:33 -07:00
12b70f661f dll: fuse: nfs reparse point fixes 2016-09-09 15:14:40 -07:00
9b4b5abe48 tst: winfsp-tests: reparse point testing 2016-09-09 14:55:15 -07:00
5cd0dfb1b9 sys: reparse point testing 2016-09-09 14:42:22 -07:00
46ce4b1a6c dll: fuse: properly acquire op guard for reparse point operations 2016-09-09 11:43:49 -07:00
28a20d5199 dll: FspFileSystemOpLeave: bug fix 2016-09-09 11:29:09 -07:00
10ea9a833f dll: fuse: fixes 2016-09-09 11:23:29 -07:00
d9713668aa dll: FspFileSystemCanReplaceReparsePoint: fix 2016-09-09 11:09:41 -07:00
00c0574f1f tst: memfs: minor fix 2016-09-08 11:42:05 -07:00
44c86ff9a4 dll: fuse: use NFS reparse points for POSIX special files 2016-09-08 10:43:01 -07:00
28931f4687 tst: reparse point testing 2016-09-04 12:38:12 -07:00
80e07cead6 sys,dll: reparse point implementation: DeleteReparsePoint 2016-08-26 07:43:25 -07:00
b88b2ec51d dll: acquire exclusive lock during flush volume 2016-08-22 01:04:07 -07:00
82e4dcb4a1 inc: winfsp.h: minor srcdoc fix 2016-08-22 00:54:15 -07:00
34e653a275 dll: fsop: implement FSCTL_DELETE_REPARSE_POINT parameter checking 2016-08-22 00:40:01 -07:00
981e60643f dll: reparse points: allow file system to provide directory symlink behavior 2016-08-22 00:04:49 -07:00
fee75590a8 sys,dll: rename VolumeParams::ReparsePoints* fields 2016-08-21 23:36:09 -07:00
1298dd842d update test submodule 2016-08-21 09:37:16 -07:00
8334daa048 update test submodule 2016-08-21 07:46:56 -07:00
2f73bfa069 dll: reparse point implementation: fixes 2016-08-20 02:47:14 -07:00
d2d2dd5099 inc: winfsp.h: srcdoc corrections 2016-08-20 01:19:07 -07:00
146570dd74 dll: FspFileSystemResolveReparsePoints: return STATUS_OBJECT_PATH_NOT_FOUND when appropriate 2016-08-20 01:11:46 -07:00
f509281be4 dll: fuse: reimplement reparse point support using FspFileSystemFindReparsePoint and FspFileSystemResolveReparsePoints 2016-08-20 01:06:52 -07:00
613a564ca2 tst: memfs: implement reparse points 2016-08-19 23:33:40 -07:00
7ffc60f512 dll: reparse point implementation: WIP 2016-08-19 10:24:03 -07:00
499a0cb866 dll: fuse: GetReparsePoint: return STATUS_NOT_A_REPARSE_POINT when appropriate 2016-08-15 08:05:09 -07:00
edff3054db dll: fuse: disallow deletion of reparse point (which we cannot support) 2016-08-15 07:21:05 -07:00
f7e0362350 sys,dll: reparse point implementation: WIP 2016-08-15 04:53:11 -07:00
7337f3c6cd sys,dll: symbolic link (reparse point) support: WIP 2016-08-04 11:25:35 -07:00
ab278d7b60 Merge branch 'master' into symlink 2016-07-31 00:16:38 -07:00
858df29ba2 Merge branch 'master' of https://github.com/billziss-gh/winfsp 2016-07-28 23:51:34 -07:00
4366866653 launcher: SvcInstanceStart: STATUS_TIMEOUT is not error; handle it correctly 2016-07-28 23:50:49 -07:00
e4b808806c Update README.md 2016-07-28 17:03:47 -07:00
13cee6e019 Update Changelog 2016-07-28 16:54:07 -07:00
35b9cb15a3 tst: do not test for read-only buffer during Write when not on Win8+ 2016-07-28 16:37:49 -07:00
0d8f0f9ac8 Merge branch 'master' of https://bitbucket.org/billziss/winfsp 2016-07-28 14:56:40 -07:00
a4e2ad9dd6 dll: FspFsctlStop: fix problem in call to DeviceIoControl
- The DeviceIoControl was invoked in an incorrect fashion that nevertheless worked in Win64, but not Win32.
2016-07-28 14:56:06 -07:00
9b4318c655 sys: fix request header alignment on 32-bit builds 2016-07-28 09:57:31 -07:00
5827b1fa9c sys: fixes for Win7 x86 2016-07-28 00:03:53 -07:00
913f7ac9cd dll: suppress compiler warning on x86 builds 2016-07-27 16:25:41 -07:00
0e2f46dc90 Define NTDDI_VERSION,_WIN32_WINNT; remove GetOverlappedResultEx
- Ensures that only Vista+ DDI/API's are used
- Project should now run on Win 7
2016-07-27 16:15:28 -07:00
a8d76d3e46 sys, dll: reparse point (symbolic link) support: WIP 2016-07-25 21:27:48 -07:00
380ec074ca sys: ioq: clarify comment 2016-07-23 18:43:02 -07:00
e7cba96c74 Update README 2016-07-21 14:08:00 -07:00
03db443406 Update README 2016-07-20 23:41:55 -07:00
0b65bc7e01 Update README 2016-07-19 21:08:02 -07:00
12e1caaa98 Update README 2016-07-19 21:02:14 -07:00
7a690a789b Update README 2016-07-19 12:21:21 -07:00
8ca419830c art: installer banners 2016-07-17 16:55:12 -07:00
c310d8ea1b art: installer banners 2016-07-17 16:46:54 -07:00
c3ddf73661 art: add installer banners 2016-07-17 16:26:47 -07:00
6b00b8e28a art: add winfsp icon and installer banners 2016-07-17 16:24:21 -07:00
35c722e91b appveyor: enable verifier for FSD 2016-07-15 23:10:44 -07:00
ae8802514b appveyor: enable verifier for FSD 2016-07-15 23:04:45 -07:00
e90aa46a27 build: bump version to 0.15 2016-07-15 22:43:40 -07:00
760cd5e46f opt: cygfuse: bump release number to 3 2016-07-15 17:58:17 -07:00
b36b6c60e2 inc: fuse: allow for future expansion of fsp_fuse_env 2016-07-15 17:52:24 -07:00
e4984bf675 doc: update Changelog 2016-07-15 17:49:08 -07:00
0c8bcd5d7d doc: update Changelog 2016-07-15 17:39:57 -07:00
b5d8cd3ea6 installer: wix: avoid using autogenerated GUID for INSTALLDIR component 2016-07-14 11:13:26 -07:00
af5f409233 dll: np: improve username/password prompts 2016-07-13 23:19:11 -07:00
cffb066d46 ext/test/winfstest: fix build with VS2015 Update 3 2016-07-11 21:21:05 -07:00
804434d836 dll: fuse: respect the uid,gid,umask options which were being ignored 2016-06-30 23:47:01 -07:00
f7595e40b6 dll: np: FSP_NP_CREDENTIAL_MANAGER 2016-06-29 23:31:07 -07:00
669dd07ce2 dll: np: credentials testing 2016-06-29 22:35:00 -07:00
b6fa54d301 update Changelog 2016-06-29 18:09:06 -07:00
342e7e39e2 tst: secret: small program to aid with testing launcher secrets 2016-06-29 16:27:01 -07:00
9dfdd19616 launcher: startWithSecret testing 2016-06-29 16:10:27 -07:00
2c651b1bd8 launcher: check Credentials registry value during svc instance creation 2016-06-29 15:02:15 -07:00
41764f7b41 launcher, launchctl: fixes 2016-06-29 13:05:15 -07:00
08e697c52c launcher: send the password to service instance as UTF-8 2016-06-29 12:34:06 -07:00
66cc043149 dll: np: credentials support 2016-06-29 12:18:53 -07:00
518cd0e8c0 launcher, launchctl: StartWithSecret 2016-06-28 23:09:10 -07:00
c0344f53b0 Merge branch 'master' into launchpass 2016-06-28 12:10:27 -07:00
76445a5403 bump version to 0.14 2016-06-28 12:10:08 -07:00
0577b8febb dll: posix: use the S-1-0-65534 <-> 65534 for the unmapped SID/UID 2016-06-28 11:45:35 -07:00
610a7ac2a6 dll: np: support launcher passwords: WIP 2016-06-28 11:26:25 -07:00
e33fda4d00 doc: Changelog 2016-06-25 16:26:56 -07:00
2151e193dc doc: Changelog 2016-06-25 16:25:14 -07:00
ccfaf04f76 opt: cygfuse: libfuse.dll.a symlink 2016-06-24 22:25:25 -07:00
7e8d9fb986 dll: posix: map unmapped UID to S-1-5-7 (Anonymous) 2016-06-24 16:28:38 -07:00
37b6936ad0 dll: posix: FspNullSid, FspNullUid 2016-06-24 00:19:20 -07:00
3683afe203 dll: posix: FspNullSid, FspNullUid 2016-06-23 23:42:37 -07:00
a3cfc84007 inc,dll: winfsp: FSP_FILE_SYSTEM_INTERFACE
Consolidate SetFileSize/SetAllocationSize
2016-06-23 14:30:01 -07:00
ee5c584614 inc: winfsp: FSP_FILE_SYSTEM_INTERFACE: ensure it has 64 entries 2016-06-23 00:33:18 -07:00
b8b15e8035 dll: FspFileSystemSetMountPoint, FspFileSystemRemoveMountPoint
Ensure that mapped drives get cleaned up even if file system dies
2016-06-22 23:16:22 -07:00
3db09be764 opt: cygfuse: minor fix in fuse.cygport 2016-06-22 11:45:11 -07:00
f2a0eb544e opt: cygfuse: rename cygfuse.cpp to cygfuse.c and fix fork problem 2016-06-22 11:12:33 -07:00
8c1c407b34 opt: cygfuse: undef _WIN32, _WIN64 symbols before including fuse*.h 2016-06-21 21:43:02 -07:00
8dc4225ea1 opt: cygfuse: can build cygport from working tree (make cygport) 2016-06-21 21:17:39 -07:00
ed0b83c84d opt: cygfuse: fuse.cygport now provides primary VERSION 2016-06-21 14:40:18 -07:00
71c68d1e17 opt: cygfuse: fuse.cygport and related changes 2016-06-21 14:16:52 -07:00
053a5f1e4b update README 2016-06-21 10:54:52 -07:00
e5d7f4ee9a opt: cygfuse 2016-06-21 10:50:19 -07:00
d6fb076cad opt: cygfuse 2016-06-21 00:35:36 -07:00
698b711df4 doc: SSHFS Port Case Study: Step 4 2016-06-17 18:17:54 -07:00
842f649f06 update README 2016-06-17 15:28:06 -07:00
b062df9c42 update README 2016-06-17 15:26:57 -07:00
f0385e3c7d update README 2016-06-17 15:24:51 -07:00
10ce221fcc update README and rename Contributors document 2016-06-17 15:20:41 -07:00
3f3092bdae build: update version to 0.13 2016-06-17 15:12:42 -07:00
29496a35be inc: fuse: use FSP_FUSE_SYM to define FUSE symbols 2016-06-17 14:24:15 -07:00
99a1e331b5 dll: eventlog: move source under Application and other improvements 2016-06-16 13:29:37 -07:00
68d79b0c3b dll: convert all initialization to the initonce pattern 2016-06-16 12:17:38 -07:00
b695ef8ad8 dll: fuse: only use the environment's malloc prior to fsp_fuse_loop
- this allows an environment like Cygwin to safely call fork prior to fuse_loop/fuse_loop_mt
2016-06-15 23:12:08 -07:00
b8ec5ba019 dll: fuse: improve signal handling under Cygwin 2016-06-15 11:21:41 -07:00
958f694b6f dll: fuse: Cygwin signal handling support 2016-06-14 21:36:08 -07:00
e227ae5751 inc: fuse: add fuse_flock definition 2016-06-13 17:21:40 -07:00
007ec8f360 dll: fuse: testing 2016-06-13 01:15:42 -07:00
00976b92b8 dll: fuse: remove PersistentAcls options; it is always enabled 2016-06-13 00:52:48 -07:00
9b56b3a420 dll: fuse: testing 2016-06-12 23:27:28 -07:00
adecc6fb25 dll: fuse: testing 2016-06-12 21:37:51 -07:00
b71d086ea7 dll: fuse: testing 2016-06-12 21:22:23 -07:00
382a6675da dll: fuse: testing 2016-06-12 16:47:40 -07:00
cbf8079324 dll: fuse: testing 2016-06-12 15:53:12 -07:00
1124e24a61 dll: fuse_intf: ReadDirectory reimplementation 2016-06-12 15:09:38 -07:00
c6bab18947 dll: fuse: testing 2016-06-11 17:10:27 -07:00
3310a4300e dll: fuse: testing 2016-06-11 15:47:28 -07:00
6347803392 dll: fuse: testing 2016-06-11 14:35:02 -07:00
259bd84cc9 dll: fuse: testing 2016-06-11 14:08:05 -07:00
6bc3ec7c8a dll: fuse: testing 2016-06-11 13:37:02 -07:00
cf66fc3931 dll: fuse_intf: eliminate <fcntl.h> dependency 2016-06-11 00:26:40 -07:00
8a5218b273 dll: fuse_intf: Flush implementation 2016-06-10 23:54:25 -07:00
e3ffa209eb dll: fuse_intf: Flush implementation 2016-06-10 23:51:21 -07:00
a8f0f58d35 dll: fuse_intf: Write implementation 2016-06-10 23:40:09 -07:00
beeae73c79 dll: fuse_intf: Write implementation 2016-06-10 23:36:19 -07:00
2aa683177e dll: fuse: rename fuseintf to fuse_intf 2016-06-10 23:19:13 -07:00
0437218691 dll: fuseintf: Read implementation 2016-06-10 23:13:46 -07:00
8a37cb9c36 dll: fuseintf: SetAllocationSize, SetFileSize 2016-06-10 22:59:28 -07:00
32912b587f dll: fuseintf: SetBasicInfo implementation 2016-06-10 22:14:23 -07:00
fb6a139c85 dll: fuseintf: CanDelete improvements 2016-06-10 21:30:59 -07:00
267ed97d36 dll: fuseintf: Rename implementation 2016-06-10 21:21:11 -07:00
53289f0c74 dll: fuseintf: SetVolumeLabel implementation 2016-06-10 18:44:34 -07:00
a4f687c635 dll: fuseintf: CanDelete implementation 2016-06-10 18:42:18 -07:00
55336e3dcf dll: fuseintf: Overwrite implementation 2016-06-10 17:32:51 -07:00
90d868c58f dll: fuseintf: GetVolumeInfo 2016-06-10 17:10:08 -07:00
e0386db270 dll: fuseintf: SetSecurity implementation 2016-06-10 17:00:42 -07:00
3490a379b0 dll: fuseintf: GetSecurity implementation 2016-06-10 16:18:49 -07:00
009728e2b7 dll: fuseintf: ReadDirectory implementation 2016-06-10 16:02:28 -07:00
240bdfeb39 dll: fuseintf: ReadDirectory implementation 2016-06-10 15:24:35 -07:00
ea8ed690f6 dll: fuseintf: ReadDirectory implementation 2016-06-10 00:41:30 -07:00
a94d41c6b4 inc: fuse.h: ensure compatibility with FUSE 2.8 fuse_operations 2016-06-09 22:28:27 -07:00
662df6544f dll: fuseintf: GetFileInfo implementation 2016-06-09 22:06:23 -07:00
15363e0256 dll: fuseintf: Cleanup implementation 2016-06-09 21:47:36 -07:00
c74f34eaf0 dll: fuseintf: Create implementation 2016-06-09 17:14:00 -07:00
bc777f2d91 dll: fuseintf: Open, Close implementation 2016-06-09 16:14:08 -07:00
a9868ba883 dll: fuse: implementation checkpoint 2016-06-09 16:03:40 -07:00
9d42c625cc dll: fuse: implementation checkpoint 2016-06-09 15:40:34 -07:00
afc498ba6e dll: fuse: include 0 -> STATUS_SUCCESS errno translation 2016-06-09 14:58:08 -07:00
e222c3ae72 dll: fuse: implementation checkpoint 2016-06-09 12:50:53 -07:00
90039ecd72 dll: fuse: implementation checkpoint 2016-06-09 10:16:20 -07:00
8f0f5b3d9e dll: fsp_fuse_op_enter, fsp_fuse_op_leave 2016-06-08 22:45:26 -07:00
0e8d694bdd dll: FSP_FILE_SYSTEM_OPERATION_GUARD now returns NTSTATUS 2016-06-08 22:15:24 -07:00
b0b15dff05 dll: fuse: refactor fuse_op to fuse_intf 2016-06-08 21:36:18 -07:00
0f63dddb32 dll: FspFileSystemOpEnter, FspFileSystemOpLeave 2016-06-08 20:43:52 -07:00
20fc185530 dll: fuse: fuse_operations WIP 2016-06-08 14:42:12 -07:00
6b99160625 dll: fuse: fsp_fuse_ntstatus_from_errno 2016-06-08 12:01:35 -07:00
1a406eb462 dll: FspNtStatusFromWin32: wrap unknown Win32 error codes as FACILITY_NTWIN32 status codes 2016-06-07 21:42:28 -07:00
70d5c095ca doc: SSHFS Port Case Study - Step 3 2016-06-07 17:36:23 -07:00
396997fb22 winfsp-tests: posix_map_path_test 2016-06-07 16:03:48 -07:00
8c8d80add3 dll: POSIX interop:
FspPosixMapPosixToWindowsPath, FspPosixMapWindowsToPosixPath
2016-06-07 13:00:15 -07:00
6bef445102 winfsp-tests: posix_map_sd_test 2016-06-07 00:39:43 -07:00
9edbe7012e winfsp-tests: posix_map_sd_test 2016-06-07 00:32:32 -07:00
bc5f5c02db winfsp-tests: posix_map_sd_test 2016-06-07 00:00:15 -07:00
326d6479ad winfsp-tests: posix_map_sd_test 2016-06-06 23:39:50 -07:00
54d343c4e4 winfsp-tests: posix_map_sd_test 2016-06-06 23:28:31 -07:00
96e048ec5e winfsp-tests: posix_map_sd_test 2016-06-06 23:11:03 -07:00
c46d8b2e0a winfsp-tests: posix_map_sd_test 2016-06-06 22:57:28 -07:00
bcfa4a326b dll: POSIX interop: minor fix 2016-06-06 12:15:28 -07:00
b451219bfc dll: POSIX interop: FspPosixMapSecurityDescriptorToPermissions 2016-06-06 12:10:30 -07:00
3286033191 dll: POSIX interop: FspPosixMapPermissionsToSecurityDescriptor 2016-06-06 00:33:26 -07:00
1432d711d8 dll: POSIX interop: FspPosixMapPermissionsToSecurityDescriptor 2016-06-06 00:24:45 -07:00
0d4aa15377 winfsp-tests: posix_map_sid_test 2016-06-05 11:45:18 -07:00
7fbaa8d37c winfsp-tests: posix_map_sid_test 2016-06-05 11:00:58 -07:00
229c3f81fa winfsp-tests: posix_map_sid_test 2016-06-05 00:34:44 -07:00
9ccb394b04 dll: POSIX interop 2016-06-04 23:46:29 -07:00
22da074ff7 dll: fuse: fuse_opt_parse: bugfix in handling templates of the form NAME=VALUE 2016-06-03 15:06:56 -07:00
e08b462566 dll: fuse: cosmetic fix 2016-06-03 14:13:30 -07:00
77e7147893 installer: fix message regarding memfs sample 2016-06-02 23:46:06 -07:00
7d4fc0f740 appveyor: build all branches 2016-06-02 23:32:17 -07:00
f0751f1fb3 dll: fuse: fixes 2016-06-02 23:35:11 -07:00
4e2aaa8a21 doc: add SSHFS Port Case Study document 2016-06-02 23:26:27 -07:00
8525c99d7a dll: fuse: minor fix 2016-06-02 20:49:34 -07:00
9b93c766c3 dll: fsctl, fuse: preflight check 2016-06-02 20:21:34 -07:00
7fef1b87f6 dll: fuse: fix usage message 2016-06-02 14:20:49 -07:00
190e2320c0 dll: fuse: ensure compatibility between winfsp and cygwin stat, etc. definitions 2016-06-02 14:07:29 -07:00
6910b67982 dll: fuse: implementation checkpoint 2016-06-02 13:24:44 -07:00
7e1906bad5 dll: 32-bit builds now include the MSVCRT default libraries (for __allmul symbol) 2016-06-02 13:21:28 -07:00
dddb55243b dll: fuse: implementation checkpoint 2016-06-02 12:11:37 -07:00
88b13082cb dll: fuse: implementation checkpoint 2016-06-02 09:49:55 -07:00
6d5abafdaa dll: fuse: implementation checkpoint 2016-06-02 09:40:56 -07:00
3f8e7273c3 dll: fuse: implementation checkpoint 2016-06-01 18:06:01 -07:00
8b8c567cf7 dll: fuse: remove extraneous newlines in log messages 2016-06-01 17:50:02 -07:00
da95f05b29 dll: fuse: fuseop.c 2016-06-01 16:44:11 -07:00
a53e79984a dll: fuse: implementation checkpoint 2016-06-01 16:05:30 -07:00
59a305b333 dll: fsp_fuse_opt_match: minor change 2016-06-01 12:15:59 -07:00
3620de44d1 dll: fuse: help system refactoring 2016-06-01 00:46:23 -07:00
3f3c02f3ce dll: fuse: help system refactoring 2016-06-01 00:39:27 -07:00
4b9945d9bf dll: fsp_fuse_main_real: implementation 2016-05-31 22:13:17 -07:00
19d400d251 dll: fsp_fuse_parse_cmdline, fsp_fuse_main_real: implementation checkpoint 2016-05-31 21:49:58 -07:00
b559c7405f dll: fuse_opt: support escaped options and related refactoring 2016-05-31 15:34:26 -07:00
765bb1e1a3 fuse: better handling of long (Cygwin64 vs Win64) 2016-05-31 11:12:01 -07:00
300ce8485b fuse: introduction of fsp_fuse_env and major refactoring 2016-05-31 10:53:22 -07:00
4a4dab14c5 inc: fuse: remove long references (as they have different size in Win64 and Cygwin64) 2016-05-31 09:46:02 -07:00
fd8a3ab786 dll: cygwin integration checkpoint 2016-05-31 00:02:45 -07:00
b7665478d9 dll: cygwin integration checkpoint 2016-05-30 22:33:27 -07:00
a938cb4fe6 dll, tst: fix 32-bit build 2016-05-30 15:19:36 -07:00
d12a256430 fuse_opt: fuse_opt_parse: remove backslash escaping for now 2016-05-30 00:17:58 -07:00
bcbba3e4cf fuse_opt: testing 2016-05-29 23:41:55 -07:00
10c3f6f507 fuse_opt: testing 2016-05-29 23:37:30 -07:00
ead273ae18 fuse_opt: testing 2016-05-29 23:31:53 -07:00
74a943d8d7 fuse_opt: implementation checkpoint 2016-05-29 23:05:54 -07:00
a40e7d8c56 fuse_opt: implementation checkpoint 2016-05-29 20:19:12 -07:00
187311bb5e fuse_opt: implementation checkpoint 2016-05-29 17:12:28 -07:00
e14a26b540 fuse_opt: implementation checkpoint 2016-05-29 15:56:19 -07:00
4850056bf6 tst: winfsp-tests: fuse_opt testing 2016-05-29 10:15:37 -07:00
3d3dcbe0c5 dll: fsp_fuse_opt_add_opt: testing 2016-05-28 17:53:11 -07:00
7ea13a967a dll: fsp_fuse_opt_insert_arg/fsp_fuse_opt_free_args: testing 2016-05-28 17:24:34 -07:00
c851e9c98e fuse_opt: implementation checkpoint 2016-05-28 16:07:20 -07:00
9e068049b3 fuse_opt: implementation checkpoint 2016-05-28 12:04:29 -07:00
f993cf7251 fuse_opt: implementation checkpoint 2016-05-28 11:41:12 -07:00
e8f35ac314 fuse_opt: implementation checkpoint 2016-05-28 11:02:55 -07:00
4d57a5c10e fuse_opt: implementation checkpoint 2016-05-27 00:04:50 -07:00
7db0f68dd7 fuse: implementation checkpoint 2016-05-25 18:34:36 -07:00
1f22bd3517 fuse: implementation checkpoint 2016-05-25 16:35:07 -07:00
91825106f1 fuse: implementation skeleton 2016-05-25 14:26:49 -07:00
9bceb577e3 dll: debug: minor fix: ensure that AccessToken is passed as a PVOID to FspDebugLog 2016-05-24 22:14:26 -07:00
2155cbadc3 ext/test: update submodule 2016-05-24 22:02:35 -07:00
71867f6779 sys, dll: IRP_MJ_SET_INFORMATION: perform access checks when replacing file during rename 2016-05-24 21:41:08 -07:00
214b43398f dll: FspAccessCheckEx: if the desired access includes DELETE or FILE_READ_ATTRIBUTES and access was denied, check with the parent 2016-05-24 15:37:16 -07:00
aa75d412ac sys: IRP_MJ_QUERY_VOLUME_INFORMATION: FileFsDeviceInformation: always return FILE_DEVICE_DISK to avoid problem with GetFileType failures 2016-05-23 22:23:47 -07:00
6be55aa515 memfs: allow empty VolumePrefix in command line 2016-05-23 17:16:06 -07:00
10c997ab6b dll: FspDebugLogRequest, FspDebugLoogResponse: improve log message consistency 2016-05-23 16:38:11 -07:00
1505b1f368 memfs: add -d (debug) switch 2016-05-23 13:47:07 -07:00
b004268583 src: dll: FspDebugLogRequest, FspDebugLogResponse 2016-05-23 12:36:49 -07:00
301e8fed62 src: dll: FspDebugLogRequest, FspDebugLogResponse 2016-05-23 11:40:23 -07:00
c2e38bcc97 src: dll: FspDebugLogRequest, FspDebugLogResponse 2016-05-23 11:09:24 -07:00
37b1dc440e tools: rename nmake-test.bat to nmake-ext-test.bat 2016-05-21 17:14:27 -07:00
c4b6e9bb47 appveyor.yml: improve build process 2016-05-21 14:49:25 -07:00
55f9053b1b appveyor.yml: build tests before running them 2016-05-21 14:26:53 -07:00
a53abe8ab6 appveyor.yml: explicitly clone submodules as AppVeyor does not do it automatically 2016-05-21 14:03:50 -07:00
5fa7ba3513 tools: run-tests: add fsx and winfstest tests 2016-05-21 13:31:18 -07:00
7e2c767997 ext: add secfs.test as submodule 2016-05-20 23:26:13 -07:00
d102edf1e9 tools: run-tests.bat: fix silly mistake 2016-05-20 21:27:40 -07:00
0412fac588 tools: run-tests 2016-05-20 21:14:11 -07:00
3935372956 update appveyor.yml: use appveyor command to add test output 2016-05-20 19:03:49 -07:00
d89baea193 memfs: do not update LastAccessTime on Open 2016-05-20 18:39:32 -07:00
599430e649 memfs: fix erroneous realloc 2016-05-20 18:17:00 -07:00
4f5e00474e memfs: handle FILE_ATTRIBUTE_ARCHIVE 2016-05-20 17:56:25 -07:00
16836c7cfb appveyor.yml: build on every push 2016-05-20 15:57:06 -07:00
ffded63c56 tst: lock-test: fix mistake in calling GetOverlappedResult when prior operation has returned error 2016-05-20 14:29:55 -07:00
0dba3ffe55 tools: add missing setlocal command to batch files 2016-05-20 10:58:12 -07:00
122592f332 update appveyor.yml 2016-05-20 10:25:48 -07:00
c4421bf3aa add appveyor.yml 2016-05-19 22:17:40 -07:00
222f015273 src: dll: FspFsctlStartService: return STATUS_NO_SUCH_DEVICE when WinFsp FSD does not exist 2016-05-19 19:17:07 -07:00
153eb42885 tools: build.bat: add setlocal command to avoid environment namespace polution 2016-05-19 16:31:02 -07:00
4d1aeeda4c tools: build.bat: better exit code handling to allow for CI 2016-05-19 13:28:13 -07:00
f2241fcee4 tools: build.bat: better exit code handling to allow for CI 2016-05-19 13:21:42 -07:00
f7adbaba92 dll: FspCallNamedPipeSecurely replaces CallNamedPipeW 2016-05-18 10:05:33 -07:00
fea92c4ae0 doc: add Service Architecture document 2016-05-17 18:59:16 -07:00
1e2f0930a2 inc: winfsp.h: add service related documentation 2016-05-17 16:21:18 -07:00
ab11ff2b39 dll: np: NPEnumResource: minor change 2016-05-17 13:01:20 -07:00
1e1b9cdda3 dll: NPOpenEnum, NPEnumResources, NPCloseEnum: testing 2016-05-17 11:49:31 -07:00
00ee25f904 dll: NPOpenEnum, NPEnumResources, NPCloseEnum: implementation 2016-05-17 00:39:26 -07:00
cf29bd5a58 dll: FspNpAddConnection3, FspNpCancelConnection: improve error handling 2016-05-16 21:35:52 -07:00
597dd43f23 launcher: fix bug in SvcInstanceCreate 2016-05-16 16:34:59 -07:00
1c3fc530f6 dll: np: NPAddConnection3, NPCancelConnection implementation 2016-05-16 15:48:27 -07:00
67c6cd453a dll: FspNpRegister: get NetworkProvider name from version info 2016-05-15 15:14:12 -07:00
7eec1649a4 installer: add requirement for VC++ redistributable to F.Developer feature description 2016-05-15 13:24:17 -07:00
9971472be7 launcher, launchctl: ensure that they build under all platforms/configurations 2016-05-15 11:22:19 -07:00
c1985bef6c installer: update installer to include launcher and launchctl and install launcher as a service 2016-05-15 10:05:39 -07:00
e4e2465bcb memfs: empty Mountpoint ("") now means autodetect (same as no MountPoint) 2016-05-14 23:52:37 -07:00
22d1f86ac1 launcher: AllocConsole if we are running as a service without one (DETACHED_PROCESS) 2016-05-14 23:18:43 -07:00
1a7d3b8f9e launcher: remove JOB_OBJECT_LIMIT_BREAKAWAY_OK, use JobControl=0 registry setting instead 2016-05-14 21:01:29 -07:00
768a393342 launcher, launchctl: add quit command on debug version of launcher 2016-05-14 21:00:02 -07:00
08a02d7b35 launcher:
- STOP_TIMEOUT vs KILL_TIMEOUT
    - JobControl registry value
2016-05-14 19:27:59 -07:00
3035ba2847 launcher: better handling of service instance stopping:
- instances are now launched in a job so that they get killed if the parent process dies
    - instances are killed after a timeout if they do not respond timely to console control events
2016-05-14 18:47:26 -07:00
147c90be9f launcher: minor bug fix 2016-05-13 15:25:31 -07:00
0822458238 launcher: SvcInstanceReplaceArguments 2016-05-13 14:30:54 -07:00
c322a4b14a launcher: testing 2016-05-13 13:13:08 -07:00
0c6300b97c launcher: testing 2016-05-13 12:38:30 -07:00
be952729c9 launcher, launchctl: testing 2016-05-13 12:07:30 -07:00
1802ac8878 launcher, launchctl: testing 2016-05-13 11:10:59 -07:00
5491187e1d launcher, launchctl: command line arguments are now numbered %1 to %9 2016-05-13 10:42:23 -07:00
ec2494433b launcher: fix deadlock when SvcPipeServer stops itself 2016-05-13 10:37:25 -07:00
0756649572 launchctl: fix usage string 2016-05-13 10:24:12 -07:00
8ccd44a1f7 launcher, launchctl: refactoring 2016-05-13 10:00:54 -07:00
2c51251cb7 launcher, launchctl: refactoring 2016-05-13 09:55:27 -07:00
35d2b3f626 launcher, launchctl: refactoring 2016-05-13 09:28:56 -07:00
26a9bb714b launchctl: major refactoring 2016-05-12 22:44:34 -07:00
13f2517a31 launchctl: major refactoring 2016-05-12 22:36:37 -07:00
da85f2aa08 launcher, launchctl: testing 2016-05-12 22:11:28 -07:00
22c324de69 launcher: testing 2016-05-12 17:19:48 -07:00
c42e2a5958 launcher: security model improvements 2016-05-12 15:31:35 -07:00
1c587dbcb7 version.properties: bump version to 0.11 2016-05-12 14:49:10 -07:00
bc2e87763e launcher, launchctl: add version info 2016-05-12 14:48:18 -07:00
724d177d0b launcher: security model improvements 2016-05-12 14:18:08 -07:00
6971f4d6ae launcher: access control 2016-05-12 13:44:07 -07:00
ceef2bf55e launcher: access check on client token 2016-05-11 21:35:12 -07:00
a81a766bbe launcher: named pipe SDDL 2016-05-11 20:37:44 -07:00
da839e39b8 launcher: SvcInstanceCreate improvements 2016-05-11 20:23:00 -07:00
ec21e830f1 launchctl: implementation 2016-05-11 17:40:49 -07:00
9ae28a5529 add launchctl project 2016-05-11 16:02:56 -07:00
1a14971911 launcher: improvements 2016-05-11 15:32:16 -07:00
ab48beb4ba launcher: List, Info command implementation 2016-05-11 15:20:23 -07:00
528cbd3295 launcher: named pipe implementation 2016-05-11 14:46:03 -07:00
c32d05c3b6 launcher: named pipe implementation 2016-05-11 13:31:07 -07:00
e82b06ae49 dll: FspServiceStop: early exit if service is already being stopped 2016-05-11 11:29:36 -07:00
457e151fa5 launcher: SvcInstance implementation 2016-05-10 16:48:21 -07:00
dc4109fc22 dll: refactor library.h into src/shared/minimal.h for reuse 2016-05-09 20:07:35 -07:00
2a69ad6710 add launcher project 2016-05-09 16:20:52 -07:00
d3ff12bf60 dll: FspServiceConsoleModeThread: fix stupid bug with command line argument handling 2016-05-09 14:51:30 -07:00
713ee8a917 memfs: add old memfs-main.c 2016-05-09 14:17:28 -07:00
f4744258a7 dll: FspServiceCtrlHandler: disable Shutdown handling 2016-05-09 13:50:36 -07:00
7e57edf72e dll: FspService: console mode further improvements with respect to console ctrl handling 2016-05-09 13:19:54 -07:00
89e4e8a96c dll: FspService: console mode testing 2016-05-09 12:35:51 -07:00
0c18b82cc2 dll: FspService: console mode improvements 2016-05-08 21:12:34 -07:00
57f9db6cc0 dll: FspService: console mode improvements 2016-05-08 17:57:08 -07:00
6da81be792 dll: FspService: console mode improvements 2016-05-08 17:46:09 -07:00
b77a749f93 dll: FspService: improve console mode handling 2016-05-08 17:23:12 -07:00
bb946d5a3a dll: streamline DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH handling 2016-05-08 16:22:07 -07:00
27a16e5c54 dll: service: testing 2016-05-07 22:37:17 -07:00
789222af68 dll: FspServiceRun 2016-05-07 17:25:49 -07:00
587fee93e9 dll, memfs: rename FspServiceRun to FspServiceLoop 2016-05-07 17:08:03 -07:00
077bbb0d65 memfs: convert to service 2016-05-07 17:00:58 -07:00
3d2a2dd90d dll: service: use FspServiceLog instead of FspEventLog 2016-05-07 14:57:39 -07:00
0b1bba36f8 dll: FspIsInteractive, FspServiceLog, FspServiceLogV 2016-05-07 14:55:19 -07:00
8dd5a03b51 dll: FSP_SERVICE: rename interactive mode to console mode 2016-05-07 13:30:12 -07:00
ac2e9f9882 dll: FSP_SERVICE 2016-05-07 12:56:32 -07:00
1017e7fda7 dll: FSP_SERVICE 2016-05-07 12:55:48 -07:00
125b612c9f winfsp-tests: eventlog-test.c 2016-05-06 15:58:33 -07:00
9addfa5899 dll: FspEventLogRegister, FspEventLogUnregister 2016-05-06 15:05:36 -07:00
12db7cf9dc dll: add eventlog.mc and related files 2016-05-06 13:15:29 -07:00
e53e915a72 dll: service, eventlog 2016-05-06 12:25:47 -07:00
d7a6f33d26 dll: add FSP_SERVICE and EventLog functionality 2016-05-06 11:41:45 -07:00
de973fa5ab dll: FspFileSystemRegister, FspFileSystemUnregister: rename and place in fsctl.c 2016-05-05 11:14:23 -07:00
205 changed files with 33112 additions and 2481 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "ext/test"]
path = ext/test
url = https://github.com/billziss-gh/secfs.test.git

63
Changelog.asciidoc Normal file
View File

@ -0,0 +1,63 @@
= Changelog
v1.0RC1::
This is the first Release Candidate. It has been tested for robustness and correct file system semantics in a variety of scenarios. Some of the more important changes:
- API has been polished and finalized.
- Sharing a (disk) file system over the network is supported.
- Case insensitive file systems are supported.
- Directories are supported as mount points.
- Access checks are performed correctly in the absense of the traverse privilege.
- Access checks are performed correctly in the presence of the backup and restore privileges.
v0.17::
This release brings support for named streams.
- Named streams (or alternate data streams) are additional streams of data within a file. When a file gets opened the main (default, unnamed) data stream of a file gets accessed. However NTFS (and now WinFsp) supports multiple data streams per file accessible using the `filename:streamname` syntax.
- WinFsp handles a lot of the hairy details regarding named streams, including sharing checks, pending delete checks, conflicts between the main and named streams, etc.
- User mode file systems that wish to support named streams must set the `FSP_FSCTL_VOLUME_PARAMS::NamedStreams` flag and must also be prepared to handle named streams on `Create`, `Cleanup`, etc. They must also implement the new `FSP_FILE_SYSTEM_INTERFACE::GetStreamInfo` operation. For more information on how to correctly handle named streams refer to the MEMFS sample.
v0.16::
This release brings support for reparse points and symbolic links as well as other minor changes.
- Reparse points are a general mechanism for attaching special behavior to files. Symbolic links in Windows are implemented as reparse points. WinFsp supports any kind of reparse point including symbolic links.
- The WinFsp FUSE implementation supports symbolic links. It also supports POSIX special files (FIFO, SOCK, CHR, BLK) as NFS reparse points (see https://msdn.microsoft.com/en-us/library/dn617178.aspx).
- User mode file systems that wish to support reparse points will have to set the `FSP_FSCTL_VOLUME_PARAMS::ReparsePoints` flag and implement the `FSP_FILE_SYSTEM_INTERFACE` methods `ResolveReparsePoints`, `GetReparsePoint`, `SetReparsePoint`, `DeleteReparsePoint`. More information in this blog article: http://www.secfs.net/winfsp/blog/files/reparse-points-symlinks-api-changes.html
- The installation now includes public symbol files for all WinFsp components shipped.
v0.15::
This is a minor release that brings support for Windows 7 and 32-bit OS'es.
- Fixes a number of issues for Windows 7. Windows 7 is now officially supported.
- Fixes a number of issues with the 32-bit FSD and user mode components. 32-bit versions of Windows are now officially supported.
v0.14::
This release includes support for file systems protected by credentials.
- WinFsp now supports file systems that require username/password to be unlocked (e.g. sshfs/secfs). Such file systems must add a DWORD registry value with name "Credentials" and value 1 under their WinFsp.Launcher service entry. The WinFsp network provider will then prompt for credentials using the `CredUIPromptForWindowsCredentials` API. Credentials can optionally be saved with the Windows Credential Manager.
- WinFsp-FUSE now uses the S-1-0-65534 <--> 65534 mapping for unmapped SID/UID's. The Anonymous SID mapping from the previous release had security issues.
v0.13::
This release includes a Cygwin package, an API change and some other minor changes:
- New Cygwin package includes `cygfuse-2.8.dll` and `libfuse-2.8.dll.a` for easy use in the Cygwin environment. This is currently offered as a separate download.
- Minor but breaking API change: `SetFileSize`/`SetAllocationSize` have been consolidated. Please refer to the documentation for a description of the changes.
- File system drive symbolic links (`DefineDosDeviceW`) now automatically cleaned up even if user mode file system crashes or is terminated forcefully.
- WinFsp-FUSE now maps unmapped UID's to the Anonymous SID (S-1-5-7). See: https://cygwin.com/ml/cygwin/2016-06/msg00359.html
v0.12::
Prior changes are not recorded in this Changelog.

View File

@ -1,12 +1,12 @@
The WinFsp project is Copyright (C) Bill Zissimopoulos. It is licensed
under the terms of the AGPLv3. The full text of this license follows
under the terms of the GPLv3. The full text of this license follows
below. Commercial licensing options are also available: Please contact
Bill Zissimopoulos <billziss at navimatics.com>.
-----------------------------------------------------------------------
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
@ -14,15 +14,17 @@ Bill Zissimopoulos <billziss at navimatics.com>.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
@ -31,34 +33,44 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
@ -67,7 +79,7 @@ modification follow.
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
@ -544,45 +556,35 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
@ -640,29 +642,40 @@ the "copyright" line and a pointer to where the full notice is found.
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
GNU General Public License for more details.
You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

View File

@ -1,5 +1,7 @@
# WinFsp - Windows File System Proxy
![WinFsp Demo](http://www.secfs.net/winfsp/files/cap.gif)
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.
Some of the benefits and features of using WinFsp are listed below:
@ -20,19 +22,55 @@ WinFsp consists of a kernel mode FSD (File System Driver) and a user mode DLL (D
The project source code is organized as follows:
* build/VStudio: contains the WinFsp solution and project files.
* doc: contains the WinFsp license, contributor agreement and additional documentation. The WinFsp design document can be found here.
* ext/tlib: contains a small test library originally from the secfs (Secure Cloud File System) project.
* inc/winfsp: contains public include files to be used when developing a user mode file system.
* src/dll: contains the source code to the WinFsp DLL.
* src/sys: contains the source code to the WinFsp FSD.
* tst/memfs: contains the source code to an example file system written in C++ (memfs).
* tst/winfsp-tests: contains the WinFsp test suite.
* build/VStudio: WinFsp solution and project files.
* doc: The WinFsp design documents and additional documentation can be found here.
* ext/tlib: A small test library originally from the secfs (Secure Cloud File System) project.
* ext/test: Submodule pointing to the secfs.test project, which contains a number of tools for testing Windows and POSIX file systems.
* inc/winfsp: Public headers for the WinFsp API.
* inc/fuse: Public headers for the FUSE compatibility layer.
* src/dll: Source code to the WinFsp DLL.
* src/dll/fuse: Source code to the FUSE compatibility layer.
* src/launcher: Source code to the launcher service and the launchctl utility.
* src/sys: Source code to the WinFsp FSD.
* opt/cygfuse: Source code for the Cygwin FUSE package.
* tst/memfs: Source code to an example file system written in C++ (memfs).
* tst/winfsp-tests: WinFsp test suite.
## Building
## Building and Running
In order to build WinFsp you will need Windows 10 and Visual Studio 2015. You will also need the Windows Driver Kit (WDK) 10.
In order to build WinFsp you will need the following:
* Windows 10
* Visual Studio 2015
* Windows Driver Kit (WDK) 10
* [Wix toolset](http://wixtoolset.org)
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`. For more information see this [document](http://www.secfs.net/winfsp/develop/debug/).
WinFsp is designed to run on Vista and above. It has been tested on the following platforms so far:
* Windows 7 Enterprise
* Windows 8 Pro
* Windows 10 Pro
* Windows Server 2012
## How to Help
I am looking for help in the following areas:
* 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, C#, 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/billziss-gh/winfsp/issues) ~~[BitBucket repository](https://bitbucket.org/billziss/winfsp/issues?status=new&status=open)~~. 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. If you decide to tackle any of those please coordinate with me as I am actively working on that issue list.
In all cases I can provide ideas and/or support.
## Where to Discuss
If you wish to discuss WinFsp there are now two options:
- [WinFsp Google Group](https://groups.google.com/forum/#!forum/winfsp)
- [Author's Twitter](https://twitter.com/BZissimopoulos)
## License
WinFsp is available under the [AGPLv3](http://www.gnu.org/licenses/agpl-3.0.html) license. If you find the constraints of the AGPLv3 too onerous, a commercial license is also available. Please contact Bill Zissimopoulos <billziss at navimatics.com> for more details.
WinFsp is available under the [GPLv3](http://www.gnu.org/licenses/gpl-3.0.html) license. If you find the constraints of the GPLv3 too onerous, a commercial license is also available. Please contact Bill Zissimopoulos <billziss at navimatics.com> for more details.

33
appveyor.yml Normal file
View File

@ -0,0 +1,33 @@
version: '{build}'
environment:
matrix:
- CONFIGURATION: Release
TESTING: Perf
install:
- git submodule update --init --recursive
- appveyor AddMessage "Change boot configuration and reboot" -Category Information
- bcdedit /set testsigning on
- if %TESTING%==Func verifier /standard /driver winfsp-x64.sys
- if exist %SystemRoot%\memory.dmp del %SystemRoot%\memory.dmp
- ps: Restart-Computer -Force
- ps: Start-Sleep -s 60
build_script:
- appveyor AddMessage "Reboot complete" -Category Information
- tools\build.bat %CONFIGURATION%
test_script:
- for %%f in ("build\VStudio\build\%CONFIGURATION%\winfsp-*.msi") do start /wait msiexec /i %%f /qn INSTALLLEVEL=1000
- if %TESTING%==Func appveyor DownloadFile http://www.secfs.net/winfsp/resources/Test.Filter.Driver.zip && 7z x Test.Filter.Driver.zip
- 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%
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION%
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION% ifstest
- if %TESTING%==Perf tools\run-perf-tests.bat %CONFIGURATION% baseline > perf-tests.csv && type perf-tests.csv & appveyor PushArtifact perf-tests.csv
- if exist %SystemRoot%\memory.dmp exit 1
on_finish:
- if exist %SystemRoot%\memory.dmp (7z a memory.dmp.zip %SystemRoot%\memory.dmp && appveyor PushArtifact memory.dmp.zip)
- verifier /query

BIN
art/winfsp-outln.afdesign Normal file

Binary file not shown.

BIN
art/winfsp-solid.afdesign Normal file

Binary file not shown.

BIN
art/winfsp-solid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
art/wixbanner.pxm Normal file

Binary file not shown.

BIN
art/wixdialog.pxm Normal file

Binary file not shown.

View File

@ -6,9 +6,9 @@
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License version 3 as published by the
* Free Software Foundation.
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the

View File

@ -2,7 +2,7 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product
Id="*"
Name="$(var.MyProductName)"
Name="$(var.MyProductName) $(var.MyProductVersion)"
Manufacturer="$(var.MyCompanyName)"
Version="$(var.MyVersion)"
Language="1033"
@ -17,10 +17,12 @@
Disallow="yes"
AllowDowngrades="no"
AllowSameVersionUpgrades="no"
DisallowUpgradeErrorMessage="An older version of [ProductName] is already installed. You must uninstall it before you can install this version."
DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
DisallowUpgradeErrorMessage="An older version of $(var.MyProductName) is already installed. You must uninstall it before you can install this version."
DowngradeErrorMessage="A newer version of $(var.MyProductName) is already installed." />
<Media Id="1" Cabinet="WinFsp.cab" EmbedCab="yes" />
<Property Id="P.LauncherName">$(var.MyProductName).Launcher</Property>
<Property Id="P.LauncherRegistryKey">SYSTEM\\CurrentControlSet\\Services\\$(var.MyProductName).Launcher\\Services</Property>
<Property Id="P.RegistryKey">Software\$(var.MyProductName)</Property>
<Property Id="INSTALLDIR">
<RegistrySearch
@ -38,18 +40,20 @@
<Directory Id="INCDIR" Name="inc" />
<Directory Id="LIBDIR" Name="lib" />
<Directory Id="SMPDIR" Name="samples" />
<Directory Id="SYMDIR" Name="sym" />
</Directory>
</Directory>
</Directory>
<DirectoryRef Id="INSTALLDIR">
<Component Id="C.INSTALLDIR">
<Component Id="C.INSTALLDIR" Guid="{F876F26E-5016-4AC6-93B3-653C0312A6CE}">
<RegistryValue
Root="HKLM"
Key="[P.RegistryKey]"
Name="InstallDir"
Type="string"
Value="[INSTALLDIR]" />
Value="[INSTALLDIR]"
KeyPath="yes" />
</Component>
</DirectoryRef>
<DirectoryRef Id="BINDIR" FileSource="..\build\$(var.Configuration)">
@ -80,11 +84,114 @@
<Condition>NOT VersionNT64</Condition>
</Component>
<!-- On Win64 ServiceInstall launcher-x64.exe -->
<Component Id="C.launcher_x64.exe.svcinst">
<File Id="launcher_x64.exe.svcinst" Name="launcher-x64.exe" KeyPath="yes" />
<ServiceInstall
Id="launcher_x64.exe.svcinst"
Name="[P.LauncherName]"
Description="$(var.MyDescription)"
Type="ownProcess"
Start="auto"
ErrorControl="ignore" />
<ServiceControl
Id="launcher_x64.exe.svcinst"
Name="[P.LauncherName]"
Start="install"
Stop="both"
Remove="uninstall" />
<Condition>VersionNT64</Condition>
</Component>
<Component Id="C.launcher_x86.exe">
<File Name="launcher-x86.exe" KeyPath="yes" />
<Condition>VersionNT64</Condition>
</Component>
<!-- On Win32 ServiceInstall launcher-x86.exe -->
<Component Id="C.launcher_x64.exe" Guid="88CDBE92-8B67-485A-838F-FA4AD37F306F">
<File Name="launcher-x64.exe" KeyPath="yes" />
<Condition>NOT VersionNT64</Condition>
</Component>
<Component Id="C.launcher_x86.exe.svcinst" Guid="E995D906-0273-4758-9B26-99A3A8CD143A">
<File Id="launcher_x86.exe.svcinst" Name="launcher-x86.exe" KeyPath="yes" />
<ServiceInstall
Id="launcher_x86.exe.svcinst"
Name="[P.LauncherName]"
Description="$(var.MyDescription)"
Type="ownProcess"
Start="auto"
ErrorControl="ignore" />
<ServiceControl
Id="launcher_x86.exe.svcinst"
Name="[P.LauncherName]"
Start="install"
Stop="both"
Remove="uninstall" />
<Condition>NOT VersionNT64</Condition>
</Component>
<Component Id="C.launchctl_x64.exe" Guid="2753623B-66F1-4514-B9C7-F879178DFF49">
<File Name="launchctl-x64.exe" KeyPath="yes" />
</Component>
<Component Id="C.launchctl_x86.exe" Guid="EBDEC4FB-07BB-47CA-BFFF-EB854CA2D22D">
<File Name="launchctl-x86.exe" KeyPath="yes" />
</Component>
<Component Id="C.diag.bat">
<File Name="diag.bat" Source="..\..\..\tools\diag.bat" KeyPath="yes" />
</Component>
<Component Id="C.memfs_x64.exe">
<File Name="memfs-x64.exe" KeyPath="yes" />
<RegistryKey
Root="HKLM"
Key="[P.LauncherRegistryKey]">
<RegistryKey
Key="memfs64">
<RegistryValue
Type="string"
Name="Executable"
Value="[BINDIR]memfs-x64.exe" />
<RegistryValue
Type="string"
Name="CommandLine"
Value="-i -n 65536 -s 67108864 -u %1 -m %2" />
<RegistryValue
Type="string"
Name="Security"
Value="D:P(A;;RPWPLC;;;WD)" />
<RegistryValue
Type="integer"
Name="JobControl"
Value="1" />
</RegistryKey>
</RegistryKey>
</Component>
<Component Id="C.memfs_x86.exe">
<File Name="memfs-x86.exe" KeyPath="yes" />
<RegistryKey
Root="HKLM"
Key="[P.LauncherRegistryKey]">
<RegistryKey
Key="memfs32">
<RegistryValue
Type="string"
Name="Executable"
Value="[BINDIR]memfs-x86.exe" />
<RegistryValue
Type="string"
Name="CommandLine"
Value="-i -n 65536 -s 67108864 -u %1 -m %2" />
<RegistryValue
Type="string"
Name="Security"
Value="D:P(A;;RPWPLC;;;WD)" />
<RegistryValue
Type="integer"
Name="JobControl"
Value="1" />
</RegistryKey>
</RegistryKey>
</Component>
</DirectoryRef>
<DirectoryRef Id="INCDIR" FileSource="..\..\..\inc">
@ -96,6 +203,20 @@
<File Name="winfsp.h" KeyPath="yes" />
</Component>
</Directory>
<Directory Id="INCDIR.fuse" Name="fuse">
<Component Id="C.fuse.h">
<File Name="fuse.h" KeyPath="yes" />
</Component>
<Component Id="C.fuse_common.h">
<File Name="fuse_common.h" KeyPath="yes" />
</Component>
<Component Id="C.fuse_opt.h">
<File Name="fuse_opt.h" KeyPath="yes" />
</Component>
<Component Id="C.winfsp_fuse.h">
<File Name="winfsp_fuse.h" KeyPath="yes" />
</Component>
</Directory>
</DirectoryRef>
<DirectoryRef Id="LIBDIR" FileSource="..\build\$(var.Configuration)">
<Component Id="C.winfsp_x64.lib">
@ -104,6 +225,26 @@
<Component Id="C.winfsp_x86.lib">
<File Name="winfsp-x86.lib" KeyPath="yes" />
</Component>
<!-- On Win64 copy fuse-x64.pc -->
<Component Id="C.fuse_x64.pc" Guid="407395D2-D076-411E-B1D0-D97E21E11A3C">
<File
Id="FILE.fuse_x64.pc"
Name="fuse.pc"
Source="..\build\$(var.Configuration)\fuse-x64.pc"
KeyPath="yes" />
<Condition>VersionNT64</Condition>
</Component>
<!-- On Win32 copy fuse-x86.pc -->
<Component Id="C.fuse_x86.pc" Guid="0568EBCB-782E-4C17-9B64-BAFCC43F64ED">
<File
Id="FILE.fuse_x86.pc"
Name="fuse.pc"
Source="..\build\$(var.Configuration)\fuse-x86.pc"
KeyPath="yes" />
<Condition>NOT VersionNT64</Condition>
</Component>
</DirectoryRef>
<DirectoryRef Id="SMPDIR" FileSource="..\..\..\tst">
<Directory Id="SMPDIR.memfs" Name="memfs">
@ -118,6 +259,38 @@
</Component>
</Directory>
</DirectoryRef>
<DirectoryRef Id="SYMDIR">
<Component Id="C.winfsp_x64.sys.pdb">
<File Name="winfsp-x64.sys.pdb" Source="..\build\$(var.Configuration)\winfsp-x64.sys.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.winfsp_x86.sys.pdb">
<File Name="winfsp-x86.sys.pdb" Source="..\build\$(var.Configuration)\winfsp-x86.sys.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.winfsp_x64.dll.pdb">
<File Name="winfsp-x64.dll.pdb" Source="..\build\$(var.Configuration)\winfsp-x64.dll.public.pdb" KeyPath="yes" />
</Component>
<Component Id="C.winfsp_x86.dll.pdb">
<File Name="winfsp-x86.dll.pdb" Source="..\build\$(var.Configuration)\winfsp-x86.dll.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_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.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.WinFsp.bin">
<ComponentRef Id="C.winfsp_x64.sys" />
@ -126,14 +299,27 @@
<ComponentRef Id="C.winfsp_x86.dll" />
<ComponentRef Id="C.winfsp_x64.dll" />
<ComponentRef Id="C.winfsp_x86.dll.selfreg" />
<ComponentRef Id="C.launcher_x64.exe.svcinst" />
<ComponentRef Id="C.launcher_x86.exe" />
<ComponentRef Id="C.launcher_x64.exe" />
<ComponentRef Id="C.launcher_x86.exe.svcinst" />
<ComponentRef Id="C.launchctl_x64.exe" />
<ComponentRef Id="C.launchctl_x86.exe" />
<ComponentRef Id="C.diag.bat" />
</ComponentGroup>
<ComponentGroup Id="C.WinFsp.inc">
<ComponentRef Id="C.fsctl.h" />
<ComponentRef Id="C.winfsp.h" />
<ComponentRef Id="C.fuse.h" />
<ComponentRef Id="C.fuse_common.h" />
<ComponentRef Id="C.fuse_opt.h" />
<ComponentRef Id="C.winfsp_fuse.h" />
</ComponentGroup>
<ComponentGroup Id="C.WinFsp.lib">
<ComponentRef Id="C.winfsp_x64.lib" />
<ComponentRef Id="C.winfsp_x86.lib" />
<ComponentRef Id="C.fuse_x64.pc" />
<ComponentRef Id="C.fuse_x86.pc" />
</ComponentGroup>
<ComponentGroup Id="C.WinFsp.smp">
<ComponentRef Id="C.memfs_x64.exe" />
@ -142,11 +328,23 @@
<ComponentRef Id="C.memfs.cpp" />
<ComponentRef Id="C.memfs_main.c" />
</ComponentGroup>
<ComponentGroup Id="C.WinFsp.sym">
<ComponentRef Id="C.winfsp_x64.sys.pdb" />
<ComponentRef Id="C.winfsp_x86.sys.pdb" />
<ComponentRef Id="C.winfsp_x86.dll.pdb" />
<ComponentRef Id="C.winfsp_x64.dll.pdb" />
<ComponentRef Id="C.launcher_x86.pdb" />
<ComponentRef Id="C.launcher_x64.pdb" />
<ComponentRef Id="C.launchctl_x64.pdb" />
<ComponentRef Id="C.launchctl_x86.pdb" />
<ComponentRef Id="C.memfs_x64.pdb" />
<ComponentRef Id="C.memfs_x86.pdb" />
</ComponentGroup>
<Feature
Id="F.Main"
Level="1"
Title="$(var.MyProductName) $(var.MyVersion)"
Title="$(var.MyProductName) $(var.MyProductVersion)"
Description="$(var.MyDescription)"
Display="expand"
ConfigurableDirectory="INSTALLDIR"
@ -175,9 +373,12 @@
<ComponentGroupRef Id="C.WinFsp.inc" />
<ComponentGroupRef Id="C.WinFsp.lib" />
<ComponentGroupRef Id="C.WinFsp.smp" />
<ComponentGroupRef Id="C.WinFsp.sym" />
</Feature>
</Feature>
<WixVariable Id="WixUIBannerBmp" Value="wixbanner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="wixdialog-$(var.MyProductStage).bmp" />
<UI Id="FeatureTree">
<UIRef Id="WixUI_FeatureTree" />
<!-- skip the license agreement dialog; higher Order takes priority (weird) -->

View File

@ -16,7 +16,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<IntermediateOutputPath>$(SolutionDir)build\$(Name).build\$(Configuration)\$(Platform)\</IntermediateOutputPath>
<DefineConstants>Debug;MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion)</DefineConstants>
<DefineConstants>Debug;MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion)</DefineConstants>
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>True</Pedantic>
<SuppressPdbOutput>True</SuppressPdbOutput>
@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<IntermediateOutputPath>$(SolutionDir)build\$(Name).build\$(Configuration)\$(Platform)\</IntermediateOutputPath>
<DefineConstants>MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion)</DefineConstants>
<DefineConstants>MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion)</DefineConstants>
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>True</Pedantic>
<SuppressPdbOutput>True</SuppressPdbOutput>

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 KiB

View File

@ -0,0 +1,210 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\version.properties" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{73EAAEDA-557B-48D5-A137-328934720FB4}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>launchctl</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<BufferSecurityCheck>false</BufferSecurityCheck>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<BufferSecurityCheck>false</BufferSecurityCheck>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\launcher\launcher.h" />
<ClInclude Include="..\..\..\src\shared\minimal.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\launcher\launchctl.c" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\..\src\launcher\launchctl-version.rc">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\winfsp_dll.vcxproj">
<Project>{4a7c0b21-9e10-4c81-92de-1493efcf24eb}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Include">
<UniqueIdentifier>{e650819b-355e-455c-81c9-10dc7debe109}</UniqueIdentifier>
</Filter>
<Filter Include="Include\shared">
<UniqueIdentifier>{744edf89-567a-40b7-b6f2-ee2bc7b9f0d9}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\shared\minimal.h">
<Filter>Include\shared</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\launcher\launcher.h">
<Filter>Source</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\launcher\launchctl.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\..\src\launcher\launchctl-version.rc">
<Filter>Source</Filter>
</ResourceCompile>
</ItemGroup>
</Project>

View File

@ -0,0 +1,214 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\version.properties" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{A5EFD487-0140-4184-8C54-FFAEC2F85E35}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>launcher</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\launcher\launcher.c" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\winfsp_dll.vcxproj">
<Project>{4a7c0b21-9e10-4c81-92de-1493efcf24eb}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\launcher\launcher.h" />
<ClInclude Include="..\..\..\src\shared\minimal.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\..\src\launcher\launcher-version.rc">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
</ResourceCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Include">
<UniqueIdentifier>{11e7c0f2-7782-43ee-84fa-9e56efbe39de}</UniqueIdentifier>
</Filter>
<Filter Include="Include\shared">
<UniqueIdentifier>{d83ea433-d9f7-494c-90b9-3a8997483cd9}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\launcher\launcher.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\shared\minimal.h">
<Filter>Include\shared</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\launcher\launcher.h">
<Filter>Source</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\..\src\launcher\launcher-version.rc">
<Filter>Source</Filter>
</ResourceCompile>
</ItemGroup>
</Project>

View File

@ -0,0 +1,187 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>fsbench</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\..\ext</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\..\ext</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\..\ext</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\..\ext</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\ext\tlib\testsuite.c">
<WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">TurnOffAllWarnings</WarningLevel>
<SDLCheck Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</SDLCheck>
<WarningLevel Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">TurnOffAllWarnings</WarningLevel>
<SDLCheck Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</SDLCheck>
<WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">TurnOffAllWarnings</WarningLevel>
<SDLCheck Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</SDLCheck>
<WarningLevel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">TurnOffAllWarnings</WarningLevel>
<SDLCheck Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</SDLCheck>
</ClCompile>
<ClCompile Include="..\..\..\tst\fsbench\fsbench.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\ext\tlib\testsuite.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Source\tlib">
<UniqueIdentifier>{d76fc01e-0f8d-4596-bdef-c2a5d3fede2e}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\tst\fsbench\fsbench.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\ext\tlib\testsuite.c">
<Filter>Source\tlib</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\ext\tlib\testsuite.h">
<Filter>Source\tlib</Filter>
</ClInclude>
</ItemGroup>
</Project>

View File

@ -0,0 +1,185 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{10757011-749D-4954-873B-AE38D8145472}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>fscrash</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(ProjectName).build\$(Configuration)\$(PlatformTarget)\</IntDir>
<TargetName>$(ProjectName)-$(PlatformTarget)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\..\tst\memfs;..\..\..\inc</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\..\tst\memfs;..\..\..\inc</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\..\tst\memfs;..\..\..\inc</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\..\tst\memfs;..\..\..\inc</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\tst\fscrash\fscrash-main.c" />
<ClCompile Include="..\..\..\tst\fscrash\fscrash.c" />
<ClCompile Include="..\..\..\tst\memfs\memfs.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\tst\fscrash\fscrash.h" />
<ClInclude Include="..\..\..\tst\memfs\memfs.h" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\winfsp_dll.vcxproj">
<Project>{4a7c0b21-9e10-4c81-92de-1493efcf24eb}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\tst\fscrash\fscrash-main.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\memfs\memfs.cpp">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\fscrash\fscrash.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\tst\memfs\memfs.h">
<Filter>Source</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tst\fscrash\fscrash.h">
<Filter>Source</Filter>
</ClInclude>
</ItemGroup>
</Project>

View File

@ -103,11 +103,12 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@ -119,11 +120,12 @@
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@ -137,13 +139,14 @@
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@ -157,13 +160,14 @@
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\..\..\src;..\..\..\inc</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<StripPrivateSymbols>$(OutDir)$(TargetName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemGroup>

View File

@ -102,12 +102,12 @@
<PreprocessorDefinitions>__func__=__FUNCTION__;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\..\..\tst\memfs;..\..\..\src;..\..\..\inc;..\..\..\ext</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>ntdll.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>ntdll.lib;netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@ -119,12 +119,12 @@
<PreprocessorDefinitions>__func__=__FUNCTION__;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\..\..\tst\memfs;..\..\..\src;..\..\..\inc;..\..\..\ext</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>ntdll.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>ntdll.lib;netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@ -138,14 +138,14 @@
<PreprocessorDefinitions>__func__=__FUNCTION__;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\..\..\tst\memfs;..\..\..\src;..\..\..\inc;..\..\..\ext</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>ntdll.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>ntdll.lib;netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@ -159,14 +159,14 @@
<PreprocessorDefinitions>__func__=__FUNCTION__;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\..\..\tst\memfs;..\..\..\src;..\..\..\inc;..\..\..\ext</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>ntdll.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>ntdll.lib;netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
@ -183,20 +183,29 @@
<ClCompile Include="..\..\..\tst\memfs\memfs.cpp" />
<ClCompile Include="..\..\..\tst\winfsp-tests\create-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\dirctl-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\eventlog-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\flush-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\fuse-opt-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\hooks.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\info-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\lock-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\memfs-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\mount-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\oplock-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\path-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\posix-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\rdwr-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\reparse-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\resilient.c" />
<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\winfsp-tests.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\ext\tlib\testsuite.h" />
<ClInclude Include="..\..\..\tst\memfs\memfs.h" />
<ClInclude Include="..\..\..\tst\winfsp-tests\winfsp-tests.h" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\winfsp_dll.vcxproj">

View File

@ -52,6 +52,30 @@
<ClCompile Include="..\..\..\tst\memfs\memfs.cpp">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\eventlog-test.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\fuse-opt-test.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\posix-test.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\reparse-test.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\stream-tests.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\resilient.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\hooks.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\oplock-test.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\ext\tlib\testsuite.h">
@ -60,5 +84,8 @@
<ClInclude Include="..\..\..\tst\memfs\memfs.h">
<Filter>Source</Filter>
</ClInclude>
<ClInclude Include="..\..\..\tst\winfsp-tests\winfsp-tests.h">
<Filter>Source</Filter>
</ClInclude>
</ItemGroup>
</Project>

View File

@ -4,10 +4,23 @@
<MyProductName>WinFsp</MyProductName>
<MyDescription>Windows File System Proxy</MyDescription>
<MyCompanyName>Navimatics Corporation</MyCompanyName>
<MyCopyright>2015-2016 Bill Zissimopoulos</MyCopyright>
<MyCopyright>2015-$([System.DateTime]::Now.ToString(`yyyy`)) Bill Zissimopoulos</MyCopyright>
<MyCanonicalVersion>1.0</MyCanonicalVersion>
<MyProductVersion>$(MyCanonicalVersion) RC1</MyProductVersion>
<MyProductStage>RC</MyProductStage>
<!-- build number: concat 2-digit year with 3-digit day of the year (16-bits until 2066) -->
<MyBuildNumber>$([System.DateTime]::Now.ToString(`yy`))$([System.DateTime]::Now.DayOfYear.ToString(`000`))</MyBuildNumber>
<MyVersion>0.10.$(MyBuildNumber)</MyVersion>
<MyVersion>$(MyCanonicalVersion).$(MyBuildNumber)</MyVersion>
<MyVersionWithCommas>$(MyVersion.Replace('.',',')),0</MyVersionWithCommas>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>NTDDI_VERSION=0x06010000;_WIN32_WINNT=0x0601</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
</Project>

View File

@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "winfsp.dll", "winfsp_dll.vcxproj", "{4A7C0B21-9E10-4C81-92DE-1493EFCF24EB}"
ProjectSection(ProjectDependencies) = postProject
@ -32,6 +32,27 @@ Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "winfsp_msi", "installer\win
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CustomActions", "installer\CustomActions\CustomActions.vcxproj", "{95C223E6-B5F1-4FD0-9376-41CDBC824445}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "launcher", "launcher", "{FD28A504-431E-49B9-BB8C-DCA0E7019F66}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "launcher", "launcher\launcher.vcxproj", "{A5EFD487-0140-4184-8C54-FFAEC2F85E35}"
ProjectSection(ProjectDependencies) = postProject
{4A7C0B21-9E10-4C81-92DE-1493EFCF24EB} = {4A7C0B21-9E10-4C81-92DE-1493EFCF24EB}
{C85C26BA-8C22-4D30-83DA-46C3548E6332} = {C85C26BA-8C22-4D30-83DA-46C3548E6332}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "launchctl", "launcher\launchctl.vcxproj", "{73EAAEDA-557B-48D5-A137-328934720FB4}"
ProjectSection(ProjectDependencies) = postProject
{A5EFD487-0140-4184-8C54-FFAEC2F85E35} = {A5EFD487-0140-4184-8C54-FFAEC2F85E35}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fscrash", "testing\fscrash.vcxproj", "{10757011-749D-4954-873B-AE38D8145472}"
ProjectSection(ProjectDependencies) = postProject
{4A7C0B21-9E10-4C81-92DE-1493EFCF24EB} = {4A7C0B21-9E10-4C81-92DE-1493EFCF24EB}
{C85C26BA-8C22-4D30-83DA-46C3548E6332} = {C85C26BA-8C22-4D30-83DA-46C3548E6332}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsbench", "testing\fsbench.vcxproj", "{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
@ -116,6 +137,62 @@ Global
{95C223E6-B5F1-4FD0-9376-41CDBC824445}.Installer.Release|x86.Build.0 = Release|Win32
{95C223E6-B5F1-4FD0-9376-41CDBC824445}.Release|x64.ActiveCfg = Release|Win32
{95C223E6-B5F1-4FD0-9376-41CDBC824445}.Release|x86.ActiveCfg = Release|Win32
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Debug|x64.ActiveCfg = Debug|x64
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Debug|x64.Build.0 = Debug|x64
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Debug|x86.ActiveCfg = Debug|Win32
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Debug|x86.Build.0 = Debug|Win32
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Installer.Debug|x64.ActiveCfg = Debug|x64
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Installer.Debug|x86.ActiveCfg = Debug|Win32
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Installer.Release|x64.ActiveCfg = Release|x64
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Installer.Release|x86.ActiveCfg = Release|Win32
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Release|x64.ActiveCfg = Release|x64
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Release|x64.Build.0 = Release|x64
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Release|x86.ActiveCfg = Release|Win32
{A5EFD487-0140-4184-8C54-FFAEC2F85E35}.Release|x86.Build.0 = Release|Win32
{73EAAEDA-557B-48D5-A137-328934720FB4}.Debug|x64.ActiveCfg = Debug|x64
{73EAAEDA-557B-48D5-A137-328934720FB4}.Debug|x64.Build.0 = Debug|x64
{73EAAEDA-557B-48D5-A137-328934720FB4}.Debug|x86.ActiveCfg = Debug|Win32
{73EAAEDA-557B-48D5-A137-328934720FB4}.Debug|x86.Build.0 = Debug|Win32
{73EAAEDA-557B-48D5-A137-328934720FB4}.Installer.Debug|x64.ActiveCfg = Debug|x64
{73EAAEDA-557B-48D5-A137-328934720FB4}.Installer.Debug|x86.ActiveCfg = Debug|Win32
{73EAAEDA-557B-48D5-A137-328934720FB4}.Installer.Release|x64.ActiveCfg = Release|x64
{73EAAEDA-557B-48D5-A137-328934720FB4}.Installer.Release|x86.ActiveCfg = Release|Win32
{73EAAEDA-557B-48D5-A137-328934720FB4}.Release|x64.ActiveCfg = Release|x64
{73EAAEDA-557B-48D5-A137-328934720FB4}.Release|x64.Build.0 = Release|x64
{73EAAEDA-557B-48D5-A137-328934720FB4}.Release|x86.ActiveCfg = Release|Win32
{73EAAEDA-557B-48D5-A137-328934720FB4}.Release|x86.Build.0 = Release|Win32
{10757011-749D-4954-873B-AE38D8145472}.Debug|x64.ActiveCfg = Debug|x64
{10757011-749D-4954-873B-AE38D8145472}.Debug|x64.Build.0 = Debug|x64
{10757011-749D-4954-873B-AE38D8145472}.Debug|x86.ActiveCfg = Debug|Win32
{10757011-749D-4954-873B-AE38D8145472}.Debug|x86.Build.0 = Debug|Win32
{10757011-749D-4954-873B-AE38D8145472}.Installer.Debug|x64.ActiveCfg = Debug|x64
{10757011-749D-4954-873B-AE38D8145472}.Installer.Debug|x64.Build.0 = Debug|x64
{10757011-749D-4954-873B-AE38D8145472}.Installer.Debug|x86.ActiveCfg = Debug|Win32
{10757011-749D-4954-873B-AE38D8145472}.Installer.Debug|x86.Build.0 = Debug|Win32
{10757011-749D-4954-873B-AE38D8145472}.Installer.Release|x64.ActiveCfg = Release|x64
{10757011-749D-4954-873B-AE38D8145472}.Installer.Release|x64.Build.0 = Release|x64
{10757011-749D-4954-873B-AE38D8145472}.Installer.Release|x86.ActiveCfg = Release|Win32
{10757011-749D-4954-873B-AE38D8145472}.Installer.Release|x86.Build.0 = Release|Win32
{10757011-749D-4954-873B-AE38D8145472}.Release|x64.ActiveCfg = Release|x64
{10757011-749D-4954-873B-AE38D8145472}.Release|x64.Build.0 = Release|x64
{10757011-749D-4954-873B-AE38D8145472}.Release|x86.ActiveCfg = Release|Win32
{10757011-749D-4954-873B-AE38D8145472}.Release|x86.Build.0 = Release|Win32
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Debug|x64.ActiveCfg = Debug|x64
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Debug|x64.Build.0 = Debug|x64
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Debug|x86.ActiveCfg = Debug|Win32
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Debug|x86.Build.0 = Debug|Win32
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Installer.Debug|x64.ActiveCfg = Debug|x64
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Installer.Debug|x64.Build.0 = Debug|x64
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Installer.Debug|x86.ActiveCfg = Debug|Win32
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Installer.Debug|x86.Build.0 = Debug|Win32
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Installer.Release|x64.ActiveCfg = Release|x64
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Installer.Release|x64.Build.0 = Release|x64
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Installer.Release|x86.ActiveCfg = Release|Win32
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Installer.Release|x86.Build.0 = Release|Win32
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Release|x64.ActiveCfg = Release|x64
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Release|x64.Build.0 = Release|x64
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Release|x86.ActiveCfg = Release|Win32
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -125,5 +202,9 @@ Global
{AA7190E8-877F-4827-8CDD-E0D85F83C8C1} = {69439FD1-C07D-4BF1-98DC-3CCFECE53A49}
{D53AAC39-4C57-4CA5-A4F3-C2B24888C594} = {B464EF06-42AE-4674-81BB-FDDE80204822}
{95C223E6-B5F1-4FD0-9376-41CDBC824445} = {B464EF06-42AE-4674-81BB-FDDE80204822}
{A5EFD487-0140-4184-8C54-FFAEC2F85E35} = {FD28A504-431E-49B9-BB8C-DCA0E7019F66}
{73EAAEDA-557B-48D5-A137-328934720FB4} = {FD28A504-431E-49B9-BB8C-DCA0E7019F66}
{10757011-749D-4954-873B-AE38D8145472} = {69439FD1-C07D-4BF1-98DC-3CCFECE53A49}
{C4E1E9E5-0959-488E-8C6A-C327CC81BEFB} = {69439FD1-C07D-4BF1-98DC-3CCFECE53A49}
EndGlobalSection
EndGlobal

View File

@ -20,12 +20,24 @@
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\inc\fuse\fuse.h" />
<ClInclude Include="..\..\inc\fuse\fuse_common.h" />
<ClInclude Include="..\..\inc\fuse\fuse_opt.h" />
<ClInclude Include="..\..\inc\fuse\winfsp_fuse.h" />
<ClInclude Include="..\..\inc\winfsp\fsctl.h" />
<ClInclude Include="..\..\inc\winfsp\winfsp.h" />
<ClInclude Include="..\..\src\dll\fuse\library.h" />
<ClInclude Include="..\..\src\dll\library.h" />
<ClInclude Include="..\..\src\shared\minimal.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\dll\eventlog.c" />
<ClCompile Include="..\..\src\dll\fuse\fuse.c" />
<ClCompile Include="..\..\src\dll\fuse\fuse_intf.c" />
<ClCompile Include="..\..\src\dll\fuse\fuse_main.c" />
<ClCompile Include="..\..\src\dll\fuse\fuse_opt.c" />
<ClCompile Include="..\..\src\dll\np.c" />
<ClCompile Include="..\..\src\dll\posix.c" />
<ClCompile Include="..\..\src\dll\security.c" />
<ClCompile Include="..\..\src\dll\debug.c" />
<ClCompile Include="..\..\src\dll\fsctl.c" />
@ -34,17 +46,42 @@
<ClCompile Include="..\..\src\dll\fs.c" />
<ClCompile Include="..\..\src\dll\ntstatus.c" />
<ClCompile Include="..\..\src\dll\path.c" />
<ClCompile Include="..\..\src\dll\service.c" />
<ClCompile Include="..\..\src\dll\util.c" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="..\..\src\dll\fuse\fuse.pc">
<FileType>Document</FileType>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">echo arch=$(PlatformTarget) &gt;$(OutDir)fuse-$(PlatformTarget).pc
copy /b $(OutDir)fuse-$(PlatformTarget).pc + %(FullPath) $(OutDir)fuse-$(PlatformTarget).pc &gt;nul</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Writing fuse-$(PlatformTarget).pc</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(OutDir)fuse-$(PlatformTarget).pc</Outputs>
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkObjects>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">echo arch=$(PlatformTarget) &gt;$(OutDir)fuse-$(PlatformTarget).pc
copy /b $(OutDir)fuse-$(PlatformTarget).pc + %(FullPath) $(OutDir)fuse-$(PlatformTarget).pc &gt;nul</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Writing fuse-$(PlatformTarget).pc</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(OutDir)fuse-$(PlatformTarget).pc</Outputs>
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkObjects>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">echo arch=$(PlatformTarget) &gt;$(OutDir)fuse-$(PlatformTarget).pc
copy /b $(OutDir)fuse-$(PlatformTarget).pc + %(FullPath) $(OutDir)fuse-$(PlatformTarget).pc &gt;nul</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Writing fuse-$(PlatformTarget).pc</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(OutDir)fuse-$(PlatformTarget).pc</Outputs>
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkObjects>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">echo arch=$(PlatformTarget) &gt;$(OutDir)fuse-$(PlatformTarget).pc
copy /b $(OutDir)fuse-$(PlatformTarget).pc + %(FullPath) $(OutDir)fuse-$(PlatformTarget).pc &gt;nul</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Writing fuse-$(PlatformTarget).pc</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(OutDir)fuse-$(PlatformTarget).pc</Outputs>
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkObjects>
</CustomBuild>
<None Include="..\..\src\dll\library.def" />
<None Include="..\..\src\dll\ntstatus.i" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\src\dll\eventlog\eventlog.rc" />
<ResourceCompile Include="..\..\src\dll\version.rc">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
</ResourceCompile>
</ItemGroup>
<PropertyGroup Label="Globals">
@ -133,9 +170,11 @@
<SDLCheck>
</SDLCheck>
<AdditionalIncludeDirectories>..\..\src;..\..\inc</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -143,9 +182,10 @@
<ProgramDatabaseFile>$(OutDir)$(TargetFileName).pdb</ProgramDatabaseFile>
<GenerateMapFile>true</GenerateMapFile>
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);version.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;version.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@ -158,9 +198,11 @@
<SDLCheck>
</SDLCheck>
<AdditionalIncludeDirectories>..\..\src;..\..\inc</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -170,7 +212,8 @@
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);version.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;version.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@ -185,8 +228,10 @@
<SDLCheck>
</SDLCheck>
<AdditionalIncludeDirectories>..\..\src;..\..\inc</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -196,9 +241,10 @@
<ProgramDatabaseFile>$(OutDir)$(TargetFileName).pdb</ProgramDatabaseFile>
<GenerateMapFile>true</GenerateMapFile>
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);version.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;version.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@ -213,8 +259,10 @@
<SDLCheck>
</SDLCheck>
<AdditionalIncludeDirectories>..\..\src;..\..\inc</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalOptions>
</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -226,7 +274,8 @@
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<ModuleDefinitionFile>..\..\src\dll\library.def</ModuleDefinitionFile>
<AdditionalDependencies>%(AdditionalDependencies);version.lib</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies);rpcrt4.lib;credui.lib;version.lib</AdditionalDependencies>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

View File

@ -12,6 +12,15 @@
<Filter Include="Include\winfsp">
<UniqueIdentifier>{1d6501f4-cebd-4a00-a774-deb782b59fb5}</UniqueIdentifier>
</Filter>
<Filter Include="Include\shared">
<UniqueIdentifier>{c7b83307-0aa0-4593-b2d4-26ff2f1edfc6}</UniqueIdentifier>
</Filter>
<Filter Include="Include\fuse">
<UniqueIdentifier>{0e7ab1b1-bfca-4439-accb-45a909be9cad}</UniqueIdentifier>
</Filter>
<Filter Include="Source\fuse">
<UniqueIdentifier>{518cce17-85cd-489c-b4be-920a84c1d73c}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\inc\winfsp\fsctl.h">
@ -23,6 +32,24 @@
<ClInclude Include="..\..\src\dll\library.h">
<Filter>Source</Filter>
</ClInclude>
<ClInclude Include="..\..\src\shared\minimal.h">
<Filter>Include\shared</Filter>
</ClInclude>
<ClInclude Include="..\..\inc\fuse\fuse.h">
<Filter>Include\fuse</Filter>
</ClInclude>
<ClInclude Include="..\..\inc\fuse\fuse_common.h">
<Filter>Include\fuse</Filter>
</ClInclude>
<ClInclude Include="..\..\inc\fuse\fuse_opt.h">
<Filter>Include\fuse</Filter>
</ClInclude>
<ClInclude Include="..\..\inc\fuse\winfsp_fuse.h">
<Filter>Include\fuse</Filter>
</ClInclude>
<ClInclude Include="..\..\src\dll\fuse\library.h">
<Filter>Source\fuse</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\dll\library.c">
@ -52,11 +79,32 @@
<ClCompile Include="..\..\src\dll\np.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\service.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\eventlog.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\util.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\fuse\fuse.c">
<Filter>Source\fuse</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\fuse\fuse_opt.c">
<Filter>Source\fuse</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\fuse\fuse_main.c">
<Filter>Source\fuse</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\posix.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\src\dll\fuse\fuse_intf.c">
<Filter>Source\fuse</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\dll\ntstatus.i">
<Filter>Source</Filter>
</None>
<None Include="..\..\src\dll\library.def">
<Filter>Source</Filter>
</None>
@ -65,5 +113,13 @@
<ResourceCompile Include="..\..\src\dll\version.rc">
<Filter>Source</Filter>
</ResourceCompile>
<ResourceCompile Include="..\..\src\dll\eventlog\eventlog.rc">
<Filter>Source</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="..\..\src\dll\fuse\fuse.pc">
<Filter>Source\fuse</Filter>
</CustomBuild>
</ItemGroup>
</Project>

View File

@ -34,6 +34,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<TargetVersion>Windows10</TargetVersion>
<UseDebugLibraries>true</UseDebugLibraries>
<KernelBufferOverflowLib>$(DDK_LIB_PATH)\BufferOverflowK.lib</KernelBufferOverflowLib>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Driver</ConfigurationType>
<DriverType>WDM</DriverType>
@ -41,6 +42,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<TargetVersion>Windows10</TargetVersion>
<UseDebugLibraries>false</UseDebugLibraries>
<KernelBufferOverflowLib>$(DDK_LIB_PATH)\BufferOverflowK.lib</KernelBufferOverflowLib>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Driver</ConfigurationType>
<DriverType>WDM</DriverType>
@ -48,6 +50,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<TargetVersion>Windows10</TargetVersion>
<UseDebugLibraries>true</UseDebugLibraries>
<KernelBufferOverflowLib>$(DDK_LIB_PATH)\BufferOverflowK.lib</KernelBufferOverflowLib>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Driver</ConfigurationType>
<DriverType>WDM</DriverType>
@ -55,6 +58,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<TargetVersion>Windows10</TargetVersion>
<UseDebugLibraries>false</UseDebugLibraries>
<KernelBufferOverflowLib>$(DDK_LIB_PATH)\BufferOverflowK.lib</KernelBufferOverflowLib>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Driver</ConfigurationType>
<DriverType>WDM</DriverType>
@ -105,6 +109,7 @@
<GenerateMapFile>true</GenerateMapFile>
<ProgramDatabaseFile>$(OutDir)$(TargetFileName).pdb</ProgramDatabaseFile>
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@ -117,6 +122,7 @@
<GenerateMapFile>true</GenerateMapFile>
<ProgramDatabaseFile>$(OutDir)$(TargetFileName).pdb</ProgramDatabaseFile>
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@ -129,6 +135,7 @@
<GenerateMapFile>true</GenerateMapFile>
<ProgramDatabaseFile>$(OutDir)$(TargetFileName).pdb</ProgramDatabaseFile>
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@ -141,6 +148,7 @@
<GenerateMapFile>true</GenerateMapFile>
<ProgramDatabaseFile>$(OutDir)$(TargetFileName).pdb</ProgramDatabaseFile>
<MapFileName>$(OutDir)$(TargetFileName).map</MapFileName>
<StripPrivateSymbols>$(OutDir)$(TargetFileName).public.pdb</StripPrivateSymbols>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
@ -165,6 +173,7 @@
<ClCompile Include="..\..\src\sys\ioq.c" />
<ClCompile Include="..\..\src\sys\lockctl.c" />
<ClCompile Include="..\..\src\sys\meta.c" />
<ClCompile Include="..\..\src\sys\name.c" />
<ClCompile Include="..\..\src\sys\read.c" />
<ClCompile Include="..\..\src\sys\security.c" />
<ClCompile Include="..\..\src\sys\shutdown.c" />
@ -180,10 +189,10 @@
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\src\sys\version.rc">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_WIN64;_AMD64_=1;AMD64;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_WIN64;_AMD64_=1;AMD64;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_WIN64;_AMD64_=1;AMD64;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_WIN64;_AMD64_=1;AMD64;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyProductVersion=$(MyProductVersion);MyProductStage=$(MyProductStage);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions>
</ResourceCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

View File

@ -92,6 +92,9 @@
<ClCompile Include="..\..\src\sys\callbacks.c">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\src\sys\name.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\sys\driver.h">

View File

@ -1,9 +0,0 @@
web: web/winfsp-design.html web/winfsp.h.html
web/winfsp-design.html:
mkdir -p web
asciidoc -b html4 -a hr= -s -o $@ winfsp-design.adoc
web/winfsp.h.html:
mkdir -p web
prettydoc -H-O -o web ../inc/winfsp/winfsp.h

View File

@ -0,0 +1,50 @@
= Native API vs FUSE
This document compares the "native" WinFsp API to the FUSE API and provides a rationale for the existence of both within WinFsp.
== Overview
WinFsp provides two different but conceptually similar API's for the same purpose of implementing a user mode file system:
- The WinFsp API, which is documented in the include file `inc/winfsp/winfsp.h` (and online at http://www.secfs.net/winfsp/apiref/). This API consists of the `FSP_FILE_SYSTEM_INTERFACE` "class" and the `FspFileSystem*` functions.
- The FUSE (high-level) API, which is the well understood API from the FUSE project originally by Miklos Szeredi.
Given the similarities between the two API's some questions naturally arise:
- What are the differences between the two API's?
- Why are both needed?
- What is the target audience for each API?
== Comparison
The primary difference between the two API's is that the WinFsp API is being designed to use all features available to a Windows file system, whereas the FUSE API is being designed (by the FUSE project) to better fit a POSIX file system. For example, a Windows file system can do the following, that cannot be (easily) made available to FUSE:
- Create and manage alternate data streams.
- Manage arbitrary security descriptors (SID's and ACL's vs POSIX permissions).
- Create and manage special files beyond what is supported through FUSE `mknod` (using reparse points).
- Support volume labels.
- Allow the file system to fulfill Read/Write requests using asynchronous I/O.
Furthermore there are other smaller, but still important differences:
- The file deletion model on Windows is different from the FUSE/POSIX model.
- The reparse mechanism (which supports symbolic links) on Windows is quite more powerful (and more complicated) than FUSE/POSIX symbolic links.
- Windows uses UTF-16 for file names, whereas FUSE uses UTF-8, requiring constant conversions between the two.
These and other differences make the creation of the WinFsp FUSE compatibility layer non-trivial and suggest that a native API that more closely resembles the Windows file system model is desirable. At the same time there are hundreds of FUSE (high-level) file systems and having a FUSE compatible API is also very desirable.
== Target Audiences
As mentioned WinFsp provides two different API's; to further complicate matters the FUSE API can be used from both a native Windows application and a Cygwin (POSIX) application. There are then 3 different audiences that the API's cater for:
- The WinFsp API audience. This consists of Windows-only file systems or cross-platform file systems that wish to provide maximum features and/or performance on Windows.
- The FUSE API for native Windows audience. This consists of FUSE file-systems that have had their core file system code ported to Windows, but have not yet been integrated into the operating system. It also includes cross-platform file systems that do not wish to include advanced (non-POSIX) Windows file system features.
- The FUSE API for Cygwin audience. This consists of FUSE file-systems that are ported to Windows/Cygwin with minimal work. For example, the author of this document has ported SSHFS to Cygwin using this API and a minimal SSHFS patch.
For the developer of a new or Windows exclusive file system the recommendation is to use the WinFsp API as it provides support for all features of the Windows file system.
For the developer of a FUSE file system that wishes to port their file system to Windows a natural process may be the following:
- Use the FUSE API for Cygwin to port the file system to Cygwin. In many cases little or no changes to the file system code are required.
- Use the FUSE API for native Windows to port the file system to native Windows. This would require porting the core file system code (i.e. those parts of the file system code that actually manage and organize files). Little to no changes should be required for the file system FUSE layer glue.
- Use the WinFsp API only if the file system requires maximum features and/or performance under Windows.

View File

@ -0,0 +1,266 @@
= SSHFS Port Case Study
This document is a case study in porting SSHFS to Windows and WinFsp. At the time that the document was started WinFsp had a native API, but no FUSE compatible API. The main purpose of the case study was to develop a FUSE compatible API for WinFsp.
== Step 1: Gather Information about SSHFS
The SSHFS project is one of the early FUSE projects. The project was originally written by Miklos Szeredi who is also the author of FUSE. SSHFS provides a file system interface on top of SFTP (Secure File Transfer Protocol).
The project's website is at https://github.com/libfuse/sshfs. A quick perusal of the source code shows that this is a POSIX program, the file `configure.ac` further shows that it depends on GLib and FUSE.
Luckily Cygwin on Windows provides a POSIX interface and it also includes GLib and pkg-config. We are missing FUSE of course. Let's try it anyway:
----
billziss@windows:~/Projects/ext$ git clone https://github.com/libfuse/sshfs.git
Cloning into 'sshfs'...
[snip]
billziss@windows:~/Projects/ext$ cd sshfs/
billziss@windows:~/Projects/ext/sshfs [master]$ autoreconf -i
[snip]
billziss@windows:~/Projects/ext/sshfs [master]$ ./configure
[snip]
configure: error: Package requirements (fuse >= 2.3 glib-2.0 gthread-2.0) were not met:
No package 'fuse' found
----
As expected we get an error because there is no package named FUSE. So let's create one.
== Step 2: Create a FUSE Compatible Package
After a few days of development there exists now an initial FUSE implementation within WinFsp. Most of the FUSE API's from the header files `fuse.h`, `fuse_common.h` and `fuse_opt.h` have been implemented. However none of the `fuse_operations` currently work as the necessary work to translate WinFsp requests to FUSE requests has not happened yet.
=== Challenges
- The FUSE API is old and somewhat hairy. There are multiple versions of it and choosing the right one was not easy. In the end version 2.8 of the API was chosen for implementation.
- The FUSE API uses a number of OS specific types (notably `struct stat`). Sometimes these types have multiple definitions even within the same OS (e.g. `struct stat` and `struct stat64`). For this reason it was decided to define our own `fuse_*` types (e.g. `struct fuse_stat`) instead of relying on the ones that come with MSVC. Care was taken to ensure that these types remain compatible with Cygwin as it is one of our primary target environments.
- The WinFsp DLL does *not* use the MSVCRT and uses its own memory allocator (`HeapAlloc`, `HeapFree`). Even if it used the MSVCRT `malloc`, it does not have access to the Cygwin `malloc`. The FUSE API has a few cases where users are expected to use `free` to deallocate memory (e.g. `fuse_opt_add_opt`). But which `free` is that for a Cygwin program? The Cygwin `free`, the MSVCRT `free` or our own `MemFree`?
+
To solve this problem we use the following pattern: every FUSE API is implemented as a `static inline` function that calls a WinFsp-FUSE API and passes it an extra argument that describes the environment:
+
----
static inline int fuse_opt_add_opt(char **opts, const char *opt)
{
return fsp_fuse_opt_add_opt(fsp_fuse_env(), opts, opt);
}
----
+
The `fsp_fuse_env` function is another `static inline` function that simply "captures" the current environment (things like the environment's `malloc` and `free`).
+
----
...
#elif defined(__CYGWIN__)
...
#define FSP_FUSE_ENV_INIT \
{ \
'C', \
malloc, free, \
fsp_fuse_daemonize, \
fsp_fuse_set_signal_handlers, \
fsp_fuse_remove_signal_handlers,\
}
...
#else
...
static inline struct fsp_fuse_env *fsp_fuse_env(void)
{
static struct fsp_fuse_env env = FSP_FUSE_ENV_INIT;
return &env;
}
----
- The implementation of `fuse_opt` proved an unexpected challenge. The function `fuse_opt_parse` is very flexible, but it also has a lot of quirks. It took a lot of trial and error to arrive at a clean reimplementation.
=== Things that worked rather nicely
- The pattern `fuse_new` / `fuse_loop` / `fuse_destroy` fits nicely to the WinFsp service model: `FspServiceCreate` / `FspServiceLoop` / `FspServiceDelete`. This means that every (high-level) FUSE file system can rather easily be converted into a Windows service if desired.
=== Integrating with Cygwin
It remains to show how to use the WinFsp-FUSE implementation from Cygwin and SSHFS. SSHFS uses `pkg-config` for its build configuration. `Pkg-config` requires a `fuse.pc` file:
----
arch=x64
prefix=${pcfiledir}/..
incdir=${prefix}/inc/fuse
implib=${prefix}/bin/winfsp-${arch}.dll
Name: fuse
Description: WinFsp FUSE compatible API
Version: 2.8
URL: http://www.secfs.net/winfsp/
Libs: "${implib}"
Cflags: -I"${incdir}"
----
The WinFsp installer has been modified to place this file within its installation directory. It remains to point `pkg-config` to the appropriate location (using `PKG_CONFIG_PATH`) and the SSHFS configuration process can now find the FUSE package.
=== SSHFS-Win
The sshfs-win open-source project (work in progress) can be found here: https://bitbucket.org/billziss/sshfs-win
== Step 3: Mapping Windows to POSIX
It would seem that we are now ready to start implementing the `fuse_operations`. However there is another matter that we need to attend to first and that is mapping the Windows file system view of the world to the POSIX one and vice-versa.
=== Mapping Paths
The Windows and POSIX file systems both use paths to address files. The path conventions are different, so we need a technique to convert between the two. This goes beyond a simple translation of the backslash character (`\`) to slash (`/`), because several characters are reserved and cannot be used in a Windows file path, but are legal when used in a POSIX path.
The reserved Windows characters are:
----
< > : " / \ | ? *
any character between 0 and 31
----
POSIX only has two reserved characters: slash (`/`) and `NUL`.
So how do we map between the two? Luckily this problem has been solved before by "Services for Macintosh" (SFM), "Services for UNIX" (SFU) and Gygwin. The solution involves the use of the Unicode "private use area". When mapping a POSIX path to Windows, if we encounter any of the Windows reserved characters we simply map it to the Unicode range U+F000 - U+F0FF. The reverse mapping from Windows to POSIX is obvious.
=== Mapping Security
Mapping Windows security to POSIX (and vice-versa) is a much more interesting (and difficult) problem. We have the following requirements:
- We need a method to map a Windows SID (Security Identifier) to a POSIX uid/gid.
- We need a method to map a Windows ACL (Access Control List) to a POSIX permission set.
- We want any mapping method we come up with to be bijective (to the extent that it is possible).
Luckily "Services for UNIX" (and Cygwin) come to the rescue again. The following Cygwin document describes in great detail a method to map a Windows SID to a POSIX uid/gid that is compatible with SFU: https://cygwin.com/cygwin-ug-net/ntsec.html. A different document from SFU describes how to map a Windows ACL to POSIX permissions: https://technet.microsoft.com/en-us/library/bb463216.aspx.
The mappings provided are not perfect, but they come pretty close. They are also proven as they have been used in SFU and Cygwin for years.
=== WinFsp Implementation
A WinFsp implementation of the above mappings can be found in the file `src/dll/posix.c`.
== Step 4: Implementing FUSE Core
We are now finally ready to implement the `fuse_operations`. This actually proves to be a straightforward mapping of the WinFSP `FSP_FILE_SYSTEM_INTERACE` to `fuse_operations`:
GetVolumeInfo:: Mapped to `statfs`. Volume labels are not supported by FUSE (see below).
SetVolumeLabel:: No equivalent on FUSE, so simply return `STATUS_INVALID_PARAMETER`. One thought is to map this call into a `setxattr("sys.VolumeLabel")` (or similar) call on the root directory (`/`).
GetSecurityByName:: Mapped to `fgetattr`/`getattr`. The returned `stat` information is translated into a Windows security descriptor using `FspPosixMapPermissionsToSecurityDescriptor`.
Create:: This is used to create a new file or directory. If a file is created this is mapped to `create` or `mknod`;`open`. If a directory is created this is mapped to `mkdir`;`opendir` calls (the reason is that on Windows a directory remains open after being created). In some circumstances a `chown` may be issued as well. After the file or directory has been created a `fgetattr`/`getattr` is issued to get `stat` information to return to the FSD.
Open:: This is used to open a new file or directory. First a `fgetattr`/`getattr` is issued. If the file is not a directory it is followed by `open`. If the file is a directory it is followed by `opendir`.
Overwrite:: This is used to overwrite a file when one of the `FILE_OVERWRITE`, `FILE_SUPERSEDE` or `FILE_OVERWRITE_IF` flags has been set. Mapped to `ftruncate`/`truncate`.
Cleanup:: Mapped to `unlink` when deleting a file and `rmdir` when deleting a directory.
Close:: Mapped to `flush`;`release` when closing a file and `releasedir` when closing a directory.
Read:: Mapped to `read`.
Write:: Mapped to `fgetattr`/`getattr` and `write`.
Flush:: Mapped to `fsync` or `fsyncdir`.
GetFileInfo:: Mapped to `fgetattr`/`getattr`.
SetBasicInfo:: Mapped to `utimens`/`utime`.
SetAllocationSize:: Mapped to `fgetattr`/`getattr` followed by `ftruncate`/`truncate`. Note that this call and `SetFileSize` may be consolidated soon in the WinFsp API.
SetFileSize:: Mapped to `fgetattr`/`getattr` followed by `ftruncate`/`truncate`. Note that this call and `SetAllocationSize` may be consolidated soon in the WinFsp API.
CanDelete:: For directories only: mapped to a `getdir`/`readdir` call to determine if they are empty and can therefore be deleted.
Rename:: Mapped to `fgetattr`/`getattr` on the destination file name and `rename`.
GetSecurity:: Mapped to `fgetattr`/`getattr`. The returned `stat` information is translated into a Windows security descriptor using `FspPosixMapPermissionsToSecurityDescriptor`.
SetSecurity:: Mapped to `fgetattr`/`getattr` followed by `chmod` and/or `chown`.
ReadDirectory:: Mapped to `getdir`/`readdir`. Note that because of how the Windows directory enumeration API's work there is a further `fgetattr`/`getattr` per file returned!
=== Some Additional Challenges
Let us now discuss a couple of final challenges in getting a proper FUSE port working under Cygwin: the implementation of `fuse_set_signal_handlers`/`fuse_remove_signal_handlers` and `fuse_daemonize`.
Let us start with `fuse_set_signal_handlers`/`fuse_remove_signal_handlers`. Cygwin supports POSIX signals and we can simply set up signal handlers similar to what libfuse does. However this simple approach does not work within WinFsp, because it uses native API's that Cygwin cannot interrupt with its signal mechanism. For example, the `fuse_loop` FUSE call eventually results in a `WaitForSingleObject` API call that Cygwin cannot interrupt. Even trying with an alertable `WaitForSingleObjectEx` did not work as unfortunately Cygwin does not issue a `QueueUserAPC` when issuing a signal. So we need an alternative mechanism to support signals.
The alternative is to use `sigwait` in a separate thread. `Fsp_fuse_signal_handler` is a WinFsp API that knows how to interrupt that `WaitForSingleObject` (actually it just signals the waited event).
----
static inline void *fsp_fuse_signal_thread(void *psigmask)
{
int sig;
if (0 == sigwait(psigmask, &sig))
fsp_fuse_signal_handler(sig);
return 0;
}
----
Let us now move to `fuse_daemonize`. This FUSE call allows a FUSE file system to become a (UNIX) daemon. This is achieved by using the POSIX fork call, which unfortunately has many limitations in Cygwin. One such limitation (and the one that bit us in WinFsp) is that it does not know how to clone Windows heaps (`HeapAlloc`/`HeapFree`).
Recall that WinFsp uses its own memory allocator (just a thin wrapper around `HeapAlloc`/`HeapFree`). This means that any allocations made prior to the fork() call are doomed after a fork(); with good luck the pointers will point to invalid memory and one will get an Access Violation; with bad luck the pointers will point to valid memory that contains bad data and the program may stumble for a while, just enough to hide the actual cause of the problem.
Luckily there is a rather straightforward work-around: "do not allocate any non-Cygwin resources prior to fork". This is actually possible within WinFsp, because we are already capturing the Cygwin environment and its `malloc`/`free` (see `fsp_fuse_env` in "Step 2"). It is also possible, because the typical FUSE program structure looks like this:
----
fuse_new
fuse_daemonize // do not allocate any non-Cygwin resources prior to this
fuse_loop/fuse_loop_mt // safe to allocate non-Cygwin resources
fuse_destroy
----
With this change `fuse_daemonize` works and allows me to declare the Cygwin portion of the SSHFS port complete!
== Step 5: POSIX special files
Although WinFsp now has a working FUSE implementation there remains an important problem: how to handle POSIX special files such as named pipes (FIFO), devices (CHR, BLK), sockets (SOCK) or symbolic links (LNK).
While Windows has support for symbolic links (LNK) there is no direct support for other POSIX special files. The question then is how to represent such files when they are accessed by Windows. This is especially important to systems like Cygwin that understand POSIX special files and can even create them.
Cygwin normally emulates symbolic links and special files using special shortcut (.lnk) files. However many FUSE file systems support POSIX special files; it is desirable then that applications, like Cygwin, that understand them should be able to create and access them without resorting to hacks like using .lnk files.
The problem was originally mentioned by Herbert Stocker on the Cygwin mailing list:
[quote]
____
The mkfifo system call will have Cygwin create a .lnk file and
WinFsp will forward it as such to the file system process. The
system calls readdir or open will then have the file system
process tell WinFsp that there is a .lnk file and Cygwin will
translate this back to a fifo, so in this sense it does work.
But the file system will see a file (with name *.lnk) where it
should see a pipe (mknod call with \'mode' set to S_IFIFO).
IMHO one could say this is a break of the FUSE API.
Practically it will break:
- File systems that special-treat pipe files (or .lnk files).
- If one uses sshfs to connect to a Linux based server and
issues the command mkfifo foo from Cygwin, the server will
end up with a .lnk file instead of a pipe special file.
- Imagine something like mysqlfs, which stores the stuff in a
database. When you run SQL statements to analyze the data
in the file system, you won't see the pipes as such. Or if
you open the file system from Linux you'll see the .lnk
files.
____
Herbert is of course right. A .lnk file is not a FIFO to any application other than Cygwin. We need a better mechanism for representing special files. One such mechanism is reparse points.
Reparse points can be viewed as a form of special metadata that can be attached to a file or directory. The interesting thing about reparse points is that they can have special meaning to a file system driver (NTFS/WinFsp), a filter driver (e.g. a hierarchical storage system) or even an application (Cygwin).
Symbolic links are already implemented as reparse points on Windows. We could perhaps define a new reparse point type for representing POSIX special files. Turns out that this is unnecessary, because Microsoft has already defined a reparse point type for special files on NFS: https://msdn.microsoft.com/en-us/library/dn617178.aspx
It is a relatively straightforward task then to map reparse point operations into their FUSE equivalents:
GetReparsePoint:: Mapped to `getattr`/`fgetattr` and possibly `readlink` (in the case of a symbolic link). The returned `stat.st_mode` information is transformed to the appropriate reparse point information.
SetReparsePoint:: Mapped to `symlink` or `mknod` depending on whether a symbolic link or other special file is created.

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/billziss-gh/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/billziss-gh/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[]]

View File

@ -0,0 +1,75 @@
file_create_test,1000,0.28
file_open_test,1000,0.14
file_overwrite_test,1000,0.33
file_list_test,1000,0.16
file_delete_test,1000,0.17
file_mkdir_test,1000,0.08
file_rmdir_test,1000,0.14
file_create_test,2000,0.67
file_open_test,2000,0.27
file_overwrite_test,2000,0.69
file_list_test,2000,0.36
file_delete_test,2000,0.36
file_mkdir_test,2000,0.33
file_rmdir_test,2000,0.23
file_create_test,3000,0.91
file_open_test,3000,0.42
file_overwrite_test,3000,1.03
file_list_test,3000,0.64
file_delete_test,3000,0.56
file_mkdir_test,3000,0.52
file_rmdir_test,3000,0.34
file_create_test,4000,1.25
file_open_test,4000,0.55
file_overwrite_test,4000,1.34
file_list_test,4000,0.97
file_delete_test,4000,0.72
file_mkdir_test,4000,0.66
file_rmdir_test,4000,0.47
file_create_test,5000,1.87
file_open_test,5000,0.67
file_overwrite_test,5000,1.64
file_list_test,5000,1.38
file_delete_test,5000,0.91
file_mkdir_test,5000,0.83
file_rmdir_test,5000,0.59
rdwr_cc_write_page_test,100,2.19
rdwr_cc_read_page_test,100,2.31
rdwr_cc_write_large_test,100,0.33
rdwr_cc_read_large_test,100,0.28
rdwr_cc_write_page_test,200,4.33
rdwr_cc_read_page_test,200,4.58
rdwr_cc_write_large_test,200,0.59
rdwr_cc_read_large_test,200,0.59
rdwr_cc_write_page_test,300,6.37
rdwr_cc_read_page_test,300,7.00
rdwr_cc_write_large_test,300,0.91
rdwr_cc_read_large_test,300,0.89
rdwr_cc_write_page_test,400,8.59
rdwr_cc_read_page_test,400,9.34
rdwr_cc_write_large_test,400,1.22
rdwr_cc_read_large_test,400,1.17
rdwr_cc_write_page_test,500,10.70
rdwr_cc_read_page_test,500,11.47
rdwr_cc_write_large_test,500,1.47
rdwr_cc_read_large_test,500,1.45
rdwr_nc_write_page_test,100,2.20
rdwr_nc_read_page_test,100,2.22
rdwr_nc_write_large_test,100,0.36
rdwr_nc_read_large_test,100,0.30
rdwr_nc_write_page_test,200,4.72
rdwr_nc_read_page_test,200,4.48
rdwr_nc_write_large_test,200,0.63
rdwr_nc_read_large_test,200,0.58
rdwr_nc_write_page_test,300,6.53
rdwr_nc_read_page_test,300,6.56
rdwr_nc_write_large_test,300,0.91
rdwr_nc_read_large_test,300,0.84
rdwr_nc_write_page_test,400,9.05
rdwr_nc_read_page_test,400,8.67
rdwr_nc_write_large_test,400,1.22
rdwr_nc_read_large_test,400,1.13
rdwr_nc_write_page_test,500,11.45
rdwr_nc_read_page_test,500,10.86
rdwr_nc_write_large_test,500,1.50
rdwr_nc_read_large_test,500,1.44
1 file_create_test 1000 0.28
2 file_open_test 1000 0.14
3 file_overwrite_test 1000 0.33
4 file_list_test 1000 0.16
5 file_delete_test 1000 0.17
6 file_mkdir_test 1000 0.08
7 file_rmdir_test 1000 0.14
8 file_create_test 2000 0.67
9 file_open_test 2000 0.27
10 file_overwrite_test 2000 0.69
11 file_list_test 2000 0.36
12 file_delete_test 2000 0.36
13 file_mkdir_test 2000 0.33
14 file_rmdir_test 2000 0.23
15 file_create_test 3000 0.91
16 file_open_test 3000 0.42
17 file_overwrite_test 3000 1.03
18 file_list_test 3000 0.64
19 file_delete_test 3000 0.56
20 file_mkdir_test 3000 0.52
21 file_rmdir_test 3000 0.34
22 file_create_test 4000 1.25
23 file_open_test 4000 0.55
24 file_overwrite_test 4000 1.34
25 file_list_test 4000 0.97
26 file_delete_test 4000 0.72
27 file_mkdir_test 4000 0.66
28 file_rmdir_test 4000 0.47
29 file_create_test 5000 1.87
30 file_open_test 5000 0.67
31 file_overwrite_test 5000 1.64
32 file_list_test 5000 1.38
33 file_delete_test 5000 0.91
34 file_mkdir_test 5000 0.83
35 file_rmdir_test 5000 0.59
36 rdwr_cc_write_page_test 100 2.19
37 rdwr_cc_read_page_test 100 2.31
38 rdwr_cc_write_large_test 100 0.33
39 rdwr_cc_read_large_test 100 0.28
40 rdwr_cc_write_page_test 200 4.33
41 rdwr_cc_read_page_test 200 4.58
42 rdwr_cc_write_large_test 200 0.59
43 rdwr_cc_read_large_test 200 0.59
44 rdwr_cc_write_page_test 300 6.37
45 rdwr_cc_read_page_test 300 7.00
46 rdwr_cc_write_large_test 300 0.91
47 rdwr_cc_read_large_test 300 0.89
48 rdwr_cc_write_page_test 400 8.59
49 rdwr_cc_read_page_test 400 9.34
50 rdwr_cc_write_large_test 400 1.22
51 rdwr_cc_read_large_test 400 1.17
52 rdwr_cc_write_page_test 500 10.70
53 rdwr_cc_read_page_test 500 11.47
54 rdwr_cc_write_large_test 500 1.47
55 rdwr_cc_read_large_test 500 1.45
56 rdwr_nc_write_page_test 100 2.20
57 rdwr_nc_read_page_test 100 2.22
58 rdwr_nc_write_large_test 100 0.36
59 rdwr_nc_read_large_test 100 0.30
60 rdwr_nc_write_page_test 200 4.72
61 rdwr_nc_read_page_test 200 4.48
62 rdwr_nc_write_large_test 200 0.63
63 rdwr_nc_read_large_test 200 0.58
64 rdwr_nc_write_page_test 300 6.53
65 rdwr_nc_read_page_test 300 6.56
66 rdwr_nc_write_large_test 300 0.91
67 rdwr_nc_read_large_test 300 0.84
68 rdwr_nc_write_page_test 400 9.05
69 rdwr_nc_read_page_test 400 8.67
70 rdwr_nc_write_large_test 400 1.22
71 rdwr_nc_read_large_test 400 1.13
72 rdwr_nc_write_page_test 500 11.45
73 rdwr_nc_read_page_test 500 10.86
74 rdwr_nc_write_large_test 500 1.50
75 rdwr_nc_read_large_test 500 1.44

View File

@ -0,0 +1,75 @@
file_create_test,1000,0.28
file_open_test,1000,0.15
file_overwrite_test,1000,0.33
file_list_test,1000,0.16
file_delete_test,1000,0.19
file_mkdir_test,1000,0.08
file_rmdir_test,1000,0.13
file_create_test,2000,0.69
file_open_test,2000,0.27
file_overwrite_test,2000,0.67
file_list_test,2000,0.37
file_delete_test,2000,0.36
file_mkdir_test,2000,0.33
file_rmdir_test,2000,0.25
file_create_test,3000,0.92
file_open_test,3000,0.41
file_overwrite_test,3000,1.08
file_list_test,3000,0.66
file_delete_test,3000,0.56
file_mkdir_test,3000,0.48
file_rmdir_test,3000,0.38
file_create_test,4000,1.31
file_open_test,4000,0.61
file_overwrite_test,4000,1.38
file_list_test,4000,1.00
file_delete_test,4000,0.73
file_mkdir_test,4000,0.66
file_rmdir_test,4000,0.53
file_create_test,5000,1.64
file_open_test,5000,0.67
file_overwrite_test,5000,1.67
file_list_test,5000,1.38
file_delete_test,5000,0.91
file_mkdir_test,5000,0.98
file_rmdir_test,5000,0.66
rdwr_cc_write_page_test,100,2.08
rdwr_cc_read_page_test,100,2.23
rdwr_cc_write_large_test,100,0.33
rdwr_cc_read_large_test,100,0.28
rdwr_cc_write_page_test,200,4.23
rdwr_cc_read_page_test,200,4.63
rdwr_cc_write_large_test,200,0.61
rdwr_cc_read_large_test,200,0.58
rdwr_cc_write_page_test,300,6.33
rdwr_cc_read_page_test,300,6.78
rdwr_cc_write_large_test,300,0.92
rdwr_cc_read_large_test,300,0.86
rdwr_cc_write_page_test,400,8.48
rdwr_cc_read_page_test,400,9.02
rdwr_cc_write_large_test,400,1.20
rdwr_cc_read_large_test,400,1.16
rdwr_cc_write_page_test,500,10.33
rdwr_cc_read_page_test,500,11.20
rdwr_cc_write_large_test,500,1.53
rdwr_cc_read_large_test,500,1.47
rdwr_nc_write_page_test,100,2.23
rdwr_nc_read_page_test,100,2.22
rdwr_nc_write_large_test,100,0.31
rdwr_nc_read_large_test,100,0.30
rdwr_nc_write_page_test,200,4.66
rdwr_nc_read_page_test,200,4.34
rdwr_nc_write_large_test,200,0.61
rdwr_nc_read_large_test,200,0.63
rdwr_nc_write_page_test,300,6.44
rdwr_nc_read_page_test,300,6.34
rdwr_nc_write_large_test,300,0.92
rdwr_nc_read_large_test,300,0.84
rdwr_nc_write_page_test,400,8.56
rdwr_nc_read_page_test,400,8.78
rdwr_nc_write_large_test,400,1.26
rdwr_nc_read_large_test,400,1.11
rdwr_nc_write_page_test,500,10.73
rdwr_nc_read_page_test,500,10.59
rdwr_nc_write_large_test,500,1.53
rdwr_nc_read_large_test,500,1.41
1 file_create_test 1000 0.28
2 file_open_test 1000 0.15
3 file_overwrite_test 1000 0.33
4 file_list_test 1000 0.16
5 file_delete_test 1000 0.19
6 file_mkdir_test 1000 0.08
7 file_rmdir_test 1000 0.13
8 file_create_test 2000 0.69
9 file_open_test 2000 0.27
10 file_overwrite_test 2000 0.67
11 file_list_test 2000 0.37
12 file_delete_test 2000 0.36
13 file_mkdir_test 2000 0.33
14 file_rmdir_test 2000 0.25
15 file_create_test 3000 0.92
16 file_open_test 3000 0.41
17 file_overwrite_test 3000 1.08
18 file_list_test 3000 0.66
19 file_delete_test 3000 0.56
20 file_mkdir_test 3000 0.48
21 file_rmdir_test 3000 0.38
22 file_create_test 4000 1.31
23 file_open_test 4000 0.61
24 file_overwrite_test 4000 1.38
25 file_list_test 4000 1.00
26 file_delete_test 4000 0.73
27 file_mkdir_test 4000 0.66
28 file_rmdir_test 4000 0.53
29 file_create_test 5000 1.64
30 file_open_test 5000 0.67
31 file_overwrite_test 5000 1.67
32 file_list_test 5000 1.38
33 file_delete_test 5000 0.91
34 file_mkdir_test 5000 0.98
35 file_rmdir_test 5000 0.66
36 rdwr_cc_write_page_test 100 2.08
37 rdwr_cc_read_page_test 100 2.23
38 rdwr_cc_write_large_test 100 0.33
39 rdwr_cc_read_large_test 100 0.28
40 rdwr_cc_write_page_test 200 4.23
41 rdwr_cc_read_page_test 200 4.63
42 rdwr_cc_write_large_test 200 0.61
43 rdwr_cc_read_large_test 200 0.58
44 rdwr_cc_write_page_test 300 6.33
45 rdwr_cc_read_page_test 300 6.78
46 rdwr_cc_write_large_test 300 0.92
47 rdwr_cc_read_large_test 300 0.86
48 rdwr_cc_write_page_test 400 8.48
49 rdwr_cc_read_page_test 400 9.02
50 rdwr_cc_write_large_test 400 1.20
51 rdwr_cc_read_large_test 400 1.16
52 rdwr_cc_write_page_test 500 10.33
53 rdwr_cc_read_page_test 500 11.20
54 rdwr_cc_write_large_test 500 1.53
55 rdwr_cc_read_large_test 500 1.47
56 rdwr_nc_write_page_test 100 2.23
57 rdwr_nc_read_page_test 100 2.22
58 rdwr_nc_write_large_test 100 0.31
59 rdwr_nc_read_large_test 100 0.30
60 rdwr_nc_write_page_test 200 4.66
61 rdwr_nc_read_page_test 200 4.34
62 rdwr_nc_write_large_test 200 0.61
63 rdwr_nc_read_large_test 200 0.63
64 rdwr_nc_write_page_test 300 6.44
65 rdwr_nc_read_page_test 300 6.34
66 rdwr_nc_write_large_test 300 0.92
67 rdwr_nc_read_large_test 300 0.84
68 rdwr_nc_write_page_test 400 8.56
69 rdwr_nc_read_page_test 400 8.78
70 rdwr_nc_write_large_test 400 1.26
71 rdwr_nc_read_large_test 400 1.11
72 rdwr_nc_write_page_test 500 10.73
73 rdwr_nc_read_page_test 500 10.59
74 rdwr_nc_write_large_test 500 1.53
75 rdwr_nc_read_large_test 500 1.41

View File

@ -0,0 +1,85 @@
file_create_test,1000,0.92
file_open_test,1000,0.08
file_overwrite_test,1000,0.19
file_list_test,1000,0.08
file_delete_test,1000,0.19
file_mkdir_test,1000,0.16
file_rmdir_test,1000,0.11
file_create_test,2000,1.45
file_open_test,2000,0.17
file_overwrite_test,2000,0.38
file_list_test,2000,0.16
file_delete_test,2000,0.39
file_mkdir_test,2000,0.25
file_rmdir_test,2000,0.28
file_create_test,3000,1.11
file_open_test,3000,0.23
file_overwrite_test,3000,0.72
file_list_test,3000,0.23
file_delete_test,3000,0.56
file_mkdir_test,3000,0.56
file_rmdir_test,3000,0.36
file_create_test,4000,1.45
file_open_test,4000,0.36
file_overwrite_test,4000,0.97
file_list_test,4000,0.33
file_delete_test,4000,0.77
file_mkdir_test,4000,0.48
file_rmdir_test,4000,0.47
file_create_test,5000,2.47
file_open_test,5000,0.45
file_overwrite_test,5000,1.23
file_list_test,5000,0.41
file_delete_test,5000,1.03
file_mkdir_test,5000,0.70
file_rmdir_test,5000,0.70
rdwr_cc_write_page_test,100,0.25
rdwr_cc_read_page_test,100,0.19
rdwr_cc_write_large_test,100,0.09
rdwr_cc_read_large_test,100,0.08
rdwr_cc_write_page_test,200,0.47
rdwr_cc_read_page_test,200,0.52
rdwr_cc_write_large_test,200,0.22
rdwr_cc_read_large_test,200,0.16
rdwr_cc_write_page_test,300,0.72
rdwr_cc_read_page_test,300,0.62
rdwr_cc_write_large_test,300,0.30
rdwr_cc_read_large_test,300,0.23
rdwr_cc_write_page_test,400,0.92
rdwr_cc_read_page_test,400,0.88
rdwr_cc_write_large_test,400,0.41
rdwr_cc_read_large_test,400,0.31
rdwr_cc_write_page_test,500,1.20
rdwr_cc_read_page_test,500,0.97
rdwr_cc_write_large_test,500,0.50
rdwr_cc_read_large_test,500,0.39
rdwr_nc_write_page_test,100,7.56
rdwr_nc_read_page_test,100,10.14
rdwr_nc_write_large_test,100,0.88
rdwr_nc_read_large_test,100,0.56
rdwr_nc_write_page_test,200,14.36
rdwr_nc_read_page_test,200,21.39
rdwr_nc_write_large_test,200,1.72
rdwr_nc_read_large_test,200,1.34
rdwr_nc_write_page_test,300,21.86
rdwr_nc_read_page_test,300,19.56
rdwr_nc_write_large_test,300,2.53
rdwr_nc_read_large_test,300,1.64
rdwr_nc_write_page_test,400,28.52
rdwr_nc_read_page_test,400,26.11
rdwr_nc_write_large_test,400,3.42
rdwr_nc_read_large_test,400,2.22
rdwr_nc_write_page_test,500,35.45
rdwr_nc_read_page_test,500,33.05
rdwr_nc_write_large_test,500,4.33
rdwr_nc_read_large_test,500,2.77
mmap_write_test,100,0.16
mmap_read_test,100,0.20
mmap_write_test,200,0.30
mmap_read_test,200,0.39
mmap_write_test,300,0.44
mmap_read_test,300,0.59
mmap_write_test,400,0.58
mmap_read_test,400,0.78
mmap_write_test,500,0.72
mmap_read_test,500,1.06
1 file_create_test 1000 0.92
2 file_open_test 1000 0.08
3 file_overwrite_test 1000 0.19
4 file_list_test 1000 0.08
5 file_delete_test 1000 0.19
6 file_mkdir_test 1000 0.16
7 file_rmdir_test 1000 0.11
8 file_create_test 2000 1.45
9 file_open_test 2000 0.17
10 file_overwrite_test 2000 0.38
11 file_list_test 2000 0.16
12 file_delete_test 2000 0.39
13 file_mkdir_test 2000 0.25
14 file_rmdir_test 2000 0.28
15 file_create_test 3000 1.11
16 file_open_test 3000 0.23
17 file_overwrite_test 3000 0.72
18 file_list_test 3000 0.23
19 file_delete_test 3000 0.56
20 file_mkdir_test 3000 0.56
21 file_rmdir_test 3000 0.36
22 file_create_test 4000 1.45
23 file_open_test 4000 0.36
24 file_overwrite_test 4000 0.97
25 file_list_test 4000 0.33
26 file_delete_test 4000 0.77
27 file_mkdir_test 4000 0.48
28 file_rmdir_test 4000 0.47
29 file_create_test 5000 2.47
30 file_open_test 5000 0.45
31 file_overwrite_test 5000 1.23
32 file_list_test 5000 0.41
33 file_delete_test 5000 1.03
34 file_mkdir_test 5000 0.70
35 file_rmdir_test 5000 0.70
36 rdwr_cc_write_page_test 100 0.25
37 rdwr_cc_read_page_test 100 0.19
38 rdwr_cc_write_large_test 100 0.09
39 rdwr_cc_read_large_test 100 0.08
40 rdwr_cc_write_page_test 200 0.47
41 rdwr_cc_read_page_test 200 0.52
42 rdwr_cc_write_large_test 200 0.22
43 rdwr_cc_read_large_test 200 0.16
44 rdwr_cc_write_page_test 300 0.72
45 rdwr_cc_read_page_test 300 0.62
46 rdwr_cc_write_large_test 300 0.30
47 rdwr_cc_read_large_test 300 0.23
48 rdwr_cc_write_page_test 400 0.92
49 rdwr_cc_read_page_test 400 0.88
50 rdwr_cc_write_large_test 400 0.41
51 rdwr_cc_read_large_test 400 0.31
52 rdwr_cc_write_page_test 500 1.20
53 rdwr_cc_read_page_test 500 0.97
54 rdwr_cc_write_large_test 500 0.50
55 rdwr_cc_read_large_test 500 0.39
56 rdwr_nc_write_page_test 100 7.56
57 rdwr_nc_read_page_test 100 10.14
58 rdwr_nc_write_large_test 100 0.88
59 rdwr_nc_read_large_test 100 0.56
60 rdwr_nc_write_page_test 200 14.36
61 rdwr_nc_read_page_test 200 21.39
62 rdwr_nc_write_large_test 200 1.72
63 rdwr_nc_read_large_test 200 1.34
64 rdwr_nc_write_page_test 300 21.86
65 rdwr_nc_read_page_test 300 19.56
66 rdwr_nc_write_large_test 300 2.53
67 rdwr_nc_read_large_test 300 1.64
68 rdwr_nc_write_page_test 400 28.52
69 rdwr_nc_read_page_test 400 26.11
70 rdwr_nc_write_large_test 400 3.42
71 rdwr_nc_read_large_test 400 2.22
72 rdwr_nc_write_page_test 500 35.45
73 rdwr_nc_read_page_test 500 33.05
74 rdwr_nc_write_large_test 500 4.33
75 rdwr_nc_read_large_test 500 2.77
76 mmap_write_test 100 0.16
77 mmap_read_test 100 0.20
78 mmap_write_test 200 0.30
79 mmap_read_test 200 0.39
80 mmap_write_test 300 0.44
81 mmap_read_test 300 0.59
82 mmap_write_test 400 0.58
83 mmap_read_test 400 0.78
84 mmap_write_test 500 0.72
85 mmap_read_test 500 1.06

View File

@ -0,0 +1,85 @@
file_create_test,1000,0.97
file_open_test,1000,0.08
file_overwrite_test,1000,0.19
file_list_test,1000,0.08
file_delete_test,1000,0.19
file_mkdir_test,1000,0.13
file_rmdir_test,1000,0.13
file_create_test,2000,1.38
file_open_test,2000,0.23
file_overwrite_test,2000,0.36
file_list_test,2000,0.17
file_delete_test,2000,0.41
file_mkdir_test,2000,0.25
file_rmdir_test,2000,0.36
file_create_test,3000,1.34
file_open_test,3000,0.28
file_overwrite_test,3000,0.78
file_list_test,3000,0.27
file_delete_test,3000,0.59
file_mkdir_test,3000,0.36
file_rmdir_test,3000,0.36
file_create_test,4000,1.33
file_open_test,4000,0.36
file_overwrite_test,4000,1.06
file_list_test,4000,0.33
file_delete_test,4000,0.81
file_mkdir_test,4000,0.67
file_rmdir_test,4000,0.41
file_create_test,5000,1.94
file_open_test,5000,0.48
file_overwrite_test,5000,1.14
file_list_test,5000,0.44
file_delete_test,5000,1.06
file_mkdir_test,5000,0.87
file_rmdir_test,5000,0.59
rdwr_cc_write_page_test,100,0.25
rdwr_cc_read_page_test,100,0.19
rdwr_cc_write_large_test,100,0.11
rdwr_cc_read_large_test,100,0.08
rdwr_cc_write_page_test,200,0.61
rdwr_cc_read_page_test,200,0.42
rdwr_cc_write_large_test,200,0.22
rdwr_cc_read_large_test,200,0.25
rdwr_cc_write_page_test,300,0.69
rdwr_cc_read_page_test,300,0.61
rdwr_cc_write_large_test,300,0.28
rdwr_cc_read_large_test,300,0.22
rdwr_cc_write_page_test,400,0.91
rdwr_cc_read_page_test,400,0.78
rdwr_cc_write_large_test,400,0.38
rdwr_cc_read_large_test,400,0.28
rdwr_cc_write_page_test,500,1.19
rdwr_cc_read_page_test,500,1.03
rdwr_cc_write_large_test,500,0.48
rdwr_cc_read_large_test,500,0.36
rdwr_nc_write_page_test,100,7.55
rdwr_nc_read_page_test,100,9.38
rdwr_nc_write_large_test,100,0.86
rdwr_nc_read_large_test,100,0.58
rdwr_nc_write_page_test,200,15.69
rdwr_nc_read_page_test,200,21.78
rdwr_nc_write_large_test,200,1.73
rdwr_nc_read_large_test,200,1.16
rdwr_nc_write_page_test,300,21.58
rdwr_nc_read_page_test,300,21.92
rdwr_nc_write_large_test,300,2.59
rdwr_nc_read_large_test,300,1.84
rdwr_nc_write_page_test,400,28.91
rdwr_nc_read_page_test,400,26.31
rdwr_nc_write_large_test,400,3.38
rdwr_nc_read_large_test,400,2.20
rdwr_nc_write_page_test,500,36.69
rdwr_nc_read_page_test,500,33.52
rdwr_nc_write_large_test,500,4.36
rdwr_nc_read_large_test,500,2.80
mmap_write_test,100,0.16
mmap_read_test,100,0.19
mmap_write_test,200,0.31
mmap_read_test,200,0.39
mmap_write_test,300,0.44
mmap_read_test,300,0.58
mmap_write_test,400,0.59
mmap_read_test,400,0.78
mmap_write_test,500,0.72
mmap_read_test,500,1.09
1 file_create_test 1000 0.97
2 file_open_test 1000 0.08
3 file_overwrite_test 1000 0.19
4 file_list_test 1000 0.08
5 file_delete_test 1000 0.19
6 file_mkdir_test 1000 0.13
7 file_rmdir_test 1000 0.13
8 file_create_test 2000 1.38
9 file_open_test 2000 0.23
10 file_overwrite_test 2000 0.36
11 file_list_test 2000 0.17
12 file_delete_test 2000 0.41
13 file_mkdir_test 2000 0.25
14 file_rmdir_test 2000 0.36
15 file_create_test 3000 1.34
16 file_open_test 3000 0.28
17 file_overwrite_test 3000 0.78
18 file_list_test 3000 0.27
19 file_delete_test 3000 0.59
20 file_mkdir_test 3000 0.36
21 file_rmdir_test 3000 0.36
22 file_create_test 4000 1.33
23 file_open_test 4000 0.36
24 file_overwrite_test 4000 1.06
25 file_list_test 4000 0.33
26 file_delete_test 4000 0.81
27 file_mkdir_test 4000 0.67
28 file_rmdir_test 4000 0.41
29 file_create_test 5000 1.94
30 file_open_test 5000 0.48
31 file_overwrite_test 5000 1.14
32 file_list_test 5000 0.44
33 file_delete_test 5000 1.06
34 file_mkdir_test 5000 0.87
35 file_rmdir_test 5000 0.59
36 rdwr_cc_write_page_test 100 0.25
37 rdwr_cc_read_page_test 100 0.19
38 rdwr_cc_write_large_test 100 0.11
39 rdwr_cc_read_large_test 100 0.08
40 rdwr_cc_write_page_test 200 0.61
41 rdwr_cc_read_page_test 200 0.42
42 rdwr_cc_write_large_test 200 0.22
43 rdwr_cc_read_large_test 200 0.25
44 rdwr_cc_write_page_test 300 0.69
45 rdwr_cc_read_page_test 300 0.61
46 rdwr_cc_write_large_test 300 0.28
47 rdwr_cc_read_large_test 300 0.22
48 rdwr_cc_write_page_test 400 0.91
49 rdwr_cc_read_page_test 400 0.78
50 rdwr_cc_write_large_test 400 0.38
51 rdwr_cc_read_large_test 400 0.28
52 rdwr_cc_write_page_test 500 1.19
53 rdwr_cc_read_page_test 500 1.03
54 rdwr_cc_write_large_test 500 0.48
55 rdwr_cc_read_large_test 500 0.36
56 rdwr_nc_write_page_test 100 7.55
57 rdwr_nc_read_page_test 100 9.38
58 rdwr_nc_write_large_test 100 0.86
59 rdwr_nc_read_large_test 100 0.58
60 rdwr_nc_write_page_test 200 15.69
61 rdwr_nc_read_page_test 200 21.78
62 rdwr_nc_write_large_test 200 1.73
63 rdwr_nc_read_large_test 200 1.16
64 rdwr_nc_write_page_test 300 21.58
65 rdwr_nc_read_page_test 300 21.92
66 rdwr_nc_write_large_test 300 2.59
67 rdwr_nc_read_large_test 300 1.84
68 rdwr_nc_write_page_test 400 28.91
69 rdwr_nc_read_page_test 400 26.31
70 rdwr_nc_write_large_test 400 3.38
71 rdwr_nc_read_large_test 400 2.20
72 rdwr_nc_write_page_test 500 36.69
73 rdwr_nc_read_page_test 500 33.52
74 rdwr_nc_write_large_test 500 4.36
75 rdwr_nc_read_large_test 500 2.80
76 mmap_write_test 100 0.16
77 mmap_read_test 100 0.19
78 mmap_write_test 200 0.31
79 mmap_read_test 200 0.39
80 mmap_write_test 300 0.44
81 mmap_read_test 300 0.58
82 mmap_write_test 400 0.59
83 mmap_read_test 400 0.78
84 mmap_write_test 500 0.72
85 mmap_read_test 500 1.09

View File

@ -0,0 +1,85 @@
file_create_test,1000,0.20
file_open_test,1000,0.08
file_overwrite_test,1000,0.06
file_list_test,1000,0.11
file_delete_test,1000,0.09
file_mkdir_test,1000,0.06
file_rmdir_test,1000,0.08
file_create_test,2000,0.48
file_open_test,2000,0.11
file_overwrite_test,2000,0.11
file_list_test,2000,0.23
file_delete_test,2000,0.19
file_mkdir_test,2000,0.09
file_rmdir_test,2000,0.14
file_create_test,3000,0.61
file_open_test,3000,0.30
file_overwrite_test,3000,0.17
file_list_test,3000,0.33
file_delete_test,3000,0.27
file_mkdir_test,3000,0.41
file_rmdir_test,3000,0.20
file_create_test,4000,0.64
file_open_test,4000,0.23
file_overwrite_test,4000,0.25
file_list_test,4000,0.47
file_delete_test,4000,0.48
file_mkdir_test,4000,0.53
file_rmdir_test,4000,0.27
file_create_test,5000,1.08
file_open_test,5000,0.28
file_overwrite_test,5000,0.30
file_list_test,5000,0.61
file_delete_test,5000,0.52
file_mkdir_test,5000,0.66
file_rmdir_test,5000,0.39
rdwr_cc_write_page_test,100,1.30
rdwr_cc_read_page_test,100,1.44
rdwr_cc_write_large_test,100,0.17
rdwr_cc_read_large_test,100,0.17
rdwr_cc_write_page_test,200,2.67
rdwr_cc_read_page_test,200,2.97
rdwr_cc_write_large_test,200,0.33
rdwr_cc_read_large_test,200,0.39
rdwr_cc_write_page_test,300,4.00
rdwr_cc_read_page_test,300,4.42
rdwr_cc_write_large_test,300,0.48
rdwr_cc_read_large_test,300,0.50
rdwr_cc_write_page_test,400,5.36
rdwr_cc_read_page_test,400,5.86
rdwr_cc_write_large_test,400,0.63
rdwr_cc_read_large_test,400,0.66
rdwr_cc_write_page_test,500,6.55
rdwr_cc_read_page_test,500,7.05
rdwr_cc_write_large_test,500,0.89
rdwr_cc_read_large_test,500,0.89
rdwr_nc_write_page_test,100,1.33
rdwr_nc_read_page_test,100,1.33
rdwr_nc_write_large_test,100,0.16
rdwr_nc_read_large_test,100,0.16
rdwr_nc_write_page_test,200,2.67
rdwr_nc_read_page_test,200,2.67
rdwr_nc_write_large_test,200,0.31
rdwr_nc_read_large_test,200,0.33
rdwr_nc_write_page_test,300,4.01
rdwr_nc_read_page_test,300,4.06
rdwr_nc_write_large_test,300,0.48
rdwr_nc_read_large_test,300,0.47
rdwr_nc_write_page_test,400,5.44
rdwr_nc_read_page_test,400,5.42
rdwr_nc_write_large_test,400,0.63
rdwr_nc_read_large_test,400,0.66
rdwr_nc_write_page_test,500,6.41
rdwr_nc_read_page_test,500,6.56
rdwr_nc_write_large_test,500,0.83
rdwr_nc_read_large_test,500,0.78
mmap_write_test,100,0.14
mmap_read_test,100,0.20
mmap_write_test,200,0.30
mmap_read_test,200,0.39
mmap_write_test,300,0.45
mmap_read_test,300,0.59
mmap_write_test,400,0.56
mmap_read_test,400,0.83
mmap_write_test,500,0.72
mmap_read_test,500,1.00
1 file_create_test 1000 0.20
2 file_open_test 1000 0.08
3 file_overwrite_test 1000 0.06
4 file_list_test 1000 0.11
5 file_delete_test 1000 0.09
6 file_mkdir_test 1000 0.06
7 file_rmdir_test 1000 0.08
8 file_create_test 2000 0.48
9 file_open_test 2000 0.11
10 file_overwrite_test 2000 0.11
11 file_list_test 2000 0.23
12 file_delete_test 2000 0.19
13 file_mkdir_test 2000 0.09
14 file_rmdir_test 2000 0.14
15 file_create_test 3000 0.61
16 file_open_test 3000 0.30
17 file_overwrite_test 3000 0.17
18 file_list_test 3000 0.33
19 file_delete_test 3000 0.27
20 file_mkdir_test 3000 0.41
21 file_rmdir_test 3000 0.20
22 file_create_test 4000 0.64
23 file_open_test 4000 0.23
24 file_overwrite_test 4000 0.25
25 file_list_test 4000 0.47
26 file_delete_test 4000 0.48
27 file_mkdir_test 4000 0.53
28 file_rmdir_test 4000 0.27
29 file_create_test 5000 1.08
30 file_open_test 5000 0.28
31 file_overwrite_test 5000 0.30
32 file_list_test 5000 0.61
33 file_delete_test 5000 0.52
34 file_mkdir_test 5000 0.66
35 file_rmdir_test 5000 0.39
36 rdwr_cc_write_page_test 100 1.30
37 rdwr_cc_read_page_test 100 1.44
38 rdwr_cc_write_large_test 100 0.17
39 rdwr_cc_read_large_test 100 0.17
40 rdwr_cc_write_page_test 200 2.67
41 rdwr_cc_read_page_test 200 2.97
42 rdwr_cc_write_large_test 200 0.33
43 rdwr_cc_read_large_test 200 0.39
44 rdwr_cc_write_page_test 300 4.00
45 rdwr_cc_read_page_test 300 4.42
46 rdwr_cc_write_large_test 300 0.48
47 rdwr_cc_read_large_test 300 0.50
48 rdwr_cc_write_page_test 400 5.36
49 rdwr_cc_read_page_test 400 5.86
50 rdwr_cc_write_large_test 400 0.63
51 rdwr_cc_read_large_test 400 0.66
52 rdwr_cc_write_page_test 500 6.55
53 rdwr_cc_read_page_test 500 7.05
54 rdwr_cc_write_large_test 500 0.89
55 rdwr_cc_read_large_test 500 0.89
56 rdwr_nc_write_page_test 100 1.33
57 rdwr_nc_read_page_test 100 1.33
58 rdwr_nc_write_large_test 100 0.16
59 rdwr_nc_read_large_test 100 0.16
60 rdwr_nc_write_page_test 200 2.67
61 rdwr_nc_read_page_test 200 2.67
62 rdwr_nc_write_large_test 200 0.31
63 rdwr_nc_read_large_test 200 0.33
64 rdwr_nc_write_page_test 300 4.01
65 rdwr_nc_read_page_test 300 4.06
66 rdwr_nc_write_large_test 300 0.48
67 rdwr_nc_read_large_test 300 0.47
68 rdwr_nc_write_page_test 400 5.44
69 rdwr_nc_read_page_test 400 5.42
70 rdwr_nc_write_large_test 400 0.63
71 rdwr_nc_read_large_test 400 0.66
72 rdwr_nc_write_page_test 500 6.41
73 rdwr_nc_read_page_test 500 6.56
74 rdwr_nc_write_large_test 500 0.83
75 rdwr_nc_read_large_test 500 0.78
76 mmap_write_test 100 0.14
77 mmap_read_test 100 0.20
78 mmap_write_test 200 0.30
79 mmap_read_test 200 0.39
80 mmap_write_test 300 0.45
81 mmap_read_test 300 0.59
82 mmap_write_test 400 0.56
83 mmap_read_test 400 0.83
84 mmap_write_test 500 0.72
85 mmap_read_test 500 1.00

View File

@ -0,0 +1,85 @@
file_create_test,1000,0.20
file_open_test,1000,0.06
file_overwrite_test,1000,0.05
file_list_test,1000,0.11
file_delete_test,1000,0.09
file_mkdir_test,1000,0.05
file_rmdir_test,1000,0.08
file_create_test,2000,0.47
file_open_test,2000,0.13
file_overwrite_test,2000,0.11
file_list_test,2000,0.22
file_delete_test,2000,0.19
file_mkdir_test,2000,0.11
file_rmdir_test,2000,0.14
file_create_test,3000,0.59
file_open_test,3000,0.27
file_overwrite_test,3000,0.17
file_list_test,3000,0.34
file_delete_test,3000,0.27
file_mkdir_test,3000,0.41
file_rmdir_test,3000,0.20
file_create_test,4000,0.62
file_open_test,4000,0.22
file_overwrite_test,4000,0.41
file_list_test,4000,0.47
file_delete_test,4000,0.34
file_mkdir_test,4000,0.55
file_rmdir_test,4000,0.28
file_create_test,5000,1.08
file_open_test,5000,0.28
file_overwrite_test,5000,0.30
file_list_test,5000,0.61
file_delete_test,5000,0.45
file_mkdir_test,5000,0.67
file_rmdir_test,5000,0.34
rdwr_cc_write_page_test,100,1.36
rdwr_cc_read_page_test,100,1.47
rdwr_cc_write_large_test,100,0.17
rdwr_cc_read_large_test,100,0.17
rdwr_cc_write_page_test,200,2.63
rdwr_cc_read_page_test,200,3.00
rdwr_cc_write_large_test,200,0.31
rdwr_cc_read_large_test,200,0.34
rdwr_cc_write_page_test,300,3.91
rdwr_cc_read_page_test,300,4.20
rdwr_cc_write_large_test,300,0.50
rdwr_cc_read_large_test,300,0.52
rdwr_cc_write_page_test,400,5.23
rdwr_cc_read_page_test,400,5.64
rdwr_cc_write_large_test,400,0.72
rdwr_cc_read_large_test,400,0.66
rdwr_cc_write_page_test,500,6.12
rdwr_cc_read_page_test,500,6.83
rdwr_cc_write_large_test,500,0.80
rdwr_cc_read_large_test,500,0.83
rdwr_nc_write_page_test,100,1.30
rdwr_nc_read_page_test,100,1.36
rdwr_nc_write_large_test,100,0.16
rdwr_nc_read_large_test,100,0.20
rdwr_nc_write_page_test,200,2.73
rdwr_nc_read_page_test,200,2.64
rdwr_nc_write_large_test,200,0.31
rdwr_nc_read_large_test,200,0.31
rdwr_nc_write_page_test,300,3.95
rdwr_nc_read_page_test,300,4.06
rdwr_nc_write_large_test,300,0.48
rdwr_nc_read_large_test,300,0.48
rdwr_nc_write_page_test,400,5.33
rdwr_nc_read_page_test,400,5.47
rdwr_nc_write_large_test,400,0.64
rdwr_nc_read_large_test,400,0.64
rdwr_nc_write_page_test,500,6.48
rdwr_nc_read_page_test,500,6.41
rdwr_nc_write_large_test,500,0.81
rdwr_nc_read_large_test,500,0.81
mmap_write_test,100,0.14
mmap_read_test,100,0.20
mmap_write_test,200,0.30
mmap_read_test,200,0.39
mmap_write_test,300,0.45
mmap_read_test,300,0.59
mmap_write_test,400,0.64
mmap_read_test,400,0.77
mmap_write_test,500,0.73
mmap_read_test,500,1.00
1 file_create_test 1000 0.20
2 file_open_test 1000 0.06
3 file_overwrite_test 1000 0.05
4 file_list_test 1000 0.11
5 file_delete_test 1000 0.09
6 file_mkdir_test 1000 0.05
7 file_rmdir_test 1000 0.08
8 file_create_test 2000 0.47
9 file_open_test 2000 0.13
10 file_overwrite_test 2000 0.11
11 file_list_test 2000 0.22
12 file_delete_test 2000 0.19
13 file_mkdir_test 2000 0.11
14 file_rmdir_test 2000 0.14
15 file_create_test 3000 0.59
16 file_open_test 3000 0.27
17 file_overwrite_test 3000 0.17
18 file_list_test 3000 0.34
19 file_delete_test 3000 0.27
20 file_mkdir_test 3000 0.41
21 file_rmdir_test 3000 0.20
22 file_create_test 4000 0.62
23 file_open_test 4000 0.22
24 file_overwrite_test 4000 0.41
25 file_list_test 4000 0.47
26 file_delete_test 4000 0.34
27 file_mkdir_test 4000 0.55
28 file_rmdir_test 4000 0.28
29 file_create_test 5000 1.08
30 file_open_test 5000 0.28
31 file_overwrite_test 5000 0.30
32 file_list_test 5000 0.61
33 file_delete_test 5000 0.45
34 file_mkdir_test 5000 0.67
35 file_rmdir_test 5000 0.34
36 rdwr_cc_write_page_test 100 1.36
37 rdwr_cc_read_page_test 100 1.47
38 rdwr_cc_write_large_test 100 0.17
39 rdwr_cc_read_large_test 100 0.17
40 rdwr_cc_write_page_test 200 2.63
41 rdwr_cc_read_page_test 200 3.00
42 rdwr_cc_write_large_test 200 0.31
43 rdwr_cc_read_large_test 200 0.34
44 rdwr_cc_write_page_test 300 3.91
45 rdwr_cc_read_page_test 300 4.20
46 rdwr_cc_write_large_test 300 0.50
47 rdwr_cc_read_large_test 300 0.52
48 rdwr_cc_write_page_test 400 5.23
49 rdwr_cc_read_page_test 400 5.64
50 rdwr_cc_write_large_test 400 0.72
51 rdwr_cc_read_large_test 400 0.66
52 rdwr_cc_write_page_test 500 6.12
53 rdwr_cc_read_page_test 500 6.83
54 rdwr_cc_write_large_test 500 0.80
55 rdwr_cc_read_large_test 500 0.83
56 rdwr_nc_write_page_test 100 1.30
57 rdwr_nc_read_page_test 100 1.36
58 rdwr_nc_write_large_test 100 0.16
59 rdwr_nc_read_large_test 100 0.20
60 rdwr_nc_write_page_test 200 2.73
61 rdwr_nc_read_page_test 200 2.64
62 rdwr_nc_write_large_test 200 0.31
63 rdwr_nc_read_large_test 200 0.31
64 rdwr_nc_write_page_test 300 3.95
65 rdwr_nc_read_page_test 300 4.06
66 rdwr_nc_write_large_test 300 0.48
67 rdwr_nc_read_large_test 300 0.48
68 rdwr_nc_write_page_test 400 5.33
69 rdwr_nc_read_page_test 400 5.47
70 rdwr_nc_write_large_test 400 0.64
71 rdwr_nc_read_large_test 400 0.64
72 rdwr_nc_write_page_test 500 6.48
73 rdwr_nc_read_page_test 500 6.41
74 rdwr_nc_write_large_test 500 0.81
75 rdwr_nc_read_large_test 500 0.81
76 mmap_write_test 100 0.14
77 mmap_read_test 100 0.20
78 mmap_write_test 200 0.30
79 mmap_read_test 200 0.39
80 mmap_write_test 300 0.45
81 mmap_read_test 300 0.59
82 mmap_write_test 400 0.64
83 mmap_read_test 400 0.77
84 mmap_write_test 500 0.73
85 mmap_read_test 500 1.00

View File

@ -0,0 +1,85 @@
file_create_test,1000,0.06
file_open_test,1000,0.16
file_overwrite_test,1000,0.05
file_list_test,1000,0.09
file_delete_test,1000,0.08
file_mkdir_test,1000,0.05
file_rmdir_test,1000,0.08
file_create_test,2000,0.42
file_open_test,2000,0.09
file_overwrite_test,2000,0.08
file_list_test,2000,0.22
file_delete_test,2000,0.14
file_mkdir_test,2000,0.09
file_rmdir_test,2000,0.13
file_create_test,3000,0.58
file_open_test,3000,0.22
file_overwrite_test,3000,0.25
file_list_test,3000,0.36
file_delete_test,3000,0.22
file_mkdir_test,3000,0.39
file_rmdir_test,3000,0.17
file_create_test,4000,0.59
file_open_test,4000,0.19
file_overwrite_test,4000,0.17
file_list_test,4000,0.58
file_delete_test,4000,0.33
file_mkdir_test,4000,0.55
file_rmdir_test,4000,0.22
file_create_test,5000,0.95
file_open_test,5000,0.22
file_overwrite_test,5000,0.23
file_list_test,5000,0.59
file_delete_test,5000,0.34
file_mkdir_test,5000,0.66
file_rmdir_test,5000,0.28
rdwr_cc_write_page_test,100,1.37
rdwr_cc_read_page_test,100,1.47
rdwr_cc_write_large_test,100,0.16
rdwr_cc_read_large_test,100,0.17
rdwr_cc_write_page_test,200,2.47
rdwr_cc_read_page_test,200,3.00
rdwr_cc_write_large_test,200,0.31
rdwr_cc_read_large_test,200,0.34
rdwr_cc_write_page_test,300,3.89
rdwr_cc_read_page_test,300,4.45
rdwr_cc_write_large_test,300,0.47
rdwr_cc_read_large_test,300,0.50
rdwr_cc_write_page_test,400,4.92
rdwr_cc_read_page_test,400,5.78
rdwr_cc_write_large_test,400,0.61
rdwr_cc_read_large_test,400,0.67
rdwr_cc_write_page_test,500,6.17
rdwr_cc_read_page_test,500,7.33
rdwr_cc_write_large_test,500,0.78
rdwr_cc_read_large_test,500,0.95
rdwr_nc_write_page_test,100,1.30
rdwr_nc_read_page_test,100,1.39
rdwr_nc_write_large_test,100,0.19
rdwr_nc_read_large_test,100,0.17
rdwr_nc_write_page_test,200,2.61
rdwr_nc_read_page_test,200,2.80
rdwr_nc_write_large_test,200,0.31
rdwr_nc_read_large_test,200,0.34
rdwr_nc_write_page_test,300,3.94
rdwr_nc_read_page_test,300,4.23
rdwr_nc_write_large_test,300,0.48
rdwr_nc_read_large_test,300,0.50
rdwr_nc_write_page_test,400,5.36
rdwr_nc_read_page_test,400,5.52
rdwr_nc_write_large_test,400,0.63
rdwr_nc_read_large_test,400,0.69
rdwr_nc_write_page_test,500,6.51
rdwr_nc_read_page_test,500,7.00
rdwr_nc_write_large_test,500,0.81
rdwr_nc_read_large_test,500,0.81
mmap_write_test,100,0.16
mmap_read_test,100,0.19
mmap_write_test,200,0.31
mmap_read_test,200,0.39
mmap_write_test,300,0.44
mmap_read_test,300,0.59
mmap_write_test,400,0.59
mmap_read_test,400,0.78
mmap_write_test,500,0.73
mmap_read_test,500,0.98
1 file_create_test 1000 0.06
2 file_open_test 1000 0.16
3 file_overwrite_test 1000 0.05
4 file_list_test 1000 0.09
5 file_delete_test 1000 0.08
6 file_mkdir_test 1000 0.05
7 file_rmdir_test 1000 0.08
8 file_create_test 2000 0.42
9 file_open_test 2000 0.09
10 file_overwrite_test 2000 0.08
11 file_list_test 2000 0.22
12 file_delete_test 2000 0.14
13 file_mkdir_test 2000 0.09
14 file_rmdir_test 2000 0.13
15 file_create_test 3000 0.58
16 file_open_test 3000 0.22
17 file_overwrite_test 3000 0.25
18 file_list_test 3000 0.36
19 file_delete_test 3000 0.22
20 file_mkdir_test 3000 0.39
21 file_rmdir_test 3000 0.17
22 file_create_test 4000 0.59
23 file_open_test 4000 0.19
24 file_overwrite_test 4000 0.17
25 file_list_test 4000 0.58
26 file_delete_test 4000 0.33
27 file_mkdir_test 4000 0.55
28 file_rmdir_test 4000 0.22
29 file_create_test 5000 0.95
30 file_open_test 5000 0.22
31 file_overwrite_test 5000 0.23
32 file_list_test 5000 0.59
33 file_delete_test 5000 0.34
34 file_mkdir_test 5000 0.66
35 file_rmdir_test 5000 0.28
36 rdwr_cc_write_page_test 100 1.37
37 rdwr_cc_read_page_test 100 1.47
38 rdwr_cc_write_large_test 100 0.16
39 rdwr_cc_read_large_test 100 0.17
40 rdwr_cc_write_page_test 200 2.47
41 rdwr_cc_read_page_test 200 3.00
42 rdwr_cc_write_large_test 200 0.31
43 rdwr_cc_read_large_test 200 0.34
44 rdwr_cc_write_page_test 300 3.89
45 rdwr_cc_read_page_test 300 4.45
46 rdwr_cc_write_large_test 300 0.47
47 rdwr_cc_read_large_test 300 0.50
48 rdwr_cc_write_page_test 400 4.92
49 rdwr_cc_read_page_test 400 5.78
50 rdwr_cc_write_large_test 400 0.61
51 rdwr_cc_read_large_test 400 0.67
52 rdwr_cc_write_page_test 500 6.17
53 rdwr_cc_read_page_test 500 7.33
54 rdwr_cc_write_large_test 500 0.78
55 rdwr_cc_read_large_test 500 0.95
56 rdwr_nc_write_page_test 100 1.30
57 rdwr_nc_read_page_test 100 1.39
58 rdwr_nc_write_large_test 100 0.19
59 rdwr_nc_read_large_test 100 0.17
60 rdwr_nc_write_page_test 200 2.61
61 rdwr_nc_read_page_test 200 2.80
62 rdwr_nc_write_large_test 200 0.31
63 rdwr_nc_read_large_test 200 0.34
64 rdwr_nc_write_page_test 300 3.94
65 rdwr_nc_read_page_test 300 4.23
66 rdwr_nc_write_large_test 300 0.48
67 rdwr_nc_read_large_test 300 0.50
68 rdwr_nc_write_page_test 400 5.36
69 rdwr_nc_read_page_test 400 5.52
70 rdwr_nc_write_large_test 400 0.63
71 rdwr_nc_read_large_test 400 0.69
72 rdwr_nc_write_page_test 500 6.51
73 rdwr_nc_read_page_test 500 7.00
74 rdwr_nc_write_large_test 500 0.81
75 rdwr_nc_read_large_test 500 0.81
76 mmap_write_test 100 0.16
77 mmap_read_test 100 0.19
78 mmap_write_test 200 0.31
79 mmap_read_test 200 0.39
80 mmap_write_test 300 0.44
81 mmap_read_test 300 0.59
82 mmap_write_test 400 0.59
83 mmap_read_test 400 0.78
84 mmap_write_test 500 0.73
85 mmap_read_test 500 0.98

View File

@ -0,0 +1,85 @@
file_create_test,1000,0.08
file_open_test,1000,0.16
file_overwrite_test,1000,0.05
file_list_test,1000,0.11
file_delete_test,1000,0.06
file_mkdir_test,1000,0.16
file_rmdir_test,1000,0.06
file_create_test,2000,0.36
file_open_test,2000,0.09
file_overwrite_test,2000,0.09
file_list_test,2000,0.20
file_delete_test,2000,0.16
file_mkdir_test,2000,0.09
file_rmdir_test,2000,0.12
file_create_test,3000,0.58
file_open_test,3000,0.20
file_overwrite_test,3000,0.16
file_list_test,3000,0.33
file_delete_test,3000,0.22
file_mkdir_test,3000,0.41
file_rmdir_test,3000,0.17
file_create_test,4000,0.58
file_open_test,4000,0.17
file_overwrite_test,4000,0.20
file_list_test,4000,0.44
file_delete_test,4000,0.38
file_mkdir_test,4000,0.59
file_rmdir_test,4000,0.25
file_create_test,5000,0.97
file_open_test,5000,0.22
file_overwrite_test,5000,0.22
file_list_test,5000,0.61
file_delete_test,5000,0.36
file_mkdir_test,5000,0.69
file_rmdir_test,5000,0.30
rdwr_cc_write_page_test,100,1.30
rdwr_cc_read_page_test,100,1.53
rdwr_cc_write_large_test,100,0.17
rdwr_cc_read_large_test,100,0.17
rdwr_cc_write_page_test,200,2.62
rdwr_cc_read_page_test,200,3.06
rdwr_cc_write_large_test,200,0.31
rdwr_cc_read_large_test,200,0.34
rdwr_cc_write_page_test,300,3.89
rdwr_cc_read_page_test,300,4.50
rdwr_cc_write_large_test,300,0.50
rdwr_cc_read_large_test,300,0.59
rdwr_cc_write_page_test,400,5.14
rdwr_cc_read_page_test,400,5.94
rdwr_cc_write_large_test,400,0.62
rdwr_cc_read_large_test,400,0.70
rdwr_cc_write_page_test,500,6.25
rdwr_cc_read_page_test,500,7.33
rdwr_cc_write_large_test,500,0.81
rdwr_cc_read_large_test,500,0.83
rdwr_nc_write_page_test,100,1.34
rdwr_nc_read_page_test,100,1.38
rdwr_nc_write_large_test,100,0.19
rdwr_nc_read_large_test,100,0.16
rdwr_nc_write_page_test,200,2.67
rdwr_nc_read_page_test,200,2.78
rdwr_nc_write_large_test,200,0.38
rdwr_nc_read_large_test,200,0.33
rdwr_nc_write_page_test,300,3.98
rdwr_nc_read_page_test,300,4.44
rdwr_nc_write_large_test,300,0.52
rdwr_nc_read_large_test,300,0.50
rdwr_nc_write_page_test,400,5.36
rdwr_nc_read_page_test,400,5.69
rdwr_nc_write_large_test,400,0.66
rdwr_nc_read_large_test,400,0.67
rdwr_nc_write_page_test,500,6.66
rdwr_nc_read_page_test,500,6.94
rdwr_nc_write_large_test,500,0.81
rdwr_nc_read_large_test,500,0.81
mmap_write_test,100,0.14
mmap_read_test,100,0.20
mmap_write_test,200,0.31
mmap_read_test,200,0.39
mmap_write_test,300,0.44
mmap_read_test,300,0.59
mmap_write_test,400,0.59
mmap_read_test,400,0.78
mmap_write_test,500,0.75
mmap_read_test,500,0.98
1 file_create_test 1000 0.08
2 file_open_test 1000 0.16
3 file_overwrite_test 1000 0.05
4 file_list_test 1000 0.11
5 file_delete_test 1000 0.06
6 file_mkdir_test 1000 0.16
7 file_rmdir_test 1000 0.06
8 file_create_test 2000 0.36
9 file_open_test 2000 0.09
10 file_overwrite_test 2000 0.09
11 file_list_test 2000 0.20
12 file_delete_test 2000 0.16
13 file_mkdir_test 2000 0.09
14 file_rmdir_test 2000 0.12
15 file_create_test 3000 0.58
16 file_open_test 3000 0.20
17 file_overwrite_test 3000 0.16
18 file_list_test 3000 0.33
19 file_delete_test 3000 0.22
20 file_mkdir_test 3000 0.41
21 file_rmdir_test 3000 0.17
22 file_create_test 4000 0.58
23 file_open_test 4000 0.17
24 file_overwrite_test 4000 0.20
25 file_list_test 4000 0.44
26 file_delete_test 4000 0.38
27 file_mkdir_test 4000 0.59
28 file_rmdir_test 4000 0.25
29 file_create_test 5000 0.97
30 file_open_test 5000 0.22
31 file_overwrite_test 5000 0.22
32 file_list_test 5000 0.61
33 file_delete_test 5000 0.36
34 file_mkdir_test 5000 0.69
35 file_rmdir_test 5000 0.30
36 rdwr_cc_write_page_test 100 1.30
37 rdwr_cc_read_page_test 100 1.53
38 rdwr_cc_write_large_test 100 0.17
39 rdwr_cc_read_large_test 100 0.17
40 rdwr_cc_write_page_test 200 2.62
41 rdwr_cc_read_page_test 200 3.06
42 rdwr_cc_write_large_test 200 0.31
43 rdwr_cc_read_large_test 200 0.34
44 rdwr_cc_write_page_test 300 3.89
45 rdwr_cc_read_page_test 300 4.50
46 rdwr_cc_write_large_test 300 0.50
47 rdwr_cc_read_large_test 300 0.59
48 rdwr_cc_write_page_test 400 5.14
49 rdwr_cc_read_page_test 400 5.94
50 rdwr_cc_write_large_test 400 0.62
51 rdwr_cc_read_large_test 400 0.70
52 rdwr_cc_write_page_test 500 6.25
53 rdwr_cc_read_page_test 500 7.33
54 rdwr_cc_write_large_test 500 0.81
55 rdwr_cc_read_large_test 500 0.83
56 rdwr_nc_write_page_test 100 1.34
57 rdwr_nc_read_page_test 100 1.38
58 rdwr_nc_write_large_test 100 0.19
59 rdwr_nc_read_large_test 100 0.16
60 rdwr_nc_write_page_test 200 2.67
61 rdwr_nc_read_page_test 200 2.78
62 rdwr_nc_write_large_test 200 0.38
63 rdwr_nc_read_large_test 200 0.33
64 rdwr_nc_write_page_test 300 3.98
65 rdwr_nc_read_page_test 300 4.44
66 rdwr_nc_write_large_test 300 0.52
67 rdwr_nc_read_large_test 300 0.50
68 rdwr_nc_write_page_test 400 5.36
69 rdwr_nc_read_page_test 400 5.69
70 rdwr_nc_write_large_test 400 0.66
71 rdwr_nc_read_large_test 400 0.67
72 rdwr_nc_write_page_test 500 6.66
73 rdwr_nc_read_page_test 500 6.94
74 rdwr_nc_write_large_test 500 0.81
75 rdwr_nc_read_large_test 500 0.81
76 mmap_write_test 100 0.14
77 mmap_read_test 100 0.20
78 mmap_write_test 200 0.31
79 mmap_read_test 200 0.39
80 mmap_write_test 300 0.44
81 mmap_read_test 300 0.59
82 mmap_write_test 400 0.59
83 mmap_read_test 400 0.78
84 mmap_write_test 500 0.75
85 mmap_read_test 500 0.98

View File

@ -0,0 +1,85 @@
file_create_test,1000,0.06
file_open_test,1000,0.17
file_overwrite_test,1000,0.05
file_list_test,1000,0.11
file_delete_test,1000,0.06
file_mkdir_test,1000,0.05
file_rmdir_test,1000,0.06
file_create_test,2000,0.44
file_open_test,2000,0.08
file_overwrite_test,2000,0.09
file_list_test,2000,0.22
file_delete_test,2000,0.14
file_mkdir_test,2000,0.09
file_rmdir_test,2000,0.14
file_create_test,3000,0.56
file_open_test,3000,0.20
file_overwrite_test,3000,0.14
file_list_test,3000,0.33
file_delete_test,3000,0.20
file_mkdir_test,3000,0.41
file_rmdir_test,3000,0.16
file_create_test,4000,0.59
file_open_test,4000,0.16
file_overwrite_test,4000,0.19
file_list_test,4000,0.47
file_delete_test,4000,0.31
file_mkdir_test,4000,0.66
file_rmdir_test,4000,0.23
file_create_test,5000,0.98
file_open_test,5000,0.22
file_overwrite_test,5000,0.22
file_list_test,5000,0.59
file_delete_test,5000,0.36
file_mkdir_test,5000,0.66
file_rmdir_test,5000,0.31
rdwr_cc_write_page_test,100,0.34
rdwr_cc_read_page_test,100,0.28
rdwr_cc_write_large_test,100,0.11
rdwr_cc_read_large_test,100,0.08
rdwr_cc_write_page_test,200,0.67
rdwr_cc_read_page_test,200,0.58
rdwr_cc_write_large_test,200,0.22
rdwr_cc_read_large_test,200,0.22
rdwr_cc_write_page_test,300,1.01
rdwr_cc_read_page_test,300,0.88
rdwr_cc_write_large_test,300,0.34
rdwr_cc_read_large_test,300,0.25
rdwr_cc_write_page_test,400,1.38
rdwr_cc_read_page_test,400,1.12
rdwr_cc_write_large_test,400,0.42
rdwr_cc_read_large_test,400,0.33
rdwr_cc_write_page_test,500,1.70
rdwr_cc_read_page_test,500,1.48
rdwr_cc_write_large_test,500,0.64
rdwr_cc_read_large_test,500,0.44
rdwr_nc_write_page_test,100,1.31
rdwr_nc_read_page_test,100,1.36
rdwr_nc_write_large_test,100,0.17
rdwr_nc_read_large_test,100,0.16
rdwr_nc_write_page_test,200,2.56
rdwr_nc_read_page_test,200,2.81
rdwr_nc_write_large_test,200,0.33
rdwr_nc_read_large_test,200,0.31
rdwr_nc_write_page_test,300,3.86
rdwr_nc_read_page_test,300,3.95
rdwr_nc_write_large_test,300,0.47
rdwr_nc_read_large_test,300,0.48
rdwr_nc_write_page_test,400,5.11
rdwr_nc_read_page_test,400,5.19
rdwr_nc_write_large_test,400,0.64
rdwr_nc_read_large_test,400,0.64
rdwr_nc_write_page_test,500,6.42
rdwr_nc_read_page_test,500,6.58
rdwr_nc_write_large_test,500,0.78
rdwr_nc_read_large_test,500,0.78
mmap_write_test,100,0.16
mmap_read_test,100,0.20
mmap_write_test,200,0.30
mmap_read_test,200,0.39
mmap_write_test,300,0.44
mmap_read_test,300,0.59
mmap_write_test,400,0.59
mmap_read_test,400,0.78
mmap_write_test,500,0.75
mmap_read_test,500,1.03
1 file_create_test 1000 0.06
2 file_open_test 1000 0.17
3 file_overwrite_test 1000 0.05
4 file_list_test 1000 0.11
5 file_delete_test 1000 0.06
6 file_mkdir_test 1000 0.05
7 file_rmdir_test 1000 0.06
8 file_create_test 2000 0.44
9 file_open_test 2000 0.08
10 file_overwrite_test 2000 0.09
11 file_list_test 2000 0.22
12 file_delete_test 2000 0.14
13 file_mkdir_test 2000 0.09
14 file_rmdir_test 2000 0.14
15 file_create_test 3000 0.56
16 file_open_test 3000 0.20
17 file_overwrite_test 3000 0.14
18 file_list_test 3000 0.33
19 file_delete_test 3000 0.20
20 file_mkdir_test 3000 0.41
21 file_rmdir_test 3000 0.16
22 file_create_test 4000 0.59
23 file_open_test 4000 0.16
24 file_overwrite_test 4000 0.19
25 file_list_test 4000 0.47
26 file_delete_test 4000 0.31
27 file_mkdir_test 4000 0.66
28 file_rmdir_test 4000 0.23
29 file_create_test 5000 0.98
30 file_open_test 5000 0.22
31 file_overwrite_test 5000 0.22
32 file_list_test 5000 0.59
33 file_delete_test 5000 0.36
34 file_mkdir_test 5000 0.66
35 file_rmdir_test 5000 0.31
36 rdwr_cc_write_page_test 100 0.34
37 rdwr_cc_read_page_test 100 0.28
38 rdwr_cc_write_large_test 100 0.11
39 rdwr_cc_read_large_test 100 0.08
40 rdwr_cc_write_page_test 200 0.67
41 rdwr_cc_read_page_test 200 0.58
42 rdwr_cc_write_large_test 200 0.22
43 rdwr_cc_read_large_test 200 0.22
44 rdwr_cc_write_page_test 300 1.01
45 rdwr_cc_read_page_test 300 0.88
46 rdwr_cc_write_large_test 300 0.34
47 rdwr_cc_read_large_test 300 0.25
48 rdwr_cc_write_page_test 400 1.38
49 rdwr_cc_read_page_test 400 1.12
50 rdwr_cc_write_large_test 400 0.42
51 rdwr_cc_read_large_test 400 0.33
52 rdwr_cc_write_page_test 500 1.70
53 rdwr_cc_read_page_test 500 1.48
54 rdwr_cc_write_large_test 500 0.64
55 rdwr_cc_read_large_test 500 0.44
56 rdwr_nc_write_page_test 100 1.31
57 rdwr_nc_read_page_test 100 1.36
58 rdwr_nc_write_large_test 100 0.17
59 rdwr_nc_read_large_test 100 0.16
60 rdwr_nc_write_page_test 200 2.56
61 rdwr_nc_read_page_test 200 2.81
62 rdwr_nc_write_large_test 200 0.33
63 rdwr_nc_read_large_test 200 0.31
64 rdwr_nc_write_page_test 300 3.86
65 rdwr_nc_read_page_test 300 3.95
66 rdwr_nc_write_large_test 300 0.47
67 rdwr_nc_read_large_test 300 0.48
68 rdwr_nc_write_page_test 400 5.11
69 rdwr_nc_read_page_test 400 5.19
70 rdwr_nc_write_large_test 400 0.64
71 rdwr_nc_read_large_test 400 0.64
72 rdwr_nc_write_page_test 500 6.42
73 rdwr_nc_read_page_test 500 6.58
74 rdwr_nc_write_large_test 500 0.78
75 rdwr_nc_read_large_test 500 0.78
76 mmap_write_test 100 0.16
77 mmap_read_test 100 0.20
78 mmap_write_test 200 0.30
79 mmap_read_test 200 0.39
80 mmap_write_test 300 0.44
81 mmap_read_test 300 0.59
82 mmap_write_test 400 0.59
83 mmap_read_test 400 0.78
84 mmap_write_test 500 0.75
85 mmap_read_test 500 1.03

View File

@ -0,0 +1,85 @@
file_create_test,1000,0.06
file_open_test,1000,0.16
file_overwrite_test,1000,0.05
file_list_test,1000,0.11
file_delete_test,1000,0.06
file_mkdir_test,1000,0.05
file_rmdir_test,1000,0.06
file_create_test,2000,0.44
file_open_test,2000,0.08
file_overwrite_test,2000,0.09
file_list_test,2000,0.20
file_delete_test,2000,0.16
file_mkdir_test,2000,0.09
file_rmdir_test,2000,0.13
file_create_test,3000,0.58
file_open_test,3000,0.22
file_overwrite_test,3000,0.13
file_list_test,3000,0.34
file_delete_test,3000,0.22
file_mkdir_test,3000,0.39
file_rmdir_test,3000,0.17
file_create_test,4000,0.61
file_open_test,4000,0.17
file_overwrite_test,4000,0.19
file_list_test,4000,0.44
file_delete_test,4000,0.27
file_mkdir_test,4000,0.67
file_rmdir_test,4000,0.22
file_create_test,5000,0.97
file_open_test,5000,0.20
file_overwrite_test,5000,0.23
file_list_test,5000,0.61
file_delete_test,5000,0.33
file_mkdir_test,5000,0.67
file_rmdir_test,5000,0.28
rdwr_cc_write_page_test,100,0.36
rdwr_cc_read_page_test,100,0.30
rdwr_cc_write_large_test,100,0.12
rdwr_cc_read_large_test,100,0.08
rdwr_cc_write_page_test,200,0.69
rdwr_cc_read_page_test,200,0.58
rdwr_cc_write_large_test,200,0.30
rdwr_cc_read_large_test,200,0.23
rdwr_cc_write_page_test,300,1.02
rdwr_cc_read_page_test,300,0.87
rdwr_cc_write_large_test,300,0.34
rdwr_cc_read_large_test,300,0.23
rdwr_cc_write_page_test,400,1.41
rdwr_cc_read_page_test,400,1.14
rdwr_cc_write_large_test,400,0.47
rdwr_cc_read_large_test,400,0.33
rdwr_cc_write_page_test,500,1.73
rdwr_cc_read_page_test,500,1.50
rdwr_cc_write_large_test,500,0.53
rdwr_cc_read_large_test,500,0.41
rdwr_nc_write_page_test,100,1.33
rdwr_nc_read_page_test,100,1.44
rdwr_nc_write_large_test,100,0.17
rdwr_nc_read_large_test,100,0.17
rdwr_nc_write_page_test,200,2.75
rdwr_nc_read_page_test,200,2.94
rdwr_nc_write_large_test,200,0.38
rdwr_nc_read_large_test,200,0.33
rdwr_nc_write_page_test,300,3.94
rdwr_nc_read_page_test,300,4.17
rdwr_nc_write_large_test,300,0.48
rdwr_nc_read_large_test,300,0.56
rdwr_nc_write_page_test,400,5.25
rdwr_nc_read_page_test,400,5.58
rdwr_nc_write_large_test,400,0.63
rdwr_nc_read_large_test,400,0.64
rdwr_nc_write_page_test,500,6.52
rdwr_nc_read_page_test,500,6.78
rdwr_nc_write_large_test,500,0.80
rdwr_nc_read_large_test,500,0.80
mmap_write_test,100,0.17
mmap_read_test,100,0.20
mmap_write_test,200,0.30
mmap_read_test,200,0.41
mmap_write_test,300,0.44
mmap_read_test,300,0.61
mmap_write_test,400,0.61
mmap_read_test,400,0.78
mmap_write_test,500,0.73
mmap_read_test,500,0.98
1 file_create_test 1000 0.06
2 file_open_test 1000 0.16
3 file_overwrite_test 1000 0.05
4 file_list_test 1000 0.11
5 file_delete_test 1000 0.06
6 file_mkdir_test 1000 0.05
7 file_rmdir_test 1000 0.06
8 file_create_test 2000 0.44
9 file_open_test 2000 0.08
10 file_overwrite_test 2000 0.09
11 file_list_test 2000 0.20
12 file_delete_test 2000 0.16
13 file_mkdir_test 2000 0.09
14 file_rmdir_test 2000 0.13
15 file_create_test 3000 0.58
16 file_open_test 3000 0.22
17 file_overwrite_test 3000 0.13
18 file_list_test 3000 0.34
19 file_delete_test 3000 0.22
20 file_mkdir_test 3000 0.39
21 file_rmdir_test 3000 0.17
22 file_create_test 4000 0.61
23 file_open_test 4000 0.17
24 file_overwrite_test 4000 0.19
25 file_list_test 4000 0.44
26 file_delete_test 4000 0.27
27 file_mkdir_test 4000 0.67
28 file_rmdir_test 4000 0.22
29 file_create_test 5000 0.97
30 file_open_test 5000 0.20
31 file_overwrite_test 5000 0.23
32 file_list_test 5000 0.61
33 file_delete_test 5000 0.33
34 file_mkdir_test 5000 0.67
35 file_rmdir_test 5000 0.28
36 rdwr_cc_write_page_test 100 0.36
37 rdwr_cc_read_page_test 100 0.30
38 rdwr_cc_write_large_test 100 0.12
39 rdwr_cc_read_large_test 100 0.08
40 rdwr_cc_write_page_test 200 0.69
41 rdwr_cc_read_page_test 200 0.58
42 rdwr_cc_write_large_test 200 0.30
43 rdwr_cc_read_large_test 200 0.23
44 rdwr_cc_write_page_test 300 1.02
45 rdwr_cc_read_page_test 300 0.87
46 rdwr_cc_write_large_test 300 0.34
47 rdwr_cc_read_large_test 300 0.23
48 rdwr_cc_write_page_test 400 1.41
49 rdwr_cc_read_page_test 400 1.14
50 rdwr_cc_write_large_test 400 0.47
51 rdwr_cc_read_large_test 400 0.33
52 rdwr_cc_write_page_test 500 1.73
53 rdwr_cc_read_page_test 500 1.50
54 rdwr_cc_write_large_test 500 0.53
55 rdwr_cc_read_large_test 500 0.41
56 rdwr_nc_write_page_test 100 1.33
57 rdwr_nc_read_page_test 100 1.44
58 rdwr_nc_write_large_test 100 0.17
59 rdwr_nc_read_large_test 100 0.17
60 rdwr_nc_write_page_test 200 2.75
61 rdwr_nc_read_page_test 200 2.94
62 rdwr_nc_write_large_test 200 0.38
63 rdwr_nc_read_large_test 200 0.33
64 rdwr_nc_write_page_test 300 3.94
65 rdwr_nc_read_page_test 300 4.17
66 rdwr_nc_write_large_test 300 0.48
67 rdwr_nc_read_large_test 300 0.56
68 rdwr_nc_write_page_test 400 5.25
69 rdwr_nc_read_page_test 400 5.58
70 rdwr_nc_write_large_test 400 0.63
71 rdwr_nc_read_large_test 400 0.64
72 rdwr_nc_write_page_test 500 6.52
73 rdwr_nc_read_page_test 500 6.78
74 rdwr_nc_write_large_test 500 0.80
75 rdwr_nc_read_large_test 500 0.80
76 mmap_write_test 100 0.17
77 mmap_read_test 100 0.20
78 mmap_write_test 200 0.30
79 mmap_read_test 200 0.41
80 mmap_write_test 300 0.44
81 mmap_read_test 300 0.61
82 mmap_write_test 400 0.61
83 mmap_read_test 400 0.78
84 mmap_write_test 500 0.73
85 mmap_read_test 500 0.98

View File

@ -0,0 +1,30 @@
//ntfs
1000,0.92
2000,1.38
3000,1.11
4000,1.33
5000,1.94
//winfsp-t0
1000,0.20
2000,0.47
3000,0.59
4000,0.62
5000,1.08
//winfsp-t1
1000,0.06
2000,0.36
3000,0.58
4000,0.58
5000,0.95
//winfsp-tinf
1000,0.06
2000,0.44
3000,0.56
4000,0.59
5000,0.97
//dokany
1000,0.28
2000,0.67
3000,0.91
4000,1.25
5000,1.64
1 //ntfs
2 1000,0.92
3 2000,1.38
4 3000,1.11
5 4000,1.33
6 5000,1.94
7 //winfsp-t0
8 1000,0.20
9 2000,0.47
10 3000,0.59
11 4000,0.62
12 5000,1.08
13 //winfsp-t1
14 1000,0.06
15 2000,0.36
16 3000,0.58
17 4000,0.58
18 5000,0.95
19 //winfsp-tinf
20 1000,0.06
21 2000,0.44
22 3000,0.56
23 4000,0.59
24 5000,0.97
25 //dokany
26 1000,0.28
27 2000,0.67
28 3000,0.91
29 4000,1.25
30 5000,1.64

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,30 @@
//ntfs
1000,0.19
2000,0.39
3000,0.56
4000,0.77
5000,1.03
//winfsp-t0
1000,0.09
2000,0.19
3000,0.27
4000,0.34
5000,0.45
//winfsp-t1
1000,0.06
2000,0.14
3000,0.22
4000,0.33
5000,0.34
//winfsp-tinf
1000,0.06
2000,0.14
3000,0.20
4000,0.27
5000,0.33
//dokany
1000,0.17
2000,0.36
3000,0.56
4000,0.72
5000,0.91
1 //ntfs
2 1000,0.19
3 2000,0.39
4 3000,0.56
5 4000,0.77
6 5000,1.03
7 //winfsp-t0
8 1000,0.09
9 2000,0.19
10 3000,0.27
11 4000,0.34
12 5000,0.45
13 //winfsp-t1
14 1000,0.06
15 2000,0.14
16 3000,0.22
17 4000,0.33
18 5000,0.34
19 //winfsp-tinf
20 1000,0.06
21 2000,0.14
22 3000,0.20
23 4000,0.27
24 5000,0.33
25 //dokany
26 1000,0.17
27 2000,0.36
28 3000,0.56
29 4000,0.72
30 5000,0.91

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -0,0 +1,30 @@
//ntfs
1000,0.08
2000,0.16
3000,0.23
4000,0.33
5000,0.41
//winfsp-t0
1000,0.11
2000,0.22
3000,0.33
4000,0.47
5000,0.61
//winfsp-t1
1000,0.09
2000,0.20
3000,0.33
4000,0.44
5000,0.59
//winfsp-tinf
1000,0.11
2000,0.20
3000,0.33
4000,0.44
5000,0.59
//dokany
1000,0.16
2000,0.36
3000,0.64
4000,0.97
5000,1.38
1 //ntfs
2 1000,0.08
3 2000,0.16
4 3000,0.23
5 4000,0.33
6 5000,0.41
7 //winfsp-t0
8 1000,0.11
9 2000,0.22
10 3000,0.33
11 4000,0.47
12 5000,0.61
13 //winfsp-t1
14 1000,0.09
15 2000,0.20
16 3000,0.33
17 4000,0.44
18 5000,0.59
19 //winfsp-tinf
20 1000,0.11
21 2000,0.20
22 3000,0.33
23 4000,0.44
24 5000,0.59
25 //dokany
26 1000,0.16
27 2000,0.36
28 3000,0.64
29 4000,0.97
30 5000,1.38

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,30 @@
//ntfs
1000,0.08
2000,0.17
3000,0.23
4000,0.36
5000,0.45
//winfsp-t0
1000,0.06
2000,0.11
3000,0.27
4000,0.22
5000,0.28
//winfsp-t1
1000,0.16
2000,0.09
3000,0.20
4000,0.17
5000,0.22
//winfsp-tinf
1000,0.16
2000,0.08
3000,0.20
4000,0.16
5000,0.20
//dokany
1000,0.14
2000,0.27
3000,0.41
4000,0.55
5000,0.67
1 //ntfs
2 1000,0.08
3 2000,0.17
4 3000,0.23
5 4000,0.36
6 5000,0.45
7 //winfsp-t0
8 1000,0.06
9 2000,0.11
10 3000,0.27
11 4000,0.22
12 5000,0.28
13 //winfsp-t1
14 1000,0.16
15 2000,0.09
16 3000,0.20
17 4000,0.17
18 5000,0.22
19 //winfsp-tinf
20 1000,0.16
21 2000,0.08
22 3000,0.20
23 4000,0.16
24 5000,0.20
25 //dokany
26 1000,0.14
27 2000,0.27
28 3000,0.41
29 4000,0.55
30 5000,0.67

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,30 @@
//ntfs
1000,0.19
2000,0.36
3000,0.72
4000,0.97
5000,1.14
//winfsp-t0
1000,0.05
2000,0.11
3000,0.17
4000,0.25
5000,0.30
//winfsp-t1
1000,0.05
2000,0.08
3000,0.16
4000,0.17
5000,0.22
//winfsp-tinf
1000,0.05
2000,0.09
3000,0.13
4000,0.19
5000,0.22
//dokany
1000,0.33
2000,0.67
3000,1.03
4000,1.34
5000,1.64
1 //ntfs
2 1000,0.19
3 2000,0.36
4 3000,0.72
5 4000,0.97
6 5000,1.14
7 //winfsp-t0
8 1000,0.05
9 2000,0.11
10 3000,0.17
11 4000,0.25
12 5000,0.30
13 //winfsp-t1
14 1000,0.05
15 2000,0.08
16 3000,0.16
17 4000,0.17
18 5000,0.22
19 //winfsp-tinf
20 1000,0.05
21 2000,0.09
22 3000,0.13
23 4000,0.19
24 5000,0.22
25 //dokany
26 1000,0.33
27 2000,0.67
28 3000,1.03
29 4000,1.34
30 5000,1.64

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,30 @@
//ntfs
file_create_test,1.94
file_open_test,0.45
file_overwrite_test,1.14
file_list_test,0.41
file_delete_test,1.03
//winfsp-t0
file_create_test,1.08
file_open_test,0.28
file_overwrite_test,0.30
file_list_test,0.61
file_delete_test,0.45
//winfsp-t1
file_create_test,0.95
file_open_test,0.22
file_overwrite_test,0.22
file_list_test,0.59
file_delete_test,0.34
//winfsp-tinf
file_create_test,0.97
file_open_test,0.20
file_overwrite_test,0.22
file_list_test,0.59
file_delete_test,0.33
//dokany
file_create_test,1.64
file_open_test,0.67
file_overwrite_test,1.64
file_list_test,1.38
file_delete_test,0.91
1 //ntfs
2 file_create_test,1.94
3 file_open_test,0.45
4 file_overwrite_test,1.14
5 file_list_test,0.41
6 file_delete_test,1.03
7 //winfsp-t0
8 file_create_test,1.08
9 file_open_test,0.28
10 file_overwrite_test,0.30
11 file_list_test,0.61
12 file_delete_test,0.45
13 //winfsp-t1
14 file_create_test,0.95
15 file_open_test,0.22
16 file_overwrite_test,0.22
17 file_list_test,0.59
18 file_delete_test,0.34
19 //winfsp-tinf
20 file_create_test,0.97
21 file_open_test,0.20
22 file_overwrite_test,0.22
23 file_list_test,0.59
24 file_delete_test,0.33
25 //dokany
26 file_create_test,1.64
27 file_open_test,0.67
28 file_overwrite_test,1.64
29 file_list_test,1.38
30 file_delete_test,0.91

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,24 @@
//ntfs
100,0.19
200,0.39
300,0.58
400,0.78
500,1.06
//winfsp-t0
100,0.20
200,0.39
300,0.59
400,0.77
500,1.00
//winfsp-t1
100,0.19
200,0.39
300,0.59
400,0.78
500,0.98
//winfsp-tinf
100,0.20
200,0.39
300,0.59
400,0.78
500,0.98
1 //ntfs
2 100,0.19
3 200,0.39
4 300,0.58
5 400,0.78
6 500,1.06
7 //winfsp-t0
8 100,0.20
9 200,0.39
10 300,0.59
11 400,0.77
12 500,1.00
13 //winfsp-t1
14 100,0.19
15 200,0.39
16 300,0.59
17 400,0.78
18 500,0.98
19 //winfsp-tinf
20 100,0.20
21 200,0.39
22 300,0.59
23 400,0.78
24 500,0.98

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,24 @@
//ntfs
100,0.16
200,0.30
300,0.44
400,0.58
500,0.72
//winfsp-t0
100,0.14
200,0.30
300,0.45
400,0.56
500,0.72
//winfsp-t1
100,0.14
200,0.31
300,0.44
400,0.59
500,0.73
//winfsp-tinf
100,0.16
200,0.30
300,0.44
400,0.59
500,0.73
1 //ntfs
2 100,0.16
3 200,0.30
4 300,0.44
5 400,0.58
6 500,0.72
7 //winfsp-t0
8 100,0.14
9 200,0.30
10 300,0.45
11 400,0.56
12 500,0.72
13 //winfsp-t1
14 100,0.14
15 200,0.31
16 300,0.44
17 400,0.59
18 500,0.73
19 //winfsp-tinf
20 100,0.16
21 200,0.30
22 300,0.44
23 400,0.59
24 500,0.73

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,74 @@
#!/usr/bin/python
# usage: ./munge.py ORIG/*.csv
# munge CSV files into a format that asciidocFX understands
import csv, os, sys
snames = ["ntfs", "winfsp-t0", "winfsp-t1", "winfsp-tinf", "dokany"]
file_tnames = [
"file_create_test",
"file_open_test",
"file_overwrite_test",
"file_list_test",
"file_delete_test"]
#"file_mkdir_test",
#"file_rmdir_test"]
rdwr_tnames = [
"rdwr_cc_read_page_test",
"rdwr_cc_write_page_test",
"rdwr_nc_read_page_test",
"rdwr_nc_write_page_test",
"mmap_read_test",
"mmap_write_test"]
tnames = file_tnames + rdwr_tnames
aggregate = min
tests = {}
for arg in sys.argv[1:]:
name = os.path.splitext(os.path.basename(arg))[0]
if name[-1].isdigit() and name[-2] == '-':
name = name[:-2]
with open(arg, "r") as fin:
for row in csv.reader(fin):
tests.\
setdefault(row[0], {}).\
setdefault(name, {}).\
setdefault(int(row[1]), []).\
append(float(row[2]))
if False:
for tname in (tnames if tnames else sorted(tests.keys())):
print "%s:" % tname
test = tests[tname]
for sname in (snames if snames else sorted(test.keys())):
if sname not in test:
continue
print " %s:" % sname
series = test[sname]
for param in sorted(series.keys()):
print " %s: %s -> %.2f" % (param, series[param], aggregate(series[param]))
else:
for tname in (tnames if tnames else sorted(tests.keys())):
with open(tname + ".csv", "w") as fout:
test = tests[tname]
for sname in (snames if snames else sorted(test.keys())):
if sname not in test:
continue
fout.write("//%s\r\n" % sname)
series = test[sname]
for param in sorted(series.keys()):
fout.write("%s,%.2f\r\n" % (param, aggregate(series[param])))
def master_write(fname, tnames):
with open(fname + ".csv", "w") as fout:
for sname in snames:
fout.write("//%s\r\n" % sname)
for tname in (tnames if tnames else sorted(tests.keys())):
test = tests[tname]
if sname not in test:
continue
series = test[sname]
param = max(series.keys())
fout.write("%s,%.2f\r\n" % (tname, aggregate(series[param])))
master_write("file_tests", file_tnames)
master_write("rdwr_tests", rdwr_tnames)

View File

@ -0,0 +1,30 @@
//ntfs
100,0.19
200,0.42
300,0.61
400,0.78
500,0.97
//winfsp-t0
100,1.44
200,2.97
300,4.20
400,5.64
500,6.83
//winfsp-t1
100,1.47
200,3.00
300,4.45
400,5.78
500,7.33
//winfsp-tinf
100,0.28
200,0.58
300,0.87
400,1.12
500,1.48
//dokany
100,2.23
200,4.58
300,6.78
400,9.02
500,11.20
1 //ntfs
2 100,0.19
3 200,0.42
4 300,0.61
5 400,0.78
6 500,0.97
7 //winfsp-t0
8 100,1.44
9 200,2.97
10 300,4.20
11 400,5.64
12 500,6.83
13 //winfsp-t1
14 100,1.47
15 200,3.00
16 300,4.45
17 400,5.78
18 500,7.33
19 //winfsp-tinf
20 100,0.28
21 200,0.58
22 300,0.87
23 400,1.12
24 500,1.48
25 //dokany
26 100,2.23
27 200,4.58
28 300,6.78
29 400,9.02
30 500,11.20

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,30 @@
//ntfs
100,0.25
200,0.47
300,0.69
400,0.91
500,1.19
//winfsp-t0
100,1.30
200,2.63
300,3.91
400,5.23
500,6.12
//winfsp-t1
100,1.30
200,2.47
300,3.89
400,4.92
500,6.17
//winfsp-tinf
100,0.34
200,0.67
300,1.01
400,1.38
500,1.70
//dokany
100,2.08
200,4.23
300,6.33
400,8.48
500,10.33
1 //ntfs
2 100,0.25
3 200,0.47
4 300,0.69
5 400,0.91
6 500,1.19
7 //winfsp-t0
8 100,1.30
9 200,2.63
10 300,3.91
11 400,5.23
12 500,6.12
13 //winfsp-t1
14 100,1.30
15 200,2.47
16 300,3.89
17 400,4.92
18 500,6.17
19 //winfsp-tinf
20 100,0.34
21 200,0.67
22 300,1.01
23 400,1.38
24 500,1.70
25 //dokany
26 100,2.08
27 200,4.23
28 300,6.33
29 400,8.48
30 500,10.33

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,30 @@
//ntfs
100,9.38
200,21.39
300,19.56
400,26.11
500,33.05
//winfsp-t0
100,1.33
200,2.64
300,4.06
400,5.42
500,6.41
//winfsp-t1
100,1.38
200,2.78
300,4.23
400,5.52
500,6.94
//winfsp-tinf
100,1.36
200,2.81
300,3.95
400,5.19
500,6.58
//dokany
100,2.22
200,4.34
300,6.34
400,8.67
500,10.59
1 //ntfs
2 100,9.38
3 200,21.39
4 300,19.56
5 400,26.11
6 500,33.05
7 //winfsp-t0
8 100,1.33
9 200,2.64
10 300,4.06
11 400,5.42
12 500,6.41
13 //winfsp-t1
14 100,1.38
15 200,2.78
16 300,4.23
17 400,5.52
18 500,6.94
19 //winfsp-tinf
20 100,1.36
21 200,2.81
22 300,3.95
23 400,5.19
24 500,6.58
25 //dokany
26 100,2.22
27 200,4.34
28 300,6.34
29 400,8.67
30 500,10.59

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,30 @@
//ntfs
100,7.55
200,14.36
300,21.58
400,28.52
500,35.45
//winfsp-t0
100,1.30
200,2.67
300,3.95
400,5.33
500,6.41
//winfsp-t1
100,1.30
200,2.61
300,3.94
400,5.36
500,6.51
//winfsp-tinf
100,1.31
200,2.56
300,3.86
400,5.11
500,6.42
//dokany
100,2.20
200,4.66
300,6.44
400,8.56
500,10.73
1 //ntfs
2 100,7.55
3 200,14.36
4 300,21.58
5 400,28.52
6 500,35.45
7 //winfsp-t0
8 100,1.30
9 200,2.67
10 300,3.95
11 400,5.33
12 500,6.41
13 //winfsp-t1
14 100,1.30
15 200,2.61
16 300,3.94
17 400,5.36
18 500,6.51
19 //winfsp-tinf
20 100,1.31
21 200,2.56
22 300,3.86
23 400,5.11
24 500,6.42
25 //dokany
26 100,2.20
27 200,4.66
28 300,6.44
29 400,8.56
30 500,10.73

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -0,0 +1,33 @@
//ntfs
rdwr_cc_read_page_test,0.97
rdwr_cc_write_page_test,1.19
rdwr_nc_read_page_test,33.05
rdwr_nc_write_page_test,35.45
mmap_read_test,1.06
mmap_write_test,0.72
//winfsp-t0
rdwr_cc_read_page_test,6.83
rdwr_cc_write_page_test,6.12
rdwr_nc_read_page_test,6.41
rdwr_nc_write_page_test,6.41
mmap_read_test,1.00
mmap_write_test,0.72
//winfsp-t1
rdwr_cc_read_page_test,7.33
rdwr_cc_write_page_test,6.17
rdwr_nc_read_page_test,6.94
rdwr_nc_write_page_test,6.51
mmap_read_test,0.98
mmap_write_test,0.73
//winfsp-tinf
rdwr_cc_read_page_test,1.48
rdwr_cc_write_page_test,1.70
rdwr_nc_read_page_test,6.58
rdwr_nc_write_page_test,6.42
mmap_read_test,0.98
mmap_write_test,0.73
//dokany
rdwr_cc_read_page_test,11.20
rdwr_cc_write_page_test,10.33
rdwr_nc_read_page_test,10.59
rdwr_nc_write_page_test,10.73
1 //ntfs
2 rdwr_cc_read_page_test,0.97
3 rdwr_cc_write_page_test,1.19
4 rdwr_nc_read_page_test,33.05
5 rdwr_nc_write_page_test,35.45
6 mmap_read_test,1.06
7 mmap_write_test,0.72
8 //winfsp-t0
9 rdwr_cc_read_page_test,6.83
10 rdwr_cc_write_page_test,6.12
11 rdwr_nc_read_page_test,6.41
12 rdwr_nc_write_page_test,6.41
13 mmap_read_test,1.00
14 mmap_write_test,0.72
15 //winfsp-t1
16 rdwr_cc_read_page_test,7.33
17 rdwr_cc_write_page_test,6.17
18 rdwr_nc_read_page_test,6.94
19 rdwr_nc_write_page_test,6.51
20 mmap_read_test,0.98
21 mmap_write_test,0.73
22 //winfsp-tinf
23 rdwr_cc_read_page_test,1.48
24 rdwr_cc_write_page_test,1.70
25 rdwr_nc_read_page_test,6.58
26 rdwr_nc_write_page_test,6.42
27 mmap_read_test,0.98
28 mmap_write_test,0.73
29 //dokany
30 rdwr_cc_read_page_test,11.20
31 rdwr_cc_write_page_test,10.33
32 rdwr_nc_read_page_test,10.59
33 rdwr_nc_write_page_test,10.73

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -0,0 +1,47 @@
= WinFsp Service Architecture
This document discusses an architecture for writing user mode file systems as Windows services.
== Overview
There are a variety of reasons that user mode file systems should be written as Windows services. Chief among those are that a Windows service runs independently from user sessions. Therefore a user mode file system can provide its services to all processes in the system rather than those of the current user session. Furthermore a Windows service (usually) runs under an account with elevated privileges, which may be a requirement for some user mode file systems.
The Windows Service Control Manager provides a clean protocol for installing, configuring and controlling services. Unfortunately it also has a major deficiency in that it only allows a single instance of a particular service to be launched. The technique usually employed to work around this deficiency is to create multiple named instances of the same service (e.g. ServiceName #1, ServiceName #2). This technique assumes that there is a finite and well known set of instances, which may not always be the case.
Consider, for example, a network file system NETFS which can be used to provide a network based file system. NETFS connects to a particular server and uses its proprietary protocol to access files on that server, which it then presents to Windows as native files. Clearly there may be a very large number of NETFS servers, which makes the idea of creating separate named service instances for each server unworkable. One alternative for the NETFS developer is to create a service that manages multiple NETFS instances. Another one is to use the WinFsp service architecture described in this document.
== WinFsp Launcher
In order to overcome the issue with launching multiple instances of a particular service, WinFsp provides a generic launcher named WinFsp.Launcher. The WinFsp.Launcher is itself a Windows service that can be used to launch and control other services, provided that they fulfill the following requirements:
* That they are marked as console executables.
* That they can be parameterized using the command line.
* That they respond to the CTRL-BREAK console control event and terminate timely.
Services that wish to be controlled by the WinFsp.Launcher must add themselves under the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinFsp.Launcher\Services
For example, the MEMFS sample adds the following registry entries under this key:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinFsp.Launcher\Services\memfs32]
"Executable"="C:\\Program Files (x86)\\WinFsp\\bin\\memfs-x86.exe"
"CommandLine"="-u %1 -m %2"
"Security"="D:P(A;;RPWPLC;;;WD)"
"JobControl"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinFsp.Launcher\Services\memfs64]
"Executable"="C:\\Program Files (x86)\\WinFsp\\bin\\memfs-x64.exe"
"CommandLine"="-u %1 -m %2"
"Security"="D:P(A;;RPWPLC;;;WD)"
"JobControl"=dword:00000001
When the WinFsp.Launcher starts up it creates a named pipe that applications can use to start, stop, get information about and list service instances. A small command line utility (`launchctl`) can be used to issue those commands. The CallNamedPipeW API can be used as well.
One final note regarding security. Notice the `Security` registry value in the example above. This registry value uses SDDL syntax to instruct WinFsp.Launcher to allow Everyone (`WD`) to start (`RP`), stop (`WP`) and get information (`LC`) about the service instance. If the `Security` registry value is missing the default is to allow only LocalSystem and Administrators to control the service instance.
== WinFsp Network Provider
WinFsp includes a Network Provider that integrates with Windows and can be used to start and stop user mode file systems from the Windows shell. To achieve this the Network Provider (implemented as part of the WinFsp DLL) works closely with the WinFsp.Launcher service.
For example, if a user uses the Windows Explorer to map `\\memfs64\share` to the `Z:` drive, the Network Provider will instruct the WinFsp.Launcher to start an instance of the memfs64 service with command line `-u \\memfs64\share -m Z:`. When the user disconnects the `Z:` drive, the Network Provider will instruct the WinFsp.Launcher to stop the previously started instance of the memfs64 service.

View File

@ -0,0 +1,180 @@
= WinFsp as an IPC Mechanism
WinFsp enables the creation of user mode file systems for Windows. At its core WinFsp is also an Inter-Process Communication (IPC) mechanism that uses the familiar file system interface for communication. This document discusses WinFsp from that viewpoint.
== Single File API Request
When a process uses the familiar file API to access a file on Windows, this API request gets packaged into an I/O Request Packet (IRP) and gets routed to the relevant File System Driver (FSD). The usual FSD's in Windows (NTFS, FastFat, etc.) will process the IRP and return a response to the process. For the remainder of this discussion, we will call this process the Originating Process (OP).
In the WinFsp case things are more complicated. WinFsp will forward IRP's to another process, which implements a user mode file system. This process will process the IRP and return a response, which WinFsp will eventually forward to the OP. We will call the process that implements the user mode file system, the File System process (FS).
In the following we will also use the notation [U] to denote user mode processing and [K] to denote kernel mode processing. Additionally because a Context Switch always goes through kernel mode, we will simplify the diagrams and omit this detail when it is not important.
Consider then what happens when an OP issues a synchronous (non-overlapped), non-cached (non-buffered) WriteFile call.
ifdef::env-browser[]
[uml,file="WinFsp-as-an-IPC-Mechanism/synchronous.png"]
--
hide footbox
participant "OP[U]" as OPU
participant "OP[K]" as OPK
participant "FS[K]" as FSK
participant "FS[U]" as FSU
activate OPU
OPU ->OPK: WriteFile
deactivate OPU
activate OPK #Salmon
OPK-->FSK: Context Switch
deactivate OPK
activate FSK #Salmon
FSK ->FSU: TRANSACT Req
deactivate FSK
activate FSU #Salmon
FSU ->FSU: Process
activate FSU
deactivate FSU
FSU ->FSK: TRANSACT Rsp
deactivate FSU
activate FSK #Salmon
FSK-->OPU: Context Switch and Return
deactivate FSK
activate OPU
note over FSK, FSU #Salmon
Salmon color denotes WinFsp processing.
end note
--
endif::env-browser[]
ifndef::env-browser[image::WinFsp-as-an-IPC-Mechanism/synchronous.png[]]
Let us now consider what happens when an OP issues an asynchronous (overlapped), non-cached (non-buffered) WriteFile call. This scenario does not show how the OP receives the WriteFile result.
ifdef::env-browser[]
[uml,file="WinFsp-as-an-IPC-Mechanism/asynchronous.png"]
--
hide footbox
participant "OP[U]" as OPU
participant "OP[K]" as OPK
participant "FS[K]" as FSK
participant "FS[U]" as FSU
activate OPU
OPU ->OPK: WriteFile
deactivate OPU
activate OPK #Salmon
OPK ->OPU: Return
deactivate OPK
activate OPU
OPU ->OPU: Process
activate OPU
deactivate OPU
OPU-->FSK: Context Switch
deactivate OPU
activate FSK #Salmon
FSK ->FSU: TRANSACT Req
deactivate FSK
activate FSU #Salmon
FSU ->FSU: Process
activate FSU
deactivate FSU
FSU ->FSK: TRANSACT Rsp
deactivate FSU
activate FSK #Salmon
FSK-->OPU: Context Switch
deactivate FSK
activate OPU
note over FSK, FSU #Salmon
Salmon color denotes WinFsp processing.
end note
--
endif::env-browser[]
ifndef::env-browser[image::WinFsp-as-an-IPC-Mechanism/asynchronous.png[]]
It should be noted that from the WinFsp perspective both cases look similar. WinFsp processing occurs:
- At *OP[K]* time immediately after receipt of an IRP. An IRP is said to be in the _Pending_ stage at this point.
- At *FS[K]* time after a context switch, but before the TRANSACT call. An IRP is said to be in the _Prepare_ stage at this point.
- At *FS[K]* time after the TRANSACT call. An IRP is said to be in the _Complete_ stage at this point. Upon completion of this stage the IRP will be completed and relinquished to the OS.
- AT *FS[U]* time between the two TRANSACT calls.
The TRANSACT calls are DeviceIoControl requests that the FS issues to WinFsp. A single TRANSACT call can be used to communicate a file system response and retrieve the next file system request.
## Multiple File API Requests
Let us now consider what may happen with two simultaneous API Requests from two different processes. For example, two WriteFile requests for different files.
ifdef::env-browser[]
[uml,file="WinFsp-as-an-IPC-Mechanism/multiple.png"]
--
hide footbox
participant "OP<sub>1</sub>[U]" as OP1U
participant "OP<sub>1</sub>[K]" as OP1K
participant "OP<sub>2</sub>[U]" as OP2U
participant "OP<sub>2</sub>[K]" as OP2K
participant "FS[K]" as FSK
participant "FS[U]" as FSU
activate OP1U
OP1U ->OP1K: WriteFile
deactivate OP1U
activate OP1K #Salmon
OP1K-->OP2U: Context Switch
deactivate OP1K
activate OP2U
OP2U ->OP2K: WriteFile
deactivate OP2U
activate OP2K #Salmon
OP2K-->FSK: Context Switch
deactivate OP2K
activate FSK #Salmon
FSK ->FSU: TRANSACT\nReq<sub>1</sub>
deactivate FSK
activate FSU #Salmon
FSU ->FSU: Process
activate FSU
deactivate FSU
FSU ->FSK: TRANSACT\nRsp<sub>1</sub>
deactivate FSU
activate FSK #Salmon
FSK ->FSU: TRANSACT\nReq<sub>2</sub>
deactivate FSK
activate FSU #Salmon
FSU ->FSU: Process
activate FSU
deactivate FSU
FSU ->FSK: TRANSACT\nRsp<sub>2</sub>
deactivate FSU
activate FSK #Salmon
FSK-->OP1U: Context Switch and Return
deactivate FSK
activate OP1U
OP1U ->OP1U: Process
activate OP1U
deactivate OP1U
OP1U-->OP2U: Context Switch and Return
deactivate OP1U
activate OP2U
note over FSK, FSU #Salmon
Salmon color denotes WinFsp processing.
end note
--
endif::env-browser[]
ifndef::env-browser[image::WinFsp-as-an-IPC-Mechanism/multiple.png[]]
Notice that it is possible for the FS to process multiple file system requests without context switching.
## I/O Queues and Performance
I/O Queues are the fundamental IPC mechanism in WinFsp. The purpose of the I/O Queue is to forward an IRP from the OP to the FS and when FS processing is complete to forward the response back to the OP. I/O Queues are discussed in detail in the WinFsp design document.
WinFsp owes its excellent performance primarily to the design of the I/O Queues. I/O Queues borrow heavily from the design of I/O completion ports and schedule threads in a similar manner:
- They have a Last-In First-Out (LIFO) wait discipline.
- They limit the number of threads that can be satisfied concurrently to the number of processors.
The first property ensures that when an FS thread finishes processing a file system request, it will very likely pick up the next one from the I/O Queue without blocking and context switching to another FS thread. Minimizing context switches results in better performance.
The second property ensures that even if there are multiple file system requests waiting to be serviced in the I/O Queue, it will not schedule more thread than the number of processors. Having more than one threads scheduled on each processor is counter-productive.

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

120
doc/Winfsp-Testing.asciidoc Normal file
View File

@ -0,0 +1,120 @@
= WinFsp Testing Strategy
WinFsp maintains quality through rigorous testing under a variety of scenarios. This document discusses its testing strategy.
== Importance of Testing
A file system is a fundamental block of an OS. It provides the primary means for storing persistent information and capturing system state. A file system must not only be reliable and stable when the computer is running, it must also store data in a manner as to eliminate data loss or data corruption. Furthermore a file system must provide semantics that closely adhere to existing standards and conventions for its OS to avoid confusion or even accidental corruption from programs that use it. For these reasons rigorous and extensive testing of a file system is of paramount importance.
WinFsp enables the creation of user mode file systems that fully integrate with the Windows OS. WinFsp is a system component and the user mode file systems that integrate with it also become system components. The need for thorough testing of WinFsp becomes apparent.
== Test Suites
WinFsp currently has the following test suites:
- *Winfsp-tests*: This test suite provides comprehensive testing of WinFsp's capabilities under various scenarios. This includes general Win32 (and NTDLL) file API testing, but also includes WinFsp specific tests, such as incorrectly functioning user mode file systems. The non-WinFsp specific tests are verified against NTFS.
+
This test suite is developed together with WinFsp. It is written in C/C++ and provides a form of gray box testing.
- *Winfstest*: This is a file system test suite that was originally developed for the secfs.test collection of file system test programs by the WinFsp author. However none of its tests are WinFsp specific and all its tests pass on NTFS. Winfstest is used for testing by other Windows file systems.
+
This test suite is written in Python and C. It provides a form of black box testing.
- *FSX*: This is Apple's FSX ported to Windows by the WinFsp author. This FSX port is not WinFsp specific and is used for testing by other Windows file systems.
- *Fscrash*: This is a tool that simulates a faulty or crashing user mode file system. It is used to test the fault tolerance of WinFsp.
+
This test is WinFsp specific and is developed together with WinFsp. It is written in C/C++.
- *Fsbench*: This is a tool that can be used to test the performance of Windows file systems under different scenarios. It is not WinFsp specific.
+
This tool is currently developed together with WinFsp. It is written in C.
These test suites and a few smaller tests are run through Continuous Integration testing every time a push is made into the WinFsp repository.
=== Test File System
WinFsp includes a test user mode file system called *MEMFS*. This is a simple in memory file system written in C/C++. MEMFS attempts to achieve parity with NTFS (barring a few WinFsp limitations -- notably no support for hard links). MEMFS also performs some user mode file system checks during testing, for example, it checks that the buffer received during WRITE calls is read-only.
== Tested Scenarios
The combined test suites exercise the majority of Win32 file API's and a few NTDLL ones. The tested API's include:
- API's to create, open, close files/streams.
- API's to perform file/stream I/O in cached, non-cached, write-through, overlapped, etc. modes.
- API's to perform memory mapped I/O.
- API's to get or set file/stream metadata and security.
- API's to rename or delete files/streams.
- API's to enumerate directories and streams.
- API's that act on reparse points and symbolic links.
These tests are run under a variety of conditions:
- When the file system is a "disk" file system (+FILE_DEVICE_DISK_FILE_SYSTEM+).
- When the file system is a "network" file system (+FILE_DEVICE_NETWORK_FILE_SYSTEM+).
- When the file system is a "disk" file system exposed as a network share (+NetShareAdd+).
- When the file system is mapped as a drive (+DefineDosDeviceW+).
- When the file system is mounted on a directory (using junctions).
- When the file system is case-sensitive or case-insensitive.
- When the process making the API calls lacks the traverse privilege (+SE_CHANGE_NOTIFY_NAME+).
- When the process making the API calls has the backup or restore privilege (+SE_BACKUP_NAME+, +SE_RESTORE_NAME+).
Not all tests apply to all conditions. The test suites will disable/skip tests that do not apply to a particular scenario.
In addition the tests are run both on Debug and Release builds. Debug builds includes numerous ASSERT() statements that test various conditions within the WinFsp code.
=== Coverage
Windows File System Drivers (FSD) run in a variety of conditions that are not always easy to replicate during testing. For example, an FSD may not be able to get locks to perform an operation, in which case it may retry the operation later. Or it may be unable to allocate memory for a MustSucceed task, in which case it may wait a bit and retry.
Such situations may not arise during normal testing. For this reason, WinFsp uses the +DEBUGTEST()+ macro, which takes a single +Percent+ argument. In Release builds this macro always evaluates to +TRUE+. In Debug builds this macro may evaluate to +TRUE+ or +FALSE+ depending on the value of the +Percent+ argument, which specifies the percentage of times that +DEBUGTEST()+ should evaluate to +TRUE+. For example, a +DEBUGTEST(90)+ means that 90% of the time the macro should evaluate to +TRUE+ and 10% of the time it should evaluate to +FALSE+.
The WinFsp FSD uses the +DEBUGTEST()+ macro in various places where an operation may have to be retried. For example, here is how it handles deferred writes:
----
/* should we defer the write? */
Success = DEBUGTEST(90) && CcCanIWrite(FileObject, WriteLength, CanWait, Retrying);
if (!Success)
{
Result = FspWqCreateIrpWorkItem(Irp, FspFsvolWriteCached, 0);
if (NT_SUCCESS(Result))
{
IoMarkIrpPending(Irp);
CcDeferWrite(FileObject, FspFsvolWriteCachedDeferred, Irp, 0, WriteLength, Retrying);
return STATUS_PENDING;
}
/* if we are unable to defer we will go ahead and (try to) service the IRP now! */
}
----
In Release builds the +DEBUGTEST(90)+ macro will evaluate to +TRUE+ and the Cache Manager will be asked directly via +CcCanIWrite+ whether a WRITE should be deferred. In Debug builds the +DEBUGTEST(90)+ macro will evaluate to +FALSE+ sometimes (10% of the time) and the WRITE will be deferred, thus allowing us to test the retry code path.
== Fault Tolerance Testing
User mode file systems are normal user mode processes and as such they may fail in a variety of conditions. For example, a user mode file system may trigger an access violation while servicing a file operation. As another example, the developer of a user mode file system may terminate the file system process forcefully from within a debugger.
In such cases WinFsp is able to recover gracefully and clean up its resources and data structures. This is a fundamental capability of WinFsp and one that must be tested thoroughly.
For this purpose WinFsp is tested using the fscrash tool. Fscrash includes a special version of MEMFS, where file operations can potentially cause a crash. Fscrash also includes a simple test that is run in a loop until the included file system crashes. When the OS kills the process, the WinFsp FSD steps in and cleans up all resources used by the faulty file system. The intent of the test is to verify that WinFsp handles the crash properly, without leaving any leaks and without crashing the OS.
== Verifier
All development and testing of WinFsp is done under the Driver Verifier with standard settings enabled. The Driver Verifier is an invaluable tool for Windows Driver development. It has caught numerous issues within WinFsp, in most cases immediately after the faulty code was written and run for the first time.
=== Leak Testing
One of the most important aspects of the Driver Verifier is that it can track the pool (memory) usage of WinFsp. The WinFsp master test driver uses this to confirm that the WinFsp FSD does not leak memory. At the end of the tests the master test driver unmounts any remaining WinFsp file systems and then verifies that there are zero pool allocations for the WinFsp FSD.
== Performance Testing
The goal of performance testing is to evaluate and understand how software behaves under certain workloads. Performance testing can help identify cases where the software requires too much time or resources. It is also useful to establish a performance baseline to ensure that software performance does not degrade over time.
WinFsp uses a tool called fsbench for this purpose. Fsbench is able to test specific scenarios, for example: "how long does it take to delete 1000 files?" Fsbench has been very useful for WinFsp and has helped improve its performance: in one situation it helped identify quadratic behavior with the MEMFS ReadDirectory operation, in another situation it helped fine tune the performance of the WinFsp I/O Queue.
== Code Analysis
WinFsp is regularly run under the Visual Studio's Code Analyzer. Any issues found are examined and if necessary acted upon.
WinFsp compiles cleanly without any warnings.

1785
doc/winfsp.h.markdown Normal file

File diff suppressed because it is too large Load Diff

1
ext/test Submodule

Submodule ext/test added at 5a3a0b40a0

View File

@ -54,10 +54,19 @@ static char assert_buf[256];
static void test_printf(const char *fmt, ...);
static double run_test(struct test *test)
{
#if defined(_WIN64) || defined(_WIN32)
#pragma comment(lib, "winmm.lib")
unsigned long __stdcall timeGetTime(void);
unsigned long t0 = timeGetTime();
test->fn();
unsigned long t1 = timeGetTime();
return (t1 - t0) / 1000.0;
#else
time_t t0 = time(0);
test->fn();
time_t t1 = time(0);
return difftime(t1, t0);
#endif
}
static void do_test_default(struct test *test, int testno)
{
@ -73,7 +82,7 @@ static void do_test_default(struct test *test, int testno)
dispname[sizeof dispname - 1] = '\0';
test_printf("%s ", dispname);
double d = run_test(test);
test_printf("OK %.0fs\n", d);
test_printf("OK %.2fs\n", d);
}
else
test_printf("--- COMPLETE ---\n");
@ -131,6 +140,11 @@ void tlib_run_tests(int argc, char *argv[])
no_abort = 1;
else if (0 == strcmp("--repeat-forever", a))
repeat = ULONG_MAX;
else if ('-' == a[1])
{
fprintf(stderr, "tlib_run_tests: unknown option %s\n", a);
exit(2);
}
}
else
match_any = 0;

220
inc/fuse/fuse.h Normal file
View File

@ -0,0 +1,220 @@
/**
* @file fuse/fuse.h
* WinFsp FUSE compatible API.
*
* This file is derived from libfuse/include/fuse.h:
* FUSE: Filesystem in Userspace
* Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
*
* @copyright 2015-2016 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
* software.
*/
#ifndef FUSE_H_
#define FUSE_H_
#include "fuse_common.h"
#ifdef __cplusplus
extern "C" {
#endif
struct fuse;
typedef int (*fuse_fill_dir_t)(void *buf, const char *name,
const struct fuse_stat *stbuf, fuse_off_t off);
typedef struct fuse_dirhandle *fuse_dirh_t;
typedef int (*fuse_dirfil_t)(fuse_dirh_t h, const char *name,
int type, fuse_ino_t ino);
struct fuse_operations
{
int (*getattr)(const char *path, struct fuse_stat *stbuf);
int (*getdir)(const char *path, fuse_dirh_t h, fuse_dirfil_t filler);
int (*readlink)(const char *path, char *buf, size_t size);
int (*mknod)(const char *path, fuse_mode_t mode, fuse_dev_t dev);
int (*mkdir)(const char *path, fuse_mode_t mode);
int (*unlink)(const char *path);
int (*rmdir)(const char *path);
int (*symlink)(const char *dstpath, const char *srcpath);
int (*rename)(const char *oldpath, const char *newpath);
int (*link)(const char *srcpath, const char *dstpath);
int (*chmod)(const char *path, fuse_mode_t mode);
int (*chown)(const char *path, fuse_uid_t uid, fuse_gid_t gid);
int (*truncate)(const char *path, fuse_off_t size);
int (*utime)(const char *path, struct fuse_utimbuf *timbuf);
int (*open)(const char *path, struct fuse_file_info *fi);
int (*read)(const char *path, char *buf, size_t size, fuse_off_t off,
struct fuse_file_info *fi);
int (*write)(const char *path, const char *buf, size_t size, fuse_off_t off,
struct fuse_file_info *fi);
int (*statfs)(const char *path, struct fuse_statvfs *stbuf);
int (*flush)(const char *path, struct fuse_file_info *fi);
int (*release)(const char *path, struct fuse_file_info *fi);
int (*fsync)(const char *path, int datasync, struct fuse_file_info *fi);
int (*setxattr)(const char *path, const char *name, const char *value, size_t size,
int flags);
int (*getxattr)(const char *path, const char *name, char *value, size_t size);
int (*listxattr)(const char *path, char *namebuf, size_t size);
int (*removexattr)(const char *path, const char *name);
int (*opendir)(const char *path, struct fuse_file_info *fi);
int (*readdir)(const char *path, void *buf, fuse_fill_dir_t filler, fuse_off_t off,
struct fuse_file_info *fi);
int (*releasedir)(const char *path, struct fuse_file_info *fi);
int (*fsyncdir)(const char *path, int datasync, struct fuse_file_info *fi);
void *(*init)(struct fuse_conn_info *conn);
void (*destroy)(void *data);
int (*access)(const char *path, int mask);
int (*create)(const char *path, fuse_mode_t mode, struct fuse_file_info *fi);
int (*ftruncate)(const char *path, fuse_off_t off, struct fuse_file_info *fi);
int (*fgetattr)(const char *path, struct fuse_stat *stbuf, struct fuse_file_info *fi);
int (*lock)(const char *path, struct fuse_file_info *fi, int cmd, struct fuse_flock *lock);
int (*utimens)(const char *path, const struct fuse_timespec tv[2]);
int (*bmap)(const char *path, size_t blocksize, uint64_t *idx);
unsigned int flag_nullpath_ok:1;
unsigned int flag_reserved:31;
int (*ioctl)(const char *path, int cmd, void *arg, struct fuse_file_info *fi,
unsigned int flags, void *data);
int (*poll)(const char *path, struct fuse_file_info *fi,
struct fuse_pollhandle *ph, unsigned *reventsp);
};
struct fuse_context
{
struct fuse *fuse;
fuse_uid_t uid;
fuse_gid_t gid;
fuse_pid_t pid;
void *private_data;
fuse_mode_t umask;
};
#define fuse_main(argc, argv, ops, data)\
fuse_main_real(argc, argv, ops, sizeof *(ops), data)
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_main_real)(struct fsp_fuse_env *env,
int argc, char *argv[],
const struct fuse_operations *ops, size_t opsize, void *data);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_is_lib_option)(struct fsp_fuse_env *env,
const char *opt);
FSP_FUSE_API struct fuse *FSP_FUSE_API_NAME(fsp_fuse_new)(struct fsp_fuse_env *env,
struct fuse_chan *ch, struct fuse_args *args,
const struct fuse_operations *ops, size_t opsize, void *data);
FSP_FUSE_API void FSP_FUSE_API_NAME(fsp_fuse_destroy)(struct fsp_fuse_env *env,
struct fuse *f);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_loop)(struct fsp_fuse_env *env,
struct fuse *f);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_loop_mt)(struct fsp_fuse_env *env,
struct fuse *f);
FSP_FUSE_API void FSP_FUSE_API_NAME(fsp_fuse_exit)(struct fsp_fuse_env *env,
struct fuse *f);
FSP_FUSE_API struct fuse_context *FSP_FUSE_API_NAME(fsp_fuse_get_context)(struct fsp_fuse_env *env);
FSP_FUSE_SYM(
int fuse_main_real(int argc, char *argv[],
const struct fuse_operations *ops, size_t opsize, void *data),
{
return FSP_FUSE_API_CALL(fsp_fuse_main_real)
(fsp_fuse_env(), argc, argv, ops, opsize, data);
})
FSP_FUSE_SYM(
int fuse_is_lib_option(const char *opt),
{
return FSP_FUSE_API_CALL(fsp_fuse_is_lib_option)
(fsp_fuse_env(), opt);
})
FSP_FUSE_SYM(
struct fuse *fuse_new(struct fuse_chan *ch, struct fuse_args *args,
const struct fuse_operations *ops, size_t opsize, void *data),
{
return FSP_FUSE_API_CALL(fsp_fuse_new)
(fsp_fuse_env(), ch, args, ops, opsize, data);
})
FSP_FUSE_SYM(
void fuse_destroy(struct fuse *f),
{
FSP_FUSE_API_CALL(fsp_fuse_destroy)
(fsp_fuse_env(), f);
})
FSP_FUSE_SYM(
int fuse_loop(struct fuse *f),
{
return FSP_FUSE_API_CALL(fsp_fuse_loop)
(fsp_fuse_env(), f);
})
FSP_FUSE_SYM(
int fuse_loop_mt(struct fuse *f),
{
return FSP_FUSE_API_CALL(fsp_fuse_loop_mt)
(fsp_fuse_env(), f);
})
FSP_FUSE_SYM(
void fuse_exit(struct fuse *f),
{
FSP_FUSE_API_CALL(fsp_fuse_exit)
(fsp_fuse_env(), f);
})
FSP_FUSE_SYM(
struct fuse_context *fuse_get_context(void),
{
return FSP_FUSE_API_CALL(fsp_fuse_get_context)
(fsp_fuse_env());
})
FSP_FUSE_SYM(
int fuse_getgroups(int size, fuse_gid_t list[]),
{
(void)size;
(void)list;
return -ENOSYS;
})
FSP_FUSE_SYM(
int fuse_interrupted(void),
{
return 0;
})
FSP_FUSE_SYM(
int fuse_invalidate(struct fuse *f, const char *path),
{
(void)f;
(void)path;
return -EINVAL;
})
FSP_FUSE_SYM(
int fuse_notify_poll(struct fuse_pollhandle *ph),
{
(void)ph;
return 0;
})
FSP_FUSE_SYM(
struct fuse_session *fuse_get_session(struct fuse *f),
{
return (struct fuse_session *)f;
})
#ifdef __cplusplus
}
#endif
#endif

149
inc/fuse/fuse_common.h Normal file
View File

@ -0,0 +1,149 @@
/**
* @file fuse/fuse_common.h
* WinFsp FUSE compatible API.
*
* This file is derived from libfuse/include/fuse_common.h:
* FUSE: Filesystem in Userspace
* Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
*
* @copyright 2015-2016 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
* software.
*/
#ifndef FUSE_COMMON_H_
#define FUSE_COMMON_H_
#include "winfsp_fuse.h"
#include "fuse_opt.h"
#ifdef __cplusplus
extern "C" {
#endif
#define FUSE_MAJOR_VERSION 2
#define FUSE_MINOR_VERSION 8
#define FUSE_MAKE_VERSION(maj, min) ((maj) * 10 + (min))
#define FUSE_VERSION FUSE_MAKE_VERSION(FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION)
#define FUSE_CAP_ASYNC_READ (1 << 0)
#define FUSE_CAP_POSIX_LOCKS (1 << 1)
#define FUSE_CAP_ATOMIC_O_TRUNC (1 << 3)
#define FUSE_CAP_EXPORT_SUPPORT (1 << 4)
#define FUSE_CAP_BIG_WRITES (1 << 5)
#define FUSE_CAP_DONT_MASK (1 << 6)
#define FUSE_IOCTL_COMPAT (1 << 0)
#define FUSE_IOCTL_UNRESTRICTED (1 << 1)
#define FUSE_IOCTL_RETRY (1 << 2)
#define FUSE_IOCTL_MAX_IOV 256
struct fuse_file_info
{
int flags;
unsigned int fh_old;
int writepage;
unsigned int direct_io:1;
unsigned int keep_cache:1;
unsigned int flush:1;
unsigned int nonseekable:1;
unsigned int padding:28;
uint64_t fh;
uint64_t lock_owner;
};
struct fuse_conn_info
{
unsigned proto_major;
unsigned proto_minor;
unsigned async_read;
unsigned max_write;
unsigned max_readahead;
unsigned capable;
unsigned want;
unsigned reserved[25];
};
struct fuse_session;
struct fuse_chan;
struct fuse_pollhandle;
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_version)(struct fsp_fuse_env *env);
FSP_FUSE_API struct fuse_chan *FSP_FUSE_API_NAME(fsp_fuse_mount)(struct fsp_fuse_env *env,
const char *mountpoint, struct fuse_args *args);
FSP_FUSE_API void FSP_FUSE_API_NAME(fsp_fuse_unmount)(struct fsp_fuse_env *env,
const char *mountpoint, struct fuse_chan *ch);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_parse_cmdline)(struct fsp_fuse_env *env,
struct fuse_args *args,
char **mountpoint, int *multithreaded, int *foreground);
FSP_FUSE_API int32_t FSP_FUSE_API_NAME(fsp_fuse_ntstatus_from_errno)(struct fsp_fuse_env *env,
int err);
FSP_FUSE_SYM(
int fuse_version(void),
{
return FSP_FUSE_API_CALL(fsp_fuse_version)
(fsp_fuse_env());
})
FSP_FUSE_SYM(
struct fuse_chan *fuse_mount(const char *mountpoint, struct fuse_args *args),
{
return FSP_FUSE_API_CALL(fsp_fuse_mount)
(fsp_fuse_env(), mountpoint, args);
})
FSP_FUSE_SYM(
void fuse_unmount(const char *mountpoint, struct fuse_chan *ch),
{
FSP_FUSE_API_CALL(fsp_fuse_unmount)
(fsp_fuse_env(), mountpoint, ch);
})
FSP_FUSE_SYM(
int fuse_parse_cmdline(struct fuse_args *args,
char **mountpoint, int *multithreaded, int *foreground),
{
return FSP_FUSE_API_CALL(fsp_fuse_parse_cmdline)
(fsp_fuse_env(), args, mountpoint, multithreaded, foreground);
})
FSP_FUSE_SYM(
void fuse_pollhandle_destroy(struct fuse_pollhandle *ph),
{
(void)ph;
})
FSP_FUSE_SYM(
int fuse_daemonize(int foreground),
{
return fsp_fuse_daemonize(foreground);
})
FSP_FUSE_SYM(
int fuse_set_signal_handlers(struct fuse_session *se),
{
return fsp_fuse_set_signal_handlers(se);
})
FSP_FUSE_SYM(
void fuse_remove_signal_handlers(struct fuse_session *se),
{
(void)se;
fsp_fuse_set_signal_handlers(0);
})
#ifdef __cplusplus
}
#endif
#endif

129
inc/fuse/fuse_opt.h Normal file
View File

@ -0,0 +1,129 @@
/**
* @file fuse/fuse_opt.h
* WinFsp FUSE compatible API.
*
* This file is derived from libfuse/include/fuse_opt.h:
* FUSE: Filesystem in Userspace
* Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
*
* @copyright 2015-2016 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
* software.
*/
#ifndef FUSE_OPT_H_
#define FUSE_OPT_H_
#include "winfsp_fuse.h"
#ifdef __cplusplus
extern "C" {
#endif
#define FUSE_OPT_KEY(templ, key) { templ, -1, key }
#define FUSE_OPT_END { NULL, 0, 0 }
#define FUSE_OPT_KEY_OPT -1
#define FUSE_OPT_KEY_NONOPT -2
#define FUSE_OPT_KEY_KEEP -3
#define FUSE_OPT_KEY_DISCARD -4
#define FUSE_ARGS_INIT(argc, argv) { argc, argv, 0 }
struct fuse_opt
{
const char *templ;
unsigned int offset;
int value;
};
struct fuse_args
{
int argc;
char **argv;
int allocated;
};
typedef int (*fuse_opt_proc_t)(void *data, const char *arg, int key,
struct fuse_args *outargs);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_opt_parse)(struct fsp_fuse_env *env,
struct fuse_args *args, void *data,
const struct fuse_opt opts[], fuse_opt_proc_t proc);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_opt_add_arg)(struct fsp_fuse_env *env,
struct fuse_args *args, const char *arg);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_opt_insert_arg)(struct fsp_fuse_env *env,
struct fuse_args *args, int pos, const char *arg);
FSP_FUSE_API void FSP_FUSE_API_NAME(fsp_fuse_opt_free_args)(struct fsp_fuse_env *env,
struct fuse_args *args);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_opt_add_opt)(struct fsp_fuse_env *env,
char **opts, const char *opt);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_opt_add_opt_escaped)(struct fsp_fuse_env *env,
char **opts, const char *opt);
FSP_FUSE_API int FSP_FUSE_API_NAME(fsp_fuse_opt_match)(struct fsp_fuse_env *env,
const struct fuse_opt opts[], const char *opt);
FSP_FUSE_SYM(
int fuse_opt_parse(struct fuse_args *args, void *data,
const struct fuse_opt opts[], fuse_opt_proc_t proc),
{
return FSP_FUSE_API_CALL(fsp_fuse_opt_parse)
(fsp_fuse_env(), args, data, opts, proc);
})
FSP_FUSE_SYM(
int fuse_opt_add_arg(struct fuse_args *args, const char *arg),
{
return FSP_FUSE_API_CALL(fsp_fuse_opt_add_arg)
(fsp_fuse_env(), args, arg);
})
FSP_FUSE_SYM(
int fuse_opt_insert_arg(struct fuse_args *args, int pos, const char *arg),
{
return FSP_FUSE_API_CALL(fsp_fuse_opt_insert_arg)
(fsp_fuse_env(), args, pos, arg);
})
FSP_FUSE_SYM(
void fuse_opt_free_args(struct fuse_args *args),
{
FSP_FUSE_API_CALL(fsp_fuse_opt_free_args)
(fsp_fuse_env(), args);
})
FSP_FUSE_SYM(
int fuse_opt_add_opt(char **opts, const char *opt),
{
return FSP_FUSE_API_CALL(fsp_fuse_opt_add_opt)
(fsp_fuse_env(), opts, opt);
})
FSP_FUSE_SYM(
int fuse_opt_add_opt_escaped(char **opts, const char *opt),
{
return FSP_FUSE_API_CALL(fsp_fuse_opt_add_opt_escaped)
(fsp_fuse_env(), opts, opt);
})
FSP_FUSE_SYM(
int fuse_opt_match(const struct fuse_opt opts[], const char *opt),
{
return FSP_FUSE_API_CALL(fsp_fuse_opt_match)
(fsp_fuse_env(), opts, opt);
})
#ifdef __cplusplus
}
#endif
#endif

364
inc/fuse/winfsp_fuse.h Normal file
View File

@ -0,0 +1,364 @@
/**
* @file fuse/winfsp_fuse.h
* WinFsp FUSE compatible API.
*
* @copyright 2015-2016 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
* software.
*/
#ifndef FUSE_WINFSP_FUSE_H_INCLUDED
#define FUSE_WINFSP_FUSE_H_INCLUDED
#include <errno.h>
#include <stdint.h>
#if !defined(WINFSP_DLL_INTERNAL)
#include <stdlib.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(FSP_FUSE_API)
#if defined(WINFSP_DLL_INTERNAL)
#define FSP_FUSE_API __declspec(dllexport)
#else
#define FSP_FUSE_API __declspec(dllimport)
#endif
#endif
#if !defined(FSP_FUSE_API_NAME)
#define FSP_FUSE_API_NAME(n) (n)
#endif
#if !defined(FSP_FUSE_API_CALL)
#define FSP_FUSE_API_CALL(n) (n)
#endif
#if !defined(FSP_FUSE_SYM)
#if !defined(CYGFUSE)
#define FSP_FUSE_SYM(proto, ...) static inline proto { __VA_ARGS__ }
#else
#define FSP_FUSE_SYM(proto, ...) proto;
#endif
#endif
/*
* FUSE uses a number of types (notably: struct stat) that are OS specific.
* Furthermore there are sometimes multiple definitions of the same type even
* within the same OS. This is certainly true on Windows, where these types
* are not even native.
*
* For this reason we will define our own fuse_* types which represent the
* types as the WinFsp DLL expects to see them. We will define these types
* to be compatible with the equivalent Cygwin types as we want WinFsp-FUSE
* to be usable from Cygwin.
*/
#if defined(_WIN64) || defined(_WIN32)
typedef uint32_t fuse_uid_t;
typedef uint32_t fuse_gid_t;
typedef int32_t fuse_pid_t;
typedef uint32_t fuse_dev_t;
typedef uint64_t fuse_ino_t;
typedef uint32_t fuse_mode_t;
typedef uint16_t fuse_nlink_t;
typedef int64_t fuse_off_t;
#if defined(_WIN64)
typedef uint64_t fuse_fsblkcnt_t;
typedef uint64_t fuse_fsfilcnt_t;
#else
typedef uint32_t fuse_fsblkcnt_t;
typedef uint32_t fuse_fsfilcnt_t;
#endif
typedef int32_t fuse_blksize_t;
typedef int64_t fuse_blkcnt_t;
#if defined(_WIN64)
struct fuse_utimbuf
{
int64_t actime;
int64_t modtime;
};
struct fuse_timespec
{
int64_t tv_sec;
int64_t tv_nsec;
};
#else
struct fuse_utimbuf
{
int32_t actime;
int32_t modtime;
};
struct fuse_timespec
{
int32_t tv_sec;
int32_t tv_nsec;
};
#endif
struct fuse_stat
{
fuse_dev_t st_dev;
fuse_ino_t st_ino;
fuse_mode_t st_mode;
fuse_nlink_t st_nlink;
fuse_uid_t st_uid;
fuse_gid_t st_gid;
fuse_dev_t st_rdev;
fuse_off_t st_size;
struct fuse_timespec st_atim;
struct fuse_timespec st_mtim;
struct fuse_timespec st_ctim;
fuse_blksize_t st_blksize;
fuse_blkcnt_t st_blocks;
struct fuse_timespec st_birthtim;
};
#if defined(_WIN64)
struct fuse_statvfs
{
uint64_t f_bsize;
uint64_t f_frsize;
fuse_fsblkcnt_t f_blocks;
fuse_fsblkcnt_t f_bfree;
fuse_fsblkcnt_t f_bavail;
fuse_fsfilcnt_t f_files;
fuse_fsfilcnt_t f_ffree;
fuse_fsfilcnt_t f_favail;
uint64_t f_fsid;
uint64_t f_flag;
uint64_t f_namemax;
};
#else
struct fuse_statvfs
{
uint32_t f_bsize;
uint32_t f_frsize;
fuse_fsblkcnt_t f_blocks;
fuse_fsblkcnt_t f_bfree;
fuse_fsblkcnt_t f_bavail;
fuse_fsfilcnt_t f_files;
fuse_fsfilcnt_t f_ffree;
fuse_fsfilcnt_t f_favail;
uint32_t f_fsid;
uint32_t f_flag;
uint32_t f_namemax;
};
#endif
struct fuse_flock
{
int16_t l_type;
int16_t l_whence;
fuse_off_t l_start;
fuse_off_t l_len;
fuse_pid_t l_pid;
};
#if defined(WINFSP_DLL_INTERNAL)
#define FSP_FUSE_ENV_INIT \
{ \
'W', \
MemAlloc, MemFree, \
fsp_fuse_daemonize, \
fsp_fuse_set_signal_handlers, \
}
#else
#define FSP_FUSE_ENV_INIT \
{ \
'W', \
malloc, free, \
fsp_fuse_daemonize, \
fsp_fuse_set_signal_handlers, \
}
#endif
#elif defined(__CYGWIN__)
#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <sys/types.h>
#include <utime.h>
#define fuse_uid_t uid_t
#define fuse_gid_t gid_t
#define fuse_pid_t pid_t
#define fuse_dev_t dev_t
#define fuse_ino_t ino_t
#define fuse_mode_t mode_t
#define fuse_nlink_t nlink_t
#define fuse_off_t off_t
#define fuse_fsblkcnt_t fsblkcnt_t
#define fuse_fsfilcnt_t fsfilcnt_t
#define fuse_blksize_t blksize_t
#define fuse_blkcnt_t blkcnt_t
#define fuse_utimbuf utimbuf
#define fuse_timespec timespec
#define fuse_stat stat
#define fuse_statvfs statvfs
#define fuse_flock flock
#define FSP_FUSE_ENV_INIT \
{ \
'C', \
malloc, free, \
fsp_fuse_daemonize, \
fsp_fuse_set_signal_handlers, \
}
/*
* Note that long is 8 bytes long in Cygwin64 and 4 bytes long in Win64.
* For this reason we avoid using long anywhere in these headers.
*/
#else
#error unsupported environment
#endif
struct fsp_fuse_env
{
unsigned environment;
void *(*memalloc)(size_t);
void (*memfree)(void *);
int (*daemonize)(int);
int (*set_signal_handlers)(void *);
void (*reserved[4])();
};
FSP_FUSE_API void FSP_FUSE_API_NAME(fsp_fuse_signal_handler)(int sig);
#if defined(_WIN64) || defined(_WIN32)
static inline int fsp_fuse_daemonize(int foreground)
{
(void)foreground;
return 0;
}
static inline int fsp_fuse_set_signal_handlers(void *se)
{
(void)se;
return 0;
}
#elif defined(__CYGWIN__)
static inline int fsp_fuse_daemonize(int foreground)
{
int daemon(int nochdir, int noclose);
int chdir(const char *path);
if (!foreground)
{
if (-1 == daemon(0, 0))
return -1;
}
else
chdir("/");
return 0;
}
static inline void *fsp_fuse_signal_thread(void *psigmask)
{
int sig;
if (0 == sigwait((sigset_t *)psigmask, &sig))
FSP_FUSE_API_CALL(fsp_fuse_signal_handler)(sig);
return 0;
}
static inline int fsp_fuse_set_signal_handlers(void *se)
{
#define FSP_FUSE_SET_SIGNAL_HANDLER(sig, newha)\
if (-1 != sigaction((sig), 0, &oldsa) &&\
oldsa.sa_handler == (se ? SIG_DFL : (newha)))\
{\
newsa.sa_handler = se ? (newha) : SIG_DFL;\
sigaction((sig), &newsa, 0);\
}
#define FSP_FUSE_SIGADDSET(sig)\
if (-1 != sigaction((sig), 0, &oldsa) &&\
oldsa.sa_handler == SIG_DFL)\
sigaddset(&sigmask, (sig));
static sigset_t sigmask;
static pthread_t sigthr;
struct sigaction oldsa, newsa = { 0 };
if (0 != se)
{
if (0 == sigthr)
{
FSP_FUSE_SET_SIGNAL_HANDLER(SIGPIPE, SIG_IGN);
sigemptyset(&sigmask);
FSP_FUSE_SIGADDSET(SIGHUP);
FSP_FUSE_SIGADDSET(SIGINT);
FSP_FUSE_SIGADDSET(SIGTERM);
if (0 != pthread_sigmask(SIG_BLOCK, &sigmask, 0))
return -1;
if (0 != pthread_create(&sigthr, 0, fsp_fuse_signal_thread, &sigmask))
return -1;
}
}
else
{
if (0 != sigthr)
{
pthread_cancel(sigthr);
pthread_join(sigthr, 0);
sigthr = 0;
if (0 != pthread_sigmask(SIG_UNBLOCK, &sigmask, 0))
return -1;
sigemptyset(&sigmask);
FSP_FUSE_SET_SIGNAL_HANDLER(SIGPIPE, SIG_IGN);
}
}
return 0;
#undef FSP_FUSE_SIGADDSET
#undef FSP_FUSE_SET_SIGNAL_HANDLER
}
#endif
static inline struct fsp_fuse_env *fsp_fuse_env(void)
{
static struct fsp_fuse_env env = FSP_FUSE_ENV_INIT;
return &env;
}
#ifdef __cplusplus
}
#endif
#endif

View File

@ -6,9 +6,9 @@
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License version 3 as published by the
* Free Software Foundation.
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
@ -24,12 +24,17 @@
extern "C" {
#endif
/* static_assert is a C++11 feature, but seems to work with C on MSVC 2015 */
#if defined(WINFSP_SYS_INTERNAL) || defined(WINFSP_DLL_INTERNAL)
#define FSP_FSCTL_STATIC_ASSERT(e,m) static_assert(e,m)
#else
#define FSP_FSCTL_STATIC_ASSERT(e,m) static_assert(1,"")
#endif
#define FSP_FSCTL_DRIVER_NAME "WinFsp"
#define FSP_FSCTL_DISK_DEVICE_NAME "WinFsp.Disk"
#define FSP_FSCTL_NET_DEVICE_NAME "WinFsp.Net"
#define FSP_FSCTL_VOLUME_PARAMS_PREFIX "\\VolumeParams="
// {6F9D25FA-6DEE-4A9D-80F5-E98E14F35E54}
extern const __declspec(selectany) GUID FspFsctlDeviceClassGuid =
{ 0x6f9d25fa, 0x6dee, 0x4a9d, { 0x80, 0xf5, 0xe9, 0x8e, 0x14, 0xf3, 0x5e, 0x54 } };
@ -55,13 +60,22 @@ extern const __declspec(selectany) GUID FspFsvrtDeviceClassGuid =
#define FSP_FSCTL_STOP \
CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 0x800 + 'S', METHOD_BUFFERED, FILE_ANY_ACCESS)
#define FSP_FSCTL_VOLUME_NAME_SIZE (64 * sizeof(WCHAR))
#define FSP_FSCTL_VOLUME_PREFIX_SIZE (64 * sizeof(WCHAR))
#define FSP_FSCTL_VOLUME_NAME_SIZEMAX (FSP_FSCTL_VOLUME_NAME_SIZE + FSP_FSCTL_VOLUME_PREFIX_SIZE)
#define FSP_FSCTL_VOLUME_PARAMS_PREFIX "\\VolumeParams="
#define FSP_FSCTL_TRANSACT_REQ_SIZEMAX (4096 - 64) /* 64: size for internal request header */
#define FSP_FSCTL_TRANSACT_RSP_SIZEMAX (4096 - 64) /* symmetry! */
#define FSP_FSCTL_TRANSACT_BATCH_BUFFER_SIZEMIN 16384
#define FSP_FSCTL_VOLUME_NAME_SIZE (64 * sizeof(WCHAR))
#define FSP_FSCTL_VOLUME_PREFIX_SIZE (192 * sizeof(WCHAR))
#define FSP_FSCTL_VOLUME_FSNAME_SIZE (16 * sizeof(WCHAR))
#define FSP_FSCTL_VOLUME_NAME_SIZEMAX (FSP_FSCTL_VOLUME_NAME_SIZE + FSP_FSCTL_VOLUME_PREFIX_SIZE)
FSP_FSCTL_STATIC_ASSERT(FSP_FSCTL_VOLUME_NAME_SIZEMAX <= 260 * sizeof(WCHAR),
"Max volume name size is greater than MAX_PATH.");
#define FSP_FSCTL_TRANSACT_PATH_SIZEMAX (1024 * sizeof(WCHAR))
#define FSP_FSCTL_TRANSACT_REQ_SIZEMAX (16 * 1024 - 64) /* 64: size for internal request header */
#define FSP_FSCTL_TRANSACT_RSP_SIZEMAX (16 * 1024)
#define FSP_FSCTL_TRANSACT_REQ_BUFFER_SIZEMAX (FSP_FSCTL_TRANSACT_REQ_SIZEMAX - sizeof(FSP_FSCTL_TRANSACT_REQ))
#define FSP_FSCTL_TRANSACT_RSP_BUFFER_SIZEMAX (FSP_FSCTL_TRANSACT_RSP_SIZEMAX - sizeof(FSP_FSCTL_TRANSACT_RSP))
#define FSP_FSCTL_TRANSACT_BATCH_BUFFER_SIZEMIN (64 * 1024)
#define FSP_FSCTL_TRANSACT_BUFFER_SIZEMIN FSP_FSCTL_TRANSACT_REQ_SIZEMAX
/* marshalling */
@ -90,6 +104,7 @@ enum
FspFsctlTransactLockControlKind,
FspFsctlTransactQuerySecurityKind,
FspFsctlTransactSetSecurityKind,
FspFsctlTransactQueryStreamInformationKind,
FspFsctlTransactKindCount,
};
enum
@ -124,12 +139,21 @@ typedef struct
UINT32 CasePreservedNames:1; /* file system preserves the case of file names */
UINT32 UnicodeOnDisk:1; /* file system supports Unicode in file names */
UINT32 PersistentAcls:1; /* file system preserves and enforces access control lists */
UINT32 ReparsePoints:1; /* file system supports reparse points (!!!: unimplemented) */
UINT32 NamedStreams:1; /* file system supports named streams (!!!: unimplemented) */
UINT32 ReparsePoints:1; /* file system supports reparse points */
UINT32 ReparsePointsAccessCheck:1; /* file system performs reparse point access checks */
UINT32 NamedStreams:1; /* file system supports named streams */
UINT32 HardLinks:1; /* unimplemented; set to 0 */
UINT32 ExtendedAttributes:1; /* unimplemented; set to 0 */
UINT32 ReadOnlyVolume:1;
/* kernel-mode flags */
UINT32 PostCleanupOnDeleteOnly:1; /* post Cleanup when deleting a file only */
UINT32 KmReservedFlags:5;
/* user-mode flags */
UINT32 UmFileContextIsUserContext2:1; /* user mode: FileContext parameter is UserContext2 */
UINT32 UmFileContextIsFullContext:1; /* user mode: FileContext parameter is FullContext */
UINT32 UmReservedFlags:14;
WCHAR Prefix[FSP_FSCTL_VOLUME_PREFIX_SIZE / sizeof(WCHAR)]; /* UNC prefix (\Server\Share) */
WCHAR FileSystemName[FSP_FSCTL_VOLUME_FSNAME_SIZE / sizeof(WCHAR)];
} FSP_FSCTL_VOLUME_PARAMS;
typedef struct
{
@ -149,17 +173,36 @@ typedef struct
UINT64 LastWriteTime;
UINT64 ChangeTime;
UINT64 IndexNumber;
UINT32 HardLinks; /* unimplemented: set to 0 */
} FSP_FSCTL_FILE_INFO;
typedef struct
{
FSP_FSCTL_FILE_INFO FileInfo;
PWSTR NormalizedName;
UINT16 NormalizedNameSize;
} FSP_FSCTL_OPEN_FILE_INFO;
typedef struct
{
UINT16 Size;
FSP_FSCTL_FILE_INFO FileInfo;
UINT64 NextOffset;
UINT8 Padding[24];
UINT8 Padding[16];
/* make struct as big as FILE_ID_BOTH_DIR_INFORMATION; allows for in-place copying */
WCHAR FileNameBuf[];
} FSP_FSCTL_DIR_INFO;
typedef struct
{
UINT16 Size;
UINT64 StreamSize;
UINT64 StreamAllocationSize;
WCHAR StreamNameBuf[];
} FSP_FSCTL_STREAM_INFO;
typedef struct
{
UINT64 UserContext;
UINT64 UserContext2;
} FSP_FSCTL_TRANSACT_FULL_CONTEXT;
typedef struct
{
UINT16 Offset;
UINT16 Size;
@ -180,18 +223,24 @@ typedef struct
UINT64 AllocationSize; /* initial allocation size */
UINT64 AccessToken; /* request access token (HANDLE) */
UINT32 DesiredAccess; /* FILE_{READ_DATA,WRITE_DATA,etc.} */
UINT32 GrantedAccess; /* FILE_{READ_DATA,WRITE_DATA,etc.} */
UINT32 ShareAccess; /* FILE_SHARE_{READ,WRITE,DELETE} */
FSP_FSCTL_TRANSACT_BUF Ea; /* reserved; not currently implemented */
UINT32 UserMode:1; /* request originated in user mode */
UINT32 HasTraversePrivilege:1; /* requestor has TOKEN_HAS_TRAVERSE_PRIVILEGE */
UINT32 HasBackupPrivilege:1; /* requestor has TOKEN_HAS_BACKUP_PRIVILEGE */
UINT32 HasRestorePrivilege:1; /* requestor has TOKEN_HAS_RESTORE_PRIVILEGE */
UINT32 OpenTargetDirectory:1; /* open target dir and report FILE_{EXISTS,DOES_NOT_EXIST} */
UINT32 CaseSensitive:1; /* FileName comparisons should be case-sensitive */
UINT32 ReservedFlags:26;
UINT16 NamedStream; /* request targets named stream; colon offset in FileName */
} Create;
struct
{
UINT64 UserContext;
UINT64 UserContext2;
UINT32 FileAttributes; /* file attributes for overwritten/superseded files */
UINT64 AllocationSize; /* allocation size for overwritten/superseded files */
UINT32 Supersede:1; /* 0: FILE_OVERWRITE operation, 1: FILE_SUPERSEDE operation */
} Overwrite;
struct
@ -258,7 +307,7 @@ typedef struct
struct
{
FSP_FSCTL_TRANSACT_BUF NewFileName;
UINT32 ReplaceIfExists:1;
UINT64 AccessToken; /* request access token (HANDLE) */
} Rename;
} Info;
} SetInformation;
@ -286,8 +335,17 @@ typedef struct
UINT64 Offset;
UINT32 Length;
FSP_FSCTL_TRANSACT_BUF Pattern;
UINT32 CaseSensitive:1; /* FileName comparisons should be case-sensitive */
} QueryDirectory;
struct
{
UINT64 UserContext;
UINT64 UserContext2;
UINT32 FsControlCode;
FSP_FSCTL_TRANSACT_BUF Buffer;
UINT16 TargetOnFileSystem; /* the target of the symbolic link is on this file system */
} FileSystemControl;
struct
{
UINT64 UserContext;
UINT64 UserContext2;
@ -297,11 +355,16 @@ typedef struct
UINT64 UserContext;
UINT64 UserContext2;
UINT32 SecurityInformation;
UINT64 AccessToken; /* request access token (HANDLE) */
FSP_FSCTL_TRANSACT_BUF SecurityDescriptor;
} SetSecurity;
struct
{
UINT64 UserContext;
UINT64 UserContext2;
} QueryStreamInformation;
} Req;
FSP_FSCTL_TRANSACT_BUF FileName; /* {Create,Cleanup,SetInformation/{...},QueryDirectory} */
FSP_FSCTL_TRANSACT_BUF FileName;
/* Create,Cleanup,SetInformation{Disposition,Rename},FileSystemControl{ReparsePoint} */
FSP_FSCTL_DECLSPEC_ALIGN UINT8 Buffer[];
} FSP_FSCTL_TRANSACT_REQ;
typedef struct
@ -326,11 +389,13 @@ typedef struct
UINT64 UserContext2; /* user context associated with file descriptor (handle) */
UINT32 GrantedAccess; /* FILE_{READ_DATA,WRITE_DATA,etc.} */
FSP_FSCTL_FILE_INFO FileInfo;
FSP_FSCTL_TRANSACT_BUF FileName;
UINT32 DisableCache:1;
} Opened;
/* IoStatus.Status == STATUS_REPARSE */
struct
{
FSP_FSCTL_TRANSACT_BUF FileName; /* file name to use for STATUS_REPARSE */
FSP_FSCTL_TRANSACT_BUF Buffer;
} Reparse;
} Create;
struct
@ -358,6 +423,10 @@ typedef struct
FSP_FSCTL_VOLUME_INFO VolumeInfo;
} SetVolumeInformation;
struct
{
FSP_FSCTL_TRANSACT_BUF Buffer;
} FileSystemControl;
struct
{
FSP_FSCTL_TRANSACT_BUF SecurityDescriptor;
} QuerySecurity;
@ -365,10 +434,17 @@ typedef struct
{
FSP_FSCTL_TRANSACT_BUF SecurityDescriptor; /* Size==0 means no security descriptor returned */
} SetSecurity;
struct
{
FSP_FSCTL_TRANSACT_BUF Buffer;
} QueryStreamInformation;
} Rsp;
FSP_FSCTL_DECLSPEC_ALIGN UINT8 Buffer[];
} FSP_FSCTL_TRANSACT_RSP;
#pragma warning(pop)
FSP_FSCTL_STATIC_ASSERT(FSP_FSCTL_TRANSACT_RSP_BUFFER_SIZEMAX > FSP_FSCTL_TRANSACT_PATH_SIZEMAX,
"FSP_FSCTL_TRANSACT_RSP_BUFFER_SIZEMAX must be greater than FSP_FSCTL_TRANSACT_PATH_SIZEMAX "
"to detect when a normalized name has been set during a Create/Open request.");
static inline BOOLEAN FspFsctlTransactCanProduceRequest(
FSP_FSCTL_TRANSACT_REQ *Request, PVOID RequestBufEnd)
{
@ -422,6 +498,7 @@ FSP_API NTSTATUS FspFsctlTransact(HANDLE VolumeHandle,
FSP_API NTSTATUS FspFsctlStop(HANDLE VolumeHandle);
FSP_API NTSTATUS FspFsctlGetVolumeList(PWSTR DevicePath,
PWCHAR VolumeListBuf, PSIZE_T PVolumeListSize);
FSP_API NTSTATUS FspFsctlPreflight(PWSTR DevicePath);
#endif
#ifdef __cplusplus

File diff suppressed because it is too large Load Diff

20
opt/cygfuse/Makefile Normal file
View File

@ -0,0 +1,20 @@
Version = $(shell sed -n '/^VERSION=/s/VERSION=\(.*\)/\1/p' fuse.cygport)
#Debug = -g
cygfuse-$(Version).dll libfuse-$(Version).dll.a fuse.pc: cygfuse.c fuse.pc.in
gcc $(Debug) -shared -o cygfuse-$(Version).dll -Wl,--out-implib=libfuse-$(Version).dll.a -I../../inc/fuse cygfuse.c
[ -n "$(Debug)" ] || strip cygfuse-$(Version).dll
sed "s/@Version@/$(Version)/g" fuse.pc.in > fuse.pc
cygfuse-test.exe: cygfuse-test.c cygfuse-$(Version).dll libfuse-$(Version).dll.a
gcc $(Debug) -o cygfuse-test.exe -I../../inc/fuse -DCYGFUSE cygfuse-test.c -L$(PWD) -lfuse-$(Version)
cygport:
git clean -dfx
(\
cd `git rev-parse --show-toplevel` &&\
Stash=`git stash create` &&\
git archive --prefix=winfsp-work/ --format=tar.gz $${Stash:-HEAD}\
> opt/cygfuse/winfsp-work.tar.gz\
)
CYGPORT_SRC_URI=winfsp-work.tar.gz CYGPORT_SRC_DIR=winfsp-work cygport fuse.cygport download prep compile install package

View File

@ -0,0 +1,6 @@
#include <fuse.h>
int main()
{
return !(FUSE_VERSION == fuse_version());
}

146
opt/cygfuse/cygfuse.c Normal file
View File

@ -0,0 +1,146 @@
/**
* @file cygfuse/cygfuse.c
*
* @copyright 2015-2016 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
* software.
*/
#include <dlfcn.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>
#include <sys/cygwin.h>
static void *cygfuse_init_winfsp();
static void *cygfuse_init_fail();
static pthread_mutex_t cygfuse_mutex = PTHREAD_MUTEX_INITIALIZER;
static void *cygfuse_handle = 0;
static inline void cygfuse_init(int force)
{
pthread_mutex_lock(&cygfuse_mutex);
if (force || 0 == cygfuse_handle)
cygfuse_handle = cygfuse_init_winfsp();
pthread_mutex_unlock(&cygfuse_mutex);
}
/*
* Unfortunately Cygwin fork is very fragile and cannot even correctly
* handle dlopen'ed DLL's if they are native (rather than Cygwin ones).
*
* So we have this very nasty hack where we reset the dlopen'ed handle
* immediately after daemonization. This will force cygfuse_init() to
* reload the WinFsp DLL and reset all API pointers in the daemonized
* process.
*/
static inline int cygfuse_daemon(int nochdir, int noclose)
{
if (-1 == daemon(nochdir, noclose))
return -1;
/* force reload of WinFsp DLL to workaround fork() problems */
cygfuse_init(1);
return 0;
}
#define daemon cygfuse_daemon
#define FSP_FUSE_API static
#define FSP_FUSE_API_NAME(api) (* pfn_ ## api)
#define FSP_FUSE_API_CALL(api) (cygfuse_init(0), pfn_ ## api)
#define FSP_FUSE_SYM(proto, ...) __attribute__ ((visibility("default"))) proto { __VA_ARGS__ }
#include <fuse_common.h>
#include <fuse.h>
#include <fuse_opt.h>
#if defined(__LP64__)
#define CYGFUSE_WINFSP_NAME "winfsp-x64.dll"
#else
#define CYGFUSE_WINFSP_NAME "winfsp-x86.dll"
#endif
#define CYGFUSE_WINFSP_PATH "bin\\" CYGFUSE_WINFSP_NAME
#define CYGFUSE_GET_API(h, n) \
if (0 == (*(void **)&(pfn_ ## n) = dlsym(h, #n)))\
return cygfuse_init_fail();
static void *cygfuse_init_winfsp()
{
void *h;
h = dlopen(CYGFUSE_WINFSP_NAME, RTLD_NOW);
if (0 == h)
{
char winpath[260], *psxpath;
int regfd, bytes;
regfd = open("/proc/registry32/HKEY_LOCAL_MACHINE/Software/WinFsp/InstallDir", O_RDONLY);
if (-1 == regfd)
return cygfuse_init_fail();
bytes = read(regfd, winpath, sizeof winpath - sizeof CYGFUSE_WINFSP_PATH);
close(regfd);
if (-1 == bytes || 0 == bytes)
return cygfuse_init_fail();
if ('\0' == winpath[bytes - 1])
bytes--;
memcpy(winpath + bytes, CYGFUSE_WINFSP_PATH, sizeof CYGFUSE_WINFSP_PATH);
psxpath = (char *)cygwin_create_path(CCP_WIN_A_TO_POSIX | CCP_PROC_CYGDRIVE, winpath);
if (0 == psxpath)
return cygfuse_init_fail();
h = dlopen(psxpath, RTLD_NOW);
free(psxpath);
if (0 == h)
return cygfuse_init_fail();
}
/* winfsp_fuse.h */
CYGFUSE_GET_API(h, fsp_fuse_signal_handler);
/* fuse_common.h */
CYGFUSE_GET_API(h, fsp_fuse_version);
CYGFUSE_GET_API(h, fsp_fuse_mount);
CYGFUSE_GET_API(h, fsp_fuse_unmount);
CYGFUSE_GET_API(h, fsp_fuse_parse_cmdline);
CYGFUSE_GET_API(h, fsp_fuse_ntstatus_from_errno);
/* fuse.h */
CYGFUSE_GET_API(h, fsp_fuse_main_real);
CYGFUSE_GET_API(h, fsp_fuse_is_lib_option);
CYGFUSE_GET_API(h, fsp_fuse_new);
CYGFUSE_GET_API(h, fsp_fuse_destroy);
CYGFUSE_GET_API(h, fsp_fuse_loop);
CYGFUSE_GET_API(h, fsp_fuse_loop_mt);
CYGFUSE_GET_API(h, fsp_fuse_exit);
CYGFUSE_GET_API(h, fsp_fuse_get_context);
/* fuse_opt.h */
CYGFUSE_GET_API(h, fsp_fuse_opt_parse);
CYGFUSE_GET_API(h, fsp_fuse_opt_add_arg);
CYGFUSE_GET_API(h, fsp_fuse_opt_insert_arg);
CYGFUSE_GET_API(h, fsp_fuse_opt_free_args);
CYGFUSE_GET_API(h, fsp_fuse_opt_add_opt);
CYGFUSE_GET_API(h, fsp_fuse_opt_add_opt_escaped);
CYGFUSE_GET_API(h, fsp_fuse_opt_match);
return h;
}
static void *cygfuse_init_fail()
{
abort();
return 0;
}

35
opt/cygfuse/fuse.cygport Normal file
View File

@ -0,0 +1,35 @@
NAME="fuse"
VERSION=2.8
RELEASE=3
CATEGORY="Utils"
SUMMARY="WinFsp-FUSE compatibility layer"
DESCRIPTION="WinFsp-FUSE enables FUSE file systems to be run on Cygwin."
HOMEPAGE="http://www.secfs.net/winfsp/"
SRC_URI=${CYGPORT_SRC_URI:-"https://github.com/billziss-gh/winfsp/archive/master.tar.gz"}
SRC_DIR=${CYGPORT_SRC_DIR:-winfsp-master}
src_compile()
{
lndirs
cd ${B}/opt/cygfuse
make
}
src_install()
{
cd ${B}/inc/fuse
includeinto fuse
doinclude fuse.h
doinclude fuse_common.h
doinclude fuse_opt.h
doinclude winfsp_fuse.h
cd ${B}/opt/cygfuse
dobin cygfuse-${VERSION}.dll
dolib libfuse-${VERSION}.dll.a
dosym libfuse-${VERSION}.dll.a /usr/lib/libfuse.dll.a
dopkgconfig fuse.pc
}
RESTRICT="strip postinst-doc"

9
opt/cygfuse/fuse.pc.in Normal file
View File

@ -0,0 +1,9 @@
prefix=/usr
incdir=${prefix}/include/fuse
Name: fuse
Description: WinFsp FUSE compatible API
Version: @Version@
URL: http://www.secfs.net/winfsp/
Libs: -lfuse-@Version@
Cflags: -I"${incdir}" -DCYGFUSE

View File

@ -6,9 +6,9 @@
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License version 3 as published by the
* Free Software Foundation.
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
@ -19,6 +19,13 @@
#include <sddl.h>
#include <stdarg.h>
static HANDLE FspDebugLogHandle = INVALID_HANDLE_VALUE;
FSP_API VOID FspDebugLogSetHandle(HANDLE Handle)
{
FspDebugLogHandle = Handle;
}
FSP_API VOID FspDebugLog(const char *format, ...)
{
char buf[1024];
@ -28,7 +35,13 @@ FSP_API VOID FspDebugLog(const char *format, ...)
wvsprintfA(buf, format, ap);
va_end(ap);
buf[sizeof buf - 1] = '\0';
OutputDebugStringA(buf);
if (INVALID_HANDLE_VALUE != FspDebugLogHandle)
{
DWORD bytes;
WriteFile(FspDebugLogHandle, buf, lstrlenA(buf), &bytes, 0);
}
else
OutputDebugStringA(buf);
}
FSP_API VOID FspDebugLogSD(const char *format, PSECURITY_DESCRIPTOR SecurityDescriptor)
@ -37,7 +50,8 @@ FSP_API VOID FspDebugLogSD(const char *format, PSECURITY_DESCRIPTOR SecurityDesc
if (0 == SecurityDescriptor)
FspDebugLog(format, "null security descriptor");
else if (ConvertSecurityDescriptorToStringSecurityDescriptorA(SecurityDescriptor, SDDL_REVISION_1,
else if (ConvertSecurityDescriptorToStringSecurityDescriptorA(SecurityDescriptor,
SDDL_REVISION_1,
OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |
DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION,
&Sddl, 0))
@ -65,3 +79,761 @@ FSP_API VOID FspDebugLogFT(const char *format, PFILETIME FileTime)
else
FspDebugLog(format, "invalid file time");
}
#define MAKE_UINT32_PAIR(v) \
((PLARGE_INTEGER)&(v))->HighPart, ((PLARGE_INTEGER)&(v))->LowPart
static const char *FspDebugLogDispositionString(UINT32 CreateOptions)
{
switch ((CreateOptions >> 24) & 0xff)
{
case FILE_CREATE:
return "FILE_CREATE";
case FILE_OPEN:
return "FILE_OPEN";
case FILE_OPEN_IF:
return "FILE_OPEN_IF";
case FILE_OVERWRITE:
return "FILE_OVERWRITE";
case FILE_SUPERSEDE:
return "FILE_SUPERSEDE";
case FILE_OVERWRITE_IF:
return "FILE_OVERWRITE_IF";
default:
return "INVALID";
}
}
static const char *FspDebugLogUserContextString(UINT64 UserContext, UINT64 UserContext2, char *Buf)
{
wsprintfA(Buf, 0 == UserContext2 ? "%p" : "%p:%p", UserContext, UserContext2);
return Buf;
}
static const char *FspDebugLogFileTimeString(UINT64 FileTime, char *Buf)
{
SYSTEMTIME SystemTime;
if (0 == FileTime)
lstrcpyA(Buf, "0");
else if (FileTimeToSystemTime((PFILETIME)&FileTime, &SystemTime))
{
wsprintfA(Buf, "%04hu-%02hu-%02huT%02hu:%02hu:%02hu.%03huZ",
SystemTime.wYear, SystemTime.wMonth, SystemTime.wDay,
SystemTime.wHour, SystemTime.wMinute, SystemTime.wSecond,
SystemTime.wMilliseconds);
}
else
lstrcpyA(Buf, "INVALID");
return Buf;
}
static const char *FspDebugLogFileInfoString(FSP_FSCTL_FILE_INFO *FileInfo, char *Buf)
{
char CreationTimeBuf[32], LastAccessTimeBuf[32], LastWriteTimeBuf[32], ChangeTimeBuf[32];
wsprintfA(Buf,
"{"
"FileAttributes=%lx, "
"ReparseTag=%lx, "
"AllocationSize=%lx:%lx, "
"FileSize=%lx:%lx, "
"CreationTime=%s, "
"LastAccessTime=%s, "
"LastWriteTime=%s, "
"ChangeTime=%s, "
"IndexNumber=%lx:%lx"
"}",
FileInfo->FileAttributes,
FileInfo->ReparseTag,
MAKE_UINT32_PAIR(FileInfo->AllocationSize),
MAKE_UINT32_PAIR(FileInfo->FileSize),
FspDebugLogFileTimeString(FileInfo->CreationTime, CreationTimeBuf),
FspDebugLogFileTimeString(FileInfo->LastAccessTime, LastAccessTimeBuf),
FspDebugLogFileTimeString(FileInfo->LastWriteTime, LastWriteTimeBuf),
FspDebugLogFileTimeString(FileInfo->ChangeTime, ChangeTimeBuf),
MAKE_UINT32_PAIR(FileInfo->IndexNumber));
return Buf;
}
static const char *FspDebugLogVolumeInfoString(FSP_FSCTL_VOLUME_INFO *VolumeInfo, char *Buf)
{
wsprintfA(Buf,
"{"
"TotalSize=%lx:%lx, "
"FreeSize=%lx:%lx, "
"VolumeLabel=\"%.32S\""
"}",
MAKE_UINT32_PAIR(VolumeInfo->TotalSize),
MAKE_UINT32_PAIR(VolumeInfo->FreeSize),
&VolumeInfo->VolumeLabel);
return Buf;
}
static const char *FspDebugLogWideCharBufferString(PVOID WideCharBuf, ULONG Length, char *Buf)
{
WCHAR TempWideCharBuf[64 + 1];
if (Length > sizeof TempWideCharBuf - sizeof(WCHAR))
Length = sizeof TempWideCharBuf - sizeof(WCHAR);
memcpy(TempWideCharBuf, WideCharBuf, Length);
TempWideCharBuf[Length / sizeof(WCHAR)] = L'\0';
wsprintfA(Buf, "%.64S", TempWideCharBuf);
return Buf;
}
static const char *FspDebugLogReparseDataString(PVOID ReparseData0, char *Buf)
{
union
{
PREPARSE_DATA_BUFFER D;
PREPARSE_GUID_DATA_BUFFER G;
} ReparseData;
char SubstituteName[64 + 1], PrintName[64 + 1];
ReparseData.D = ReparseData0;
if (0 == ReparseData.D->ReparseDataLength)
wsprintfA(Buf,
"{"
"ReparseTag=%#lx, "
"ReparseDataLength=%hu"
"}",
ReparseData.D->ReparseTag, ReparseData.D->ReparseDataLength);
else if (IO_REPARSE_TAG_MOUNT_POINT == ReparseData.D->ReparseTag)
wsprintfA(Buf,
"{"
"ReparseTag=IO_REPARSE_TAG_MOUNT_POINT, "
"SubstituteName=\"%s\", "
"PrintName=\"%s\""
"}",
FspDebugLogWideCharBufferString(
ReparseData.D->MountPointReparseBuffer.PathBuffer +
ReparseData.D->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR),
ReparseData.D->MountPointReparseBuffer.SubstituteNameLength,
SubstituteName),
FspDebugLogWideCharBufferString(
ReparseData.D->MountPointReparseBuffer.PathBuffer +
ReparseData.D->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR),
ReparseData.D->MountPointReparseBuffer.PrintNameLength,
PrintName));
else if (IO_REPARSE_TAG_SYMLINK == ReparseData.D->ReparseTag)
wsprintfA(Buf,
"{"
"ReparseTag=IO_REPARSE_TAG_SYMLINK, "
"SubstituteName=\"%s\", "
"PrintName=\"%s\", "
"Flags=%u"
"}",
FspDebugLogWideCharBufferString(
ReparseData.D->SymbolicLinkReparseBuffer.PathBuffer +
ReparseData.D->SymbolicLinkReparseBuffer.SubstituteNameOffset / sizeof(WCHAR),
ReparseData.D->SymbolicLinkReparseBuffer.SubstituteNameLength,
SubstituteName),
FspDebugLogWideCharBufferString(
ReparseData.D->SymbolicLinkReparseBuffer.PathBuffer +
ReparseData.D->SymbolicLinkReparseBuffer.PrintNameOffset / sizeof(WCHAR),
ReparseData.D->SymbolicLinkReparseBuffer.PrintNameLength,
PrintName),
ReparseData.D->SymbolicLinkReparseBuffer.Flags);
else if (IsReparseTagMicrosoft(ReparseData.D->ReparseTag))
wsprintfA(Buf,
"{"
"ReparseTag=%#lx, "
"ReparseDataLength=%hu"
"}",
ReparseData.D->ReparseTag, ReparseData.D->ReparseDataLength);
else
#define Guid ReparseData.G->ReparseGuid
wsprintfA(Buf,
"{"
"ReparseTag=%#lx, "
"ReparseDataLength=%hu, "
"ReparseGuid={%08lX-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}"
"}",
ReparseData.G->ReparseTag, ReparseData.G->ReparseDataLength,
Guid.Data1, Guid.Data2, Guid.Data3,
Guid.Data4[0], Guid.Data4[1], Guid.Data4[2], Guid.Data4[3],
Guid.Data4[4], Guid.Data4[5], Guid.Data4[6], Guid.Data4[7]);
#undef Guid
return Buf;
}
static VOID FspDebugLogRequestVoid(FSP_FSCTL_TRANSACT_REQ *Request, const char *Name)
{
FspDebugLog("%S[TID=%04lx]: %p: >>%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint, Name);
}
static VOID FspDebugLogResponseStatus(FSP_FSCTL_TRANSACT_RSP *Response, const char *Name)
{
FspDebugLog("%S[TID=%04lx]: %p: <<%s IoStatus=%lx[%ld]\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint, Name,
Response->IoStatus.Status, Response->IoStatus.Information);
}
FSP_API VOID FspDebugLogRequest(FSP_FSCTL_TRANSACT_REQ *Request)
{
char UserContextBuf[40];
char CreationTimeBuf[32], LastAccessTimeBuf[32], LastWriteTimeBuf[32];
char InfoBuf[256];
char *Sddl = 0;
switch (Request->Kind)
{
case FspFsctlTransactReservedKind:
FspDebugLogRequestVoid(Request, "RESERVED");
break;
case FspFsctlTransactCreateKind:
if (0 != Request->Req.Create.SecurityDescriptor.Offset)
ConvertSecurityDescriptorToStringSecurityDescriptorA(
Request->Buffer + Request->Req.Create.SecurityDescriptor.Offset,
SDDL_REVISION_1,
OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |
DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION,
&Sddl, 0);
FspDebugLog("%S[TID=%04lx]: %p: >>Create [%c%c%c%c%c%c] \"%S\", "
"%s, CreateOptions=%lx, FileAttributes=%lx, Security=%s%s%s, "
"AllocationSize=%lx:%lx, "
"AccessToken=%p, DesiredAccess=%lx, GrantedAccess=%lx, "
"ShareAccess=%lx\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->Req.Create.UserMode ? 'U' : 'K',
Request->Req.Create.HasTraversePrivilege ? 'T' : '-',
Request->Req.Create.HasBackupPrivilege ? 'B' : '-',
Request->Req.Create.HasRestorePrivilege ? 'R' : '-',
Request->Req.Create.OpenTargetDirectory ? 'D' : '-',
Request->Req.Create.CaseSensitive ? 'C' : '-',
(PWSTR)Request->Buffer,
FspDebugLogDispositionString(Request->Req.Create.CreateOptions),
Request->Req.Create.CreateOptions & 0xffffff,
Request->Req.Create.FileAttributes,
Sddl ? "\"" : "",
Sddl ? Sddl : "NULL",
Sddl ? "\"" : "",
MAKE_UINT32_PAIR(Request->Req.Create.AllocationSize),
(PVOID)Request->Req.Create.AccessToken,
Request->Req.Create.DesiredAccess,
Request->Req.Create.GrantedAccess,
Request->Req.Create.ShareAccess);
LocalFree(Sddl);
break;
case FspFsctlTransactOverwriteKind:
FspDebugLog("%S[TID=%04lx]: %p: >>Overwrite%s %s%S%s%s, "
"FileAttributes=%lx\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->Req.Overwrite.Supersede ? " [Supersede]" : "",
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.Overwrite.UserContext, Request->Req.Overwrite.UserContext2,
UserContextBuf),
Request->Req.Overwrite.FileAttributes);
break;
case FspFsctlTransactCleanupKind:
FspDebugLog("%S[TID=%04lx]: %p: >>Cleanup%s %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->Req.Cleanup.Delete ? " [Delete]" : "",
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.Cleanup.UserContext, Request->Req.Cleanup.UserContext2,
UserContextBuf));
break;
case FspFsctlTransactCloseKind:
FspDebugLog("%S[TID=%04lx]: %p: >>Close %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.Close.UserContext, Request->Req.Close.UserContext2,
UserContextBuf));
break;
case FspFsctlTransactReadKind:
FspDebugLog("%S[TID=%04lx]: %p: >>Read %s%S%s%s, "
"Address=%p, Offset=%lx:%lx, Length=%ld, Key=%lx\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.Read.UserContext, Request->Req.Read.UserContext2,
UserContextBuf),
Request->Req.Read.Address,
MAKE_UINT32_PAIR(Request->Req.Read.Offset),
Request->Req.Read.Length,
Request->Req.Read.Key);
break;
case FspFsctlTransactWriteKind:
FspDebugLog("%S[TID=%04lx]: %p: >>Write%s %s%S%s%s, "
"Address=%p, Offset=%lx:%lx, Length=%ld, Key=%lx\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->Req.Write.ConstrainedIo ? " [C]" : "",
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.Write.UserContext, Request->Req.Write.UserContext2,
UserContextBuf),
Request->Req.Write.Address,
MAKE_UINT32_PAIR(Request->Req.Write.Offset),
Request->Req.Write.Length,
Request->Req.Write.Key);
break;
case FspFsctlTransactQueryInformationKind:
FspDebugLog("%S[TID=%04lx]: %p: >>QueryInformation %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.QueryInformation.UserContext, Request->Req.QueryInformation.UserContext2,
UserContextBuf));
break;
case FspFsctlTransactSetInformationKind:
switch (Request->Req.SetInformation.FileInformationClass)
{
case 4/*FileBasicInformation*/:
FspDebugLog("%S[TID=%04lx]: %p: >>SetInformation [Basic] %s%S%s%s, "
"FileAttributes=%lx, CreationTime=%s, LastAccessTime=%s, LastWriteTime=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.SetInformation.UserContext, Request->Req.SetInformation.UserContext2,
UserContextBuf),
Request->Req.SetInformation.Info.Basic.FileAttributes,
FspDebugLogFileTimeString(Request->Req.SetInformation.Info.Basic.CreationTime,
CreationTimeBuf),
FspDebugLogFileTimeString(Request->Req.SetInformation.Info.Basic.LastAccessTime,
LastAccessTimeBuf),
FspDebugLogFileTimeString(Request->Req.SetInformation.Info.Basic.LastWriteTime,
LastWriteTimeBuf));
break;
case 19/*FileAllocationInformation*/:
FspDebugLog("%S[TID=%04lx]: %p: >>SetInformation [Allocation] %s%S%s%s, "
"AllocationSize=%lx:%lx\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.SetInformation.UserContext, Request->Req.SetInformation.UserContext2,
UserContextBuf),
MAKE_UINT32_PAIR(Request->Req.SetInformation.Info.Allocation.AllocationSize));
break;
case 20/*FileEndOfFileInformation*/:
FspDebugLog("%S[TID=%04lx]: %p: >>SetInformation [EndOfFile] %s%S%s%s, "
"FileSize = %lx:%lx\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.SetInformation.UserContext, Request->Req.SetInformation.UserContext2,
UserContextBuf),
MAKE_UINT32_PAIR(Request->Req.SetInformation.Info.EndOfFile.FileSize));
break;
case 13/*FileDispositionInformation*/:
FspDebugLog("%S[TID=%04lx]: %p: >>SetInformation [Disposition] %s%S%s%s, "
"%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.SetInformation.UserContext, Request->Req.SetInformation.UserContext2,
UserContextBuf),
Request->Req.SetInformation.Info.Disposition.Delete ? "Delete" : "Undelete");
break;
case 10/*FileRenameInformation*/:
FspDebugLog("%S[TID=%04lx]: %p: >>SetInformation [Rename] %s%S%s%s, "
"NewFileName=\"%S\", AccessToken=%p\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.SetInformation.UserContext, Request->Req.SetInformation.UserContext2,
UserContextBuf),
(PWSTR)(Request->Buffer + Request->Req.SetInformation.Info.Rename.NewFileName.Offset),
(PVOID)Request->Req.SetInformation.Info.Rename.AccessToken);
break;
default:
FspDebugLog("%S[TID=%04lx]: %p: >>SetInformation [INVALID] %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.SetInformation.UserContext, Request->Req.SetInformation.UserContext2,
UserContextBuf));
break;
}
break;
case FspFsctlTransactQueryEaKind:
FspDebugLogRequestVoid(Request, "QUERYEA");
break;
case FspFsctlTransactSetEaKind:
FspDebugLogRequestVoid(Request, "SETEA");
break;
case FspFsctlTransactFlushBuffersKind:
FspDebugLog("%S[TID=%04lx]: %p: >>FlushBuffers %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.FlushBuffers.UserContext, Request->Req.FlushBuffers.UserContext2,
UserContextBuf));
break;
case FspFsctlTransactQueryVolumeInformationKind:
FspDebugLogRequestVoid(Request, "QueryVolumeInformation");
break;
case FspFsctlTransactSetVolumeInformationKind:
switch (Request->Req.SetVolumeInformation.FsInformationClass)
{
case 2/*FileFsLabelInformation*/:
FspDebugLog("%S[TID=%04lx]: %p: >>SetVolumeInformation [FsLabel] "
"Label=\"%S\"\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
(PWSTR)Request->Buffer);
break;
default:
FspDebugLog("%S[TID=%04lx]: %p: >>SetVolumeInformation [INVALID]\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint);
break;
}
break;
case FspFsctlTransactQueryDirectoryKind:
FspDebugLog("%S[TID=%04lx]: %p: >>QueryDirectory %s%S%s%s, "
"Address=%p, Offset=%lx:%lx, Length=%ld, Pattern=%s%S%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.QueryDirectory.UserContext, Request->Req.QueryDirectory.UserContext2,
UserContextBuf),
Request->Req.QueryDirectory.Address,
MAKE_UINT32_PAIR(Request->Req.QueryDirectory.Offset),
Request->Req.QueryDirectory.Length,
Request->Req.QueryDirectory.Pattern.Size ? "\"" : "",
Request->Req.QueryDirectory.Pattern.Size ?
(PWSTR)(Request->Buffer + Request->Req.QueryDirectory.Pattern.Offset) : L"NULL",
Request->Req.QueryDirectory.Pattern.Size ? "\"" : "");
break;
case FspFsctlTransactFileSystemControlKind:
switch (Request->Req.FileSystemControl.FsControlCode)
{
case FSCTL_GET_REPARSE_POINT:
FspDebugLog("%S[TID=%04lx]: %p: >>FileSystemControl [FSCTL_GET_REPARSE_POINT] %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.FileSystemControl.UserContext, Request->Req.FileSystemControl.UserContext2,
UserContextBuf));
break;
case FSCTL_SET_REPARSE_POINT:
case FSCTL_DELETE_REPARSE_POINT:
FspDebugLog("%S[TID=%04lx]: %p: >>FileSystemControl [%s] %s%S%s%s "
"ReparseData=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
FSCTL_SET_REPARSE_POINT == Request->Req.FileSystemControl.FsControlCode ?
"FSCTL_SET_REPARSE_POINT" : "FSCTL_DELETE_REPARSE_POINT",
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.FileSystemControl.UserContext, Request->Req.FileSystemControl.UserContext2,
UserContextBuf),
FspDebugLogReparseDataString(Request->Buffer + Request->Req.FileSystemControl.Buffer.Offset,
InfoBuf));
break;
default:
FspDebugLog("%S[TID=%04lx]: %p: >>FileSystemControl [INVALID] %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.FileSystemControl.UserContext, Request->Req.FileSystemControl.UserContext2,
UserContextBuf));
break;
}
break;
case FspFsctlTransactDeviceControlKind:
FspDebugLogRequestVoid(Request, "DEVICECONTROL");
break;
case FspFsctlTransactShutdownKind:
FspDebugLogRequestVoid(Request, "SHUTDOWN");
break;
case FspFsctlTransactLockControlKind:
FspDebugLogRequestVoid(Request, "LOCKCONTROL");
break;
case FspFsctlTransactQuerySecurityKind:
FspDebugLog("%S[TID=%04lx]: %p: >>QuerySecurity %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.QuerySecurity.UserContext, Request->Req.QuerySecurity.UserContext2,
UserContextBuf));
break;
case FspFsctlTransactSetSecurityKind:
if (0 != Request->Req.SetSecurity.SecurityDescriptor.Size)
ConvertSecurityDescriptorToStringSecurityDescriptorA(
Request->Buffer + Request->Req.SetSecurity.SecurityDescriptor.Offset,
SDDL_REVISION_1,
OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |
DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION,
&Sddl, 0);
FspDebugLog("%S[TID=%04lx]: %p: >>SetSecurity %s%S%s%s, "
"SecurityInformation=%lx, Security=%s%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.SetSecurity.UserContext, Request->Req.SetSecurity.UserContext2,
UserContextBuf),
Request->Req.SetSecurity.SecurityInformation,
Sddl ? "\"" : "",
Sddl ? Sddl : "NULL",
Sddl ? "\"" : "");
LocalFree(Sddl);
break;
case FspFsctlTransactQueryStreamInformationKind:
FspDebugLog("%S[TID=%04lx]: %p: >>QueryStreamInformation %s%S%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Request->Hint,
Request->FileName.Size ? "\"" : "",
Request->FileName.Size ? (PWSTR)Request->Buffer : L"",
Request->FileName.Size ? "\", " : "",
FspDebugLogUserContextString(
Request->Req.QueryStreamInformation.UserContext, Request->Req.QueryStreamInformation.UserContext2,
UserContextBuf));
break;
default:
FspDebugLogRequestVoid(Request, "INVALID");
break;
}
}
FSP_API VOID FspDebugLogResponse(FSP_FSCTL_TRANSACT_RSP *Response)
{
if (STATUS_PENDING == Response->IoStatus.Status)
return;
char UserContextBuf[40];
char InfoBuf[256];
char *Sddl = 0;
switch (Response->Kind)
{
case FspFsctlTransactReservedKind:
FspDebugLogResponseStatus(Response, "RESERVED");
break;
case FspFsctlTransactCreateKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "Create");
else if (STATUS_REPARSE == Response->IoStatus.Status)
{
if (0/*IO_REPARSE*/ == Response->IoStatus.Information)
FspDebugLog("%S[TID=%04lx]: %p: <<Create IoStatus=%lx[%ld] "
"Reparse.FileName=\"%s\"\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogWideCharBufferString(
Response->Buffer + Response->Rsp.Create.Reparse.Buffer.Offset,
Response->Rsp.Create.Reparse.Buffer.Size,
InfoBuf));
else if (1/*IO_REMOUNT*/ == Response->IoStatus.Information)
FspDebugLogResponseStatus(Response, "Create");
else
FspDebugLog("%S[TID=%04lx]: %p: <<Create IoStatus=%lx[%ld] "
"Reparse.Data=\"%s\"\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogReparseDataString(
Response->Buffer + Response->Rsp.Create.Reparse.Buffer.Offset,
InfoBuf));
}
else
FspDebugLog("%S[TID=%04lx]: %p: <<Create IoStatus=%lx[%ld] "
"UserContext=%s, GrantedAccess=%lx, FileInfo=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogUserContextString(
Response->Rsp.Create.Opened.UserContext, Response->Rsp.Create.Opened.UserContext2,
UserContextBuf),
Response->Rsp.Create.Opened.GrantedAccess,
FspDebugLogFileInfoString(&Response->Rsp.Create.Opened.FileInfo, InfoBuf));
break;
case FspFsctlTransactOverwriteKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "Overwrite");
else
FspDebugLog("%S[TID=%04lx]: %p: <<Overwrite IoStatus=%lx[%ld] "
"FileInfo=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogFileInfoString(&Response->Rsp.Overwrite.FileInfo, InfoBuf));
break;
case FspFsctlTransactCleanupKind:
FspDebugLogResponseStatus(Response, "Cleanup");
break;
case FspFsctlTransactCloseKind:
FspDebugLogResponseStatus(Response, "Close");
break;
case FspFsctlTransactReadKind:
FspDebugLogResponseStatus(Response, "Read");
break;
case FspFsctlTransactWriteKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "Write");
else
FspDebugLog("%S[TID=%04lx]: %p: <<Write IoStatus=%lx[%ld] "
"FileInfo=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogFileInfoString(&Response->Rsp.Write.FileInfo, InfoBuf));
break;
case FspFsctlTransactQueryInformationKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "QueryInformation");
else
FspDebugLog("%S[TID=%04lx]: %p: <<QueryInformation IoStatus=%lx[%ld] "
"FileInfo=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogFileInfoString(&Response->Rsp.QueryInformation.FileInfo, InfoBuf));
break;
case FspFsctlTransactSetInformationKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "SetInformation");
else
FspDebugLog("%S[TID=%04lx]: %p: <<SetInformation IoStatus=%lx[%ld] "
"FileInfo=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogFileInfoString(&Response->Rsp.SetInformation.FileInfo, InfoBuf));
break;
case FspFsctlTransactQueryEaKind:
FspDebugLogResponseStatus(Response, "QUERYEA");
break;
case FspFsctlTransactSetEaKind:
FspDebugLogResponseStatus(Response, "SETEA");
break;
case FspFsctlTransactFlushBuffersKind:
FspDebugLogResponseStatus(Response, "FlushBuffers");
break;
case FspFsctlTransactQueryVolumeInformationKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "QueryVolumeInformation");
else
FspDebugLog("%S[TID=%04lx]: %p: <<QueryVolumeInformation IoStatus=%lx[%ld] "
"VolumeInfo=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogVolumeInfoString(&Response->Rsp.QueryVolumeInformation.VolumeInfo, InfoBuf));
break;
case FspFsctlTransactSetVolumeInformationKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "SetVolumeInformation");
else
FspDebugLog("%S[TID=%04lx]: %p: <<SetVolumeInformation IoStatus=%lx[%ld] "
"VolumeInfo=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogVolumeInfoString(&Response->Rsp.SetVolumeInformation.VolumeInfo, InfoBuf));
break;
case FspFsctlTransactQueryDirectoryKind:
FspDebugLogResponseStatus(Response, "QueryDirectory");
break;
case FspFsctlTransactFileSystemControlKind:
if (!NT_SUCCESS(Response->IoStatus.Status) ||
0 == Response->Rsp.FileSystemControl.Buffer.Size)
FspDebugLogResponseStatus(Response, "FileSystemControl");
else
FspDebugLog("%S[TID=%04lx]: %p: <<FileSystemControl IoStatus=%lx[%ld] "
"ReparseData=%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
FspDebugLogReparseDataString(Response->Buffer + Response->Rsp.FileSystemControl.Buffer.Offset,
InfoBuf));
break;
case FspFsctlTransactDeviceControlKind:
FspDebugLogResponseStatus(Response, "DEVICECONTROL");
break;
case FspFsctlTransactShutdownKind:
FspDebugLogResponseStatus(Response, "SHUTDOWN");
break;
case FspFsctlTransactLockControlKind:
FspDebugLogResponseStatus(Response, "LOCKCONTROL");
break;
case FspFsctlTransactQuerySecurityKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "QuerySecurity");
else
{
if (0 != Response->Rsp.QuerySecurity.SecurityDescriptor.Size)
ConvertSecurityDescriptorToStringSecurityDescriptorA(
Response->Buffer + Response->Rsp.QuerySecurity.SecurityDescriptor.Offset,
SDDL_REVISION_1,
OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |
DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION,
&Sddl, 0);
FspDebugLog("%S[TID=%04lx]: %p: <<QuerySecurity IoStatus=%lx[%ld] "
"Security=%s%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
Sddl ? "\"" : "",
Sddl ? Sddl : "NULL",
Sddl ? "\"" : "");
LocalFree(Sddl);
}
break;
case FspFsctlTransactSetSecurityKind:
if (!NT_SUCCESS(Response->IoStatus.Status))
FspDebugLogResponseStatus(Response, "SetSecurity");
else
{
if (0 != Response->Rsp.SetSecurity.SecurityDescriptor.Size)
ConvertSecurityDescriptorToStringSecurityDescriptorA(
Response->Buffer + Response->Rsp.SetSecurity.SecurityDescriptor.Offset,
SDDL_REVISION_1,
OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |
DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION,
&Sddl, 0);
FspDebugLog("%S[TID=%04lx]: %p: <<SetSecurity IoStatus=%lx[%ld] "
"Security=%s%s%s\n",
FspDiagIdent(), GetCurrentThreadId(), Response->Hint,
Response->IoStatus.Status, Response->IoStatus.Information,
Sddl ? "\"" : "",
Sddl ? Sddl : "NULL",
Sddl ? "\"" : "");
LocalFree(Sddl);
}
break;
case FspFsctlTransactQueryStreamInformationKind:
FspDebugLogResponseStatus(Response, "QueryStreamInformation");
break;
default:
FspDebugLogResponseStatus(Response, "INVALID");
break;
}
}

139
src/dll/eventlog.c Normal file
View File

@ -0,0 +1,139 @@
/**
* @file dll/eventlog.c
*
* @copyright 2015-2016 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
* software.
*/
#include <dll/library.h>
#include <stdarg.h>
#include "eventlog/eventlog.h"
#define FSP_EVENTLOG_NAME LIBRARY_NAME
static INIT_ONCE FspEventLogInitOnce = INIT_ONCE_STATIC_INIT;
static HANDLE FspEventLogHandle;
static BOOL WINAPI FspEventLogInitialize(
PINIT_ONCE InitOnce, PVOID Parameter, PVOID *Context)
{
FspEventLogHandle = RegisterEventSourceW(0, L"" FSP_EVENTLOG_NAME);
if (0 == FspEventLogHandle)
FspEventLogHandle = RegisterEventSourceW(0, FspDiagIdent());
return TRUE;
}
VOID FspEventLogFinalize(BOOLEAN Dynamic)
{
/*
* This function is called during DLL_PROCESS_DETACH. We must therefore keep
* finalization tasks to a minimum.
*
* We must deregister our event source (if any). We only do so if the library
* is being explicitly unloaded (rather than the process exiting).
*/
if (Dynamic && 0 != FspEventLogHandle)
DeregisterEventSource(FspEventLogHandle);
}
FSP_API VOID FspEventLog(ULONG Type, PWSTR Format, ...)
{
va_list ap;
va_start(ap, Format);
FspEventLogV(Type, Format, ap);
va_end(ap);
}
FSP_API VOID FspEventLogV(ULONG Type, PWSTR Format, va_list ap)
{
InitOnceExecuteOnce(&FspEventLogInitOnce, FspEventLogInitialize, 0, 0);
if (0 == FspEventLogHandle)
return;
WCHAR Buf[1024], *Strings[2];
/* wvsprintfW is only safe with a 1024 WCHAR buffer */
DWORD EventId;
Strings[0] = FspDiagIdent();
wvsprintfW(Buf, Format, ap);
Buf[(sizeof Buf / sizeof Buf[0]) - 1] = L'\0';
Strings[1] = Buf;
switch (Type)
{
default:
case EVENTLOG_INFORMATION_TYPE:
case EVENTLOG_SUCCESS:
EventId = FSP_EVENTLOG_INFORMATION;
break;
case EVENTLOG_WARNING_TYPE:
EventId = FSP_EVENTLOG_WARNING;
break;
case EVENTLOG_ERROR_TYPE:
EventId = FSP_EVENTLOG_ERROR;
break;
}
ReportEventW(FspEventLogHandle, (WORD)Type, 0, EventId, 0, 2, 0, Strings, 0);
}
NTSTATUS FspEventLogRegister(VOID)
{
extern HINSTANCE DllInstance;
WCHAR Path[MAX_PATH];
DWORD RegResult, DwordValue;
HKEY RegKey;
if (0 == GetModuleFileNameW(DllInstance, Path, MAX_PATH))
return FspNtStatusFromWin32(GetLastError());
RegResult = RegCreateKeyExW(
HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\" FSP_EVENTLOG_NAME,
0, 0, 0, KEY_ALL_ACCESS, 0, &RegKey, 0);
if (ERROR_SUCCESS != RegResult)
return FspNtStatusFromWin32(RegResult);
RegResult = RegSetValueExW(RegKey,
L"EventMessageFile", 0, REG_SZ, (PVOID)Path, (lstrlenW(Path) + 1) * sizeof(WCHAR));
if (ERROR_SUCCESS != RegResult)
goto close_and_exit;
DwordValue = EVENTLOG_INFORMATION_TYPE | EVENTLOG_WARNING_TYPE | EVENTLOG_ERROR_TYPE;
RegResult = RegSetValueExW(RegKey,
L"TypesSupported", 0, REG_DWORD, (PVOID)&DwordValue, sizeof DwordValue);
if (ERROR_SUCCESS != RegResult)
goto close_and_exit;
RegCloseKey(RegKey);
return STATUS_SUCCESS;
close_and_exit:
RegCloseKey(RegKey);
return FspNtStatusFromWin32(RegResult);
}
NTSTATUS FspEventLogUnregister(VOID)
{
DWORD RegResult;
RegResult = RegDeleteTreeW(
HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\" FSP_EVENTLOG_NAME);
if (ERROR_SUCCESS != RegResult && ERROR_FILE_NOT_FOUND != RegResult)
return FspNtStatusFromWin32(RegResult);
return STATUS_SUCCESS;
}

View File

@ -0,0 +1,63 @@
//
// Values are 32 bit values laid out as follows:
//
// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
// +---+-+-+-----------------------+-------------------------------+
// |Sev|C|R| Facility | Code |
// +---+-+-+-----------------------+-------------------------------+
//
// where
//
// Sev - is the severity code
//
// 00 - Success
// 01 - Informational
// 10 - Warning
// 11 - Error
//
// C - is the Customer code flag
//
// R - is a reserved bit
//
// Facility - is the facility code
//
// Code - is the facility's status code
//
//
// Define the facility codes
//
//
// Define the severity codes
//
//
// MessageId: FSP_EVENTLOG_INFORMATION
//
// MessageText:
//
// %1: %2
//
#define FSP_EVENTLOG_INFORMATION 0x60000001L
//
// MessageId: FSP_EVENTLOG_WARNING
//
// MessageText:
//
// %1: %2
//
#define FSP_EVENTLOG_WARNING 0xA0000001L
//
// MessageId: FSP_EVENTLOG_ERROR
//
// MessageText:
//
// %1: %2
//
#define FSP_EVENTLOG_ERROR 0xE0000001L

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