You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System.IO.DriveInfo returns invalid data for mounted optical drive volume in Linux if the volume label contains space #123347
When enumerating drive information using DriveInfo.GetDrives() the returned data may be invalid (incorrect Name, DriveType, and RootDirectory) for mounted optical disc if the volume label has spaces in it.
The exact same code worked in previous versions of .NET.
We just got hit by that. The API Environment.GetLogicalDrives() is also affected by this issue, as it also calls Interop.Sys.GetAllMountPoints() under the hood. It seems there was a merge request with a proposed fix here which has been closed due to inactivity.
The Problem also affects Debian, Ubuntu and other derivates (which is not surprising, as /proc/self/mountinfo basically is a Kernel API).
@13xforever@markusschaber I've opened PR with the fix, any chance you could try that out with your scenario (i.e. build repo, add test with your scenario and see if that works as expected)
Activity
dotnet-policy-service commentedon Jan 19, 2026
Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.
markusschaber commentedon Oct 21, 2026
We just got hit by that. The API
Environment.GetLogicalDrives()is also affected by this issue, as it also callsInterop.Sys.GetAllMountPoints()under the hood. It seems there was a merge request with a proposed fix here which has been closed due to inactivity.The Problem also affects Debian, Ubuntu and other derivates (which is not surprising, as /proc/self/mountinfo basically is a Kernel API).
krwq commentedon Nov 9, 2026
@13xforever @markusschaber I've opened PR with the fix, any chance you could try that out with your scenario (i.e. build repo, add test with your scenario and see if that works as expected)
Decode escaped Linux mountinfo paths (dotnet#137195)
[release/10.0] Decode escaped Linux mountinfo paths (#137420)
[release/11.0] Decode escaped Linux mountinfo paths (#137411)
Fix filesystem type detection for stacked Linux mounts (#137748)