DriveInfo.DriveType reports "unknown" in Windows Subsystem for Linux #18487
Labels
area-System.IO
bug
disabled-test
The test is disabled in source code against the issue
help wanted
[up-for-grabs] Good issue for external contributors
os-windows-wsl
WSL (Windows Subsystem for Linux) OS - Linux binaries running on Windows
Milestone
Running on Ubuntu in Windows Subsystem for Linux, on rs_prerelease build 14915, DriveInfo.DriveType reports "Unknown" for both the Linux file system (
/
,/usr
, etc.) and mounted Windows drives (/mnt/c
, etc). I would expect it to report "fixed" for at least the Linux file system, and preferably the mounted Windows drives as well.The
df -T
command reports file system names for these, so apparently there is some info available:(note that
/
is "lxfs" and/mnt/c
is "drvfs."This causes a failure in the DriveInfo tests (in
DriveInfoUnixTests.PropertiesOfValidDrive
). I'll be conditionally disabling that test for now.The text was updated successfully, but these errors were encountered: