Repository navigation
fix(space): exclude kernel pseudo filesystems from volume candidates - #106
Merged
Merged
Conversation
Sub-mounts under /proc, /sys and /dev (such as /proc/sys/fs/binfmt_misc, /sys/fs/bpf and /sys/firmware/efi/efivars) as well as ramfs mounts were previously not filtered out by is_volume_candidate because they have their own filesystem types that were not part of the fstype blacklist. Filter out mounts rooted under /proc, /sys or /dev, and explicitly include binfmt_misc, bpf, efivarfs and ramfs in the pseudo filesystem blacklist.
bet4it
force-pushed
the
fix/filter-pseudo-volumes
branch
from
October 15, 2026 04:16
f99fb16 to
8844977
Compare
huntharo
added a commit
to pwrdrvr/PwrDisk
that referenced
this pull request
Oct 31, 2026
* fix(space): exclude kernel pseudo filesystems from volume candidates Sub-mounts under /proc, /sys and /dev (such as /proc/sys/fs/binfmt_misc, /sys/fs/bpf and /sys/firmware/efi/efivars) as well as ramfs mounts were previously not filtered out by is_volume_candidate because they have their own filesystem types that were not part of the fstype blacklist. Filter out mounts rooted under /proc, /sys or /dev, and explicitly include binfmt_misc, bpf, efivarfs and ramfs in the pseudo filesystem blacklist. (cherry picked from commit 8844977) * test(core): verify probe-free kernel mount discovery --------- Co-authored-by: Bet4 <0xbet4@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
In Linux,
space::volumes()enumerates volume candidates for the volume picker (vdialog). Sub-mounts under/proc,/sysand/dev(such as/proc/sys/fs/binfmt_misc,/sys/fs/bpfor/sys/firmware/efi/efivars) as well as in-memory filesystems likeramfswere previously presented as selectable storage volumes because their filesystem types were not included inis_volume_candidate's blacklist.This PR:
/proc,/sysand/dev, ensuring sub-mounts of kernel/device interfaces are never offered as scan roots.binfmt_misc,bpf,efivarfs, andramfsto the pseudo-filesystem blacklist inis_volume_candidate./proc,/sysand/devas well asramfsare excluded while real storage volumes are preserved.Verification
cargo xtask lintpasses with 0 warnings.cargo xtask testpasses (all unit and window harness tests).