When you want to create a new file system on Windows, other than FAT or NTFS,you need to develop a file system driver. Developing a device driver that worksin kernel mode on windows is extremely technical. By using Dokan, you can createyour own file systems very easily without writing device drivers. Dokan issimilar to FUSE (Linux file system in user space) but works on Windows. Moreover,dokany includes a FUSE wrapperthat helps you to port your FUSE filesystems without changes.
Dokany is a fork of Dokan 0.6.0 with bug fixes, clean change history andupdated to build with latest tools.
Because the original Dokan Legacy (< 0.6.0) project is no longer maintained.
Since version 0.8.0, dokany broke compatibility with the dokan API. SeeChoose a versionfor more information.
Signed x86 / x64 / ARM / ARM64 drivers are provided at each release.
Dokan contains LGPL and MIT licensed programs.
For details, please check the license files.
You can obtain source files from https://dokan-dev.github.io
Dokan works on
Platform
Dokan library contains a user mode DLL (dokan1.dll) and a kernel mode filesystem driver (dokan1.sys). Once the Dokan file system driver is installed, you cancreate file systems which can be seen as normal file systems in Windows. Theapplication that creates file systems using Dokan library is called File systemapplication.
File operation requests from user programs (e.g., CreateFile, ReadFile,WriteFile, ...) will be sent to the Windows I/O subsystem (runs in kernel mode)which will subsequently forward the requests to the Dokan file system driver(dokan1.sys). By using functions provided by the Dokan user mode library(dokan1.dll), file system applications are able to register callback functionsto the file system driver. The file system driver will invoke these callbackroutines in order to respond to the requests it received. The results of thecallback routines will be sent back to the user program.
For example, when Windows Explorer requests to open a directory, the CreateFilewith Direction option request will be sent to Dokan file system driver and thedriver will invoke the CreateFile callback provided by the file systemapplication. The results of this routine are sent back to Windows Explorer asthe response to the CreateFile request. Therefore, the Dokan file system driveracts as a proxy between user programs and file system applications. Theadvantage of this approach is that it allows programmers to develop file systemsin user mode which is safe and easy to debug.
To learn more about Dokan file system development, see the and the samples, especially dokan_memfs.
In short, download and install theVisual Studio 2019, select Windows 10 SDK component during the install or from the Tools menu &install the WDK 10
For details, see thebuild page.
For manual installation, see theinstallation page.
You want Dokan to get better? Contribute!
Learn the code and suggest your changes onGitHub repository.
Detect defects and report them onGitHub issue tracker.
Ask and answer questions onGithub Discussions orGoogle discussion group.
https://github.com/dokan-dev/dokany 转载于:https://www.cnblogs.com/whm-blog/p/7124099.html