Tutorial · Mount
Mount on Windows.
On Windows the adapter uses WinFsp and mounts as a drive letter or an empty folder. The pip wheel includes it.
- Time
- 10 minutes
- Driver
- WinFsp 2.0
- In the pip wheel
- Yes
1. Install WinFsp
Download and run the installer from winfsp.dev. The default components are enough to mount. To build the adapter from source, also install the developer files: choose them in the installer, or run msiexec /i winfsp.msi ADDLOCAL=ALL.
2. Install CLIO Core
PS> py -3.12 -m pip install iowarp-core
PS> clio-run --helpThe clio_cte_fuse command adds WinFsp's bin folder to PATH itself, so you do not need to edit the system PATH.
3. Start the runtime and mount
Use two PowerShell windows. In the first:
PS> clio-run startIn the second:
Drive letter
PS> $env:CLIO_WITH_RUNTIME = "0"
PS> clio_cte_fuse Z: -fFolder
PS> $env:CLIO_WITH_RUNTIME = "0"
PS> clio_cte_fuse C:\iowarp\cte -fThe folder's parent must exist. WinFsp creates the mount folder itself.
4. Use it
PS> Copy-Item -Recurse $HOME\Documents\results Z:\
PS> Get-ChildItem Z:\resultsThe drive appears in File Explorer. Python, Excel, ParaView and other applications can open files there directly.
Defender scans every new file larger than about 8 KB when it is closed. On a WinFsp mount each scan adds roughly 10 ms to close. Workloads that create many files, such as git clone, unpacking archives or builds, slow down sharply. The cost comes from Defender and WinFsp, not CLIO: WinFsp's own in-memory sample filesystem shows the same delay.
In our tests, a path exclusion for the drive letter (Add-MpPreference -ExclusionPath "Z:\") had no effect. The drive letter exists only in your login session, and Defender does not match it. Excluding the program that writes the files does work. With the writer excluded, creating 22 KB files went from about 90 to about 1,800 files per second:
PS> Add-MpPreference -ExclusionProcess "git.exe"A process exclusion stops Defender from scanning files that program opens anywhere, not only on the mount. Exclude only programs you trust, and remove the exclusion when you no longer need it with Remove-MpPreference -ExclusionProcess "git.exe".
5. Unmount
Stop the daemon, then the runtime:
PS> Stop-Process -Name clio_cte_fuse -Force
PS> clio-run stopBuilding from source
PS> cmake --preset windows-release -DCLIO_CTE_ENABLE_FUSE_ADAPTER=ON
PS> cmake --build build --config ReleaseSet VCPKG_ROOT first. WinFsp is found under %ProgramFiles(x86)%\WinFsp, or pass -DWINFSP_ROOT=.
If something goes wrong
- A missing
winfsp-x64.dll: WinFsp is not installed, or was installed without its core component. - The drive letter is in use: pick another letter, or check
Get-PSDrive. - Files are invisible to Python:
CLIO_WITH_RUNTIMEwas not0in the mount window. - git reports "dubious ownership": files on the mount show an unknown owner. Mount with
-o uid=-1,gid=-1so they belong to the user who mounted:clio_cte_fuse Z: -f -o uid=-1,gid=-1. - Creating many files is slow: see the Microsoft Defender note under Use it.