WinFsp: helper to develop user mode file system in Windows

This project provides an infrastructure to build user mode file system:

  • A kernel mode file system driver is responsible of re-routing IRP to user mode code,
  • A library provide a low level abstraction to build user mode file system. This part make the glu with previous kernel driver. A FUSE compatible layer is also provided,
  • a sample fs, memfs: an in memory file system,
  • A Windows Service called WinFsp Launcher to launch multiple user mode file system.

Source: Main | WinFsp

EDIT: Yet another solution for developping user mode filesystem with FUSE support: with a .Net binding.

combination-stream: Single stream representing multiple streams

From the author of the excellent SimpleJson, a single source file nuget package containing a combination stream:  support sync and async reading from multiple stream (facebook-csharp-sdk/combination-stream: Single stream representing multiple streams).

Streams should be provided in constructor as IList and are automatically disposed unless using an overloaded constructor taken indexes to dispose.

Reading source code I was thinking to a more dynamic version using an IEnumerable and a delagate responsible of the disposal part. The delegate could take an index and the Stream.

Searching for such an implementation, I’ve found this SO question where Jon Skeet propose similar specifications (at east for the IEnumerable part) and someone called prabirshrestha propose an implementation (without the IEnumarable part). The circle is complete: prabirshrestha is the author of facebook-csharp-sdk/combination-stream.

EDIT: More googling gives an implementation from Marc Gravell which is truly lazy (by far the better response of corresponding question).