Skip to content

[disk][linux]: fix Device set to "none" for virtual filesystems#2002

Merged
shirou merged 1 commit intoshirou:masterfrom
skartikey:disk_linux
Feb 13, 2026
Merged

[disk][linux]: fix Device set to "none" for virtual filesystems#2002
shirou merged 1 commit intoshirou:masterfrom
skartikey:disk_linux

Conversation

@skartikey
Copy link
Contributor

Summary

  • Fix regression from Fixes #1284 #1931 where parseFieldsOnMountinfo() sets Device="none" for virtual filesystems (tmpfs, sysfs, devtmpfs, etc.) instead of preserving the mount source name
  • When the mount source doesn't start with / and root is /, use the mount source value instead of hardcoding "none"

Fixes #2001

Copy link
Owner

@shirou shirou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a correct regression fix — I missed that device was being hardcoded to "none" instead of preserving the actual mount source in #1931. Thanks for catching this, for the clear issue report, and for the swift fix PR.

@shirou shirou merged commit ae93db0 into shirou:master Feb 13, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

disk.Partitions returns Device="none" for virtual filesystems after #1931

2 participants