microsoft / microsoft/go-winio

Enumerate capabilities/filters by volume

Open
#331 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.1k
Forks
218
Avg merge
6d 3h
Merged PRs (30d)
1

Description

Right now you can only query the underlying file system type of a volume, and this does result in quite bad assumptions that users of this library make to try and deduce capabilities from that. (Example: https://github.com/moby/moby/blob/531be96bf9eceaaa94396e19fdee071f9cd04a4b/daemon/graphdriver/windows/windows.go#L99)

In addition to fs.GetFileSystemType, an abstraction around https://learn.microsoft.com/en-us/windows/win32/api/fltuser/nf-fltuser-filtervolumeinstancefindfirst should be provided that allows correctly enumerating the loaded filters on a volume.

For most purposes, even just providing the names of the loaded filter drivers should be enough for the user of this library to deduce if the volume is actually going to support a specific workload.

Developers recently have started becoming aware of the roles of filter drivers as a part of this documentation: https://learn.microsoft.com/en-us/windows/dev-drive/#allow-list-filter-examples

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing fs.GetFileSystemType abstraction and compare its conventions with Windows FilterVolumeInstanceFindFirst. Add volume-level enumeration that exposes loaded filter driver names, then verify that callers can distinguish supported workloads from the filesystem type alone.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.