WinFsp 2023
CHANGES SINCE WINFSP 2022.2
This release is a major version change for WinFsp (from 1.x to 2.x). There are no backwards incompatible API changes in this release, but nevertheless enough things change that warrant a version change.
The major new feature of this release is that it allows uninstallation and reinstallation of WinFsp without reboot. Going forward installers named winfsp-2.x.y.msi can be uninstalled and reinstalled without reboot. Furthermore a later version winfsp-2.x.y.msi installer can be used to upgrade over an earlier version winfsp-2.x.y.msi installer. However note that a winfsp-2.x.y.msi installer cannot be used to upgrade over a legacy winfsp-1.x.y.msi installer; you will still need to uninstall the old winfsp-1.x.y.msi installer, potentially reboot and then install the new winfsp-2.x.y.msi installer.
Changes visible to file system developers are listed below:
-
WinFsp executable files are now installed by default in the directory
C:\Program Files (x86)\WinFsp\SxS\sxs.<InstanceID>\bin. The previous directoryC:\Program Files (x86)\WinFsp\binis now a junction that points to the above directory. -
The WinFsp driver name is no longer
winfsp, but rather a name such aswinfsp+<InstanceID>. This means that managing the driver using thesc.exeutility is no longer as easy. -
The
fsptoolutility has been updated with new commandslsdrv,load,unloadandver. Thelsdrv,loadandunloadcommands can be used to manage the driver from the command line. This is rarely necessary, but may be useful for troubleshooting purposes. -
Prior to this release the WinFsp driver would never unmount a file system volume unless the user mode file system requested the unmount. From this release onward it is possible for the WinFsp driver to unmount a file system volume, without a user mode file system request. This is to allow for the driver to be unloaded.
A new operation
DispatcherStoppedhas been added toFSP_FILE_SYSTEM_INTERFACE, which is sent after the file system volume has been unmounted and the file system dispatcher has been stopped. This can happen because of a user mode file system request viaFspFileSystemStopDispatcheror because of driver unload. TheDispatcherStoppedoperation includes aNormallyparameter, which isTRUEfor normal file system shutdown viaFspFileSystemStopDispatcherandFALSEotherwise.Native file systems that use the
FspServiceinfrastructure can use theFspFileSystemStopServiceIfNecessaryAPI to handle theDispatcherStoppedoperation (see the MEMFS and NTPTFS samples). FUSE file systems get this functionality for free. .NET file systems that use theServiceclass infrastructure also get this functionality for free. -
WinFsp now offers a .NET library that targets .NET Framework 3.5 (as before) and one that targets .NET Standard 2.0. This is due to work by @Noire001 in PR #451.
- There is now a winfsp.net nuget package at https://www.nuget.org/packages/winfsp.net
-
FUSE now supports path components up to 255 characters long (previously it was 255 bytes). This is due to work by @zeho11 in PR #474.
- The FUSE passthrough file systems have been updated to support long paths. This is also due to work by @zeho11.
BUILD HASHES (SHA256)
winfsp-2.0.23075.msi: 6324DC81194A6A08F97B6AECA303CF5C2325C53EDE153BAE9FC4378F0838C101winfsp-tests-2.0.23075.zip: AEECDAC2BE9684C4FF9D977C41853B0DE9E065C230DBA755E86C3F8130BBC816