Disk (WSL): fix Windows volume detection

This commit is contained in:
李通洲
2023-12-24 19:42:10 +08:00
parent d2d4ee89d8
commit be38182ab2
+4 -1
View File
@@ -26,8 +26,11 @@ static bool isPhysicalDevice(const struct mntent* device)
if(ffStrEquals(device->mnt_dir, "/"))
return true;
if(ffStrEquals(device->mnt_fsname, "none"))
return false;
//DrvFs is a filesystem plugin to WSL that was designed to support interop between WSL and the Windows filesystem.
if(ffStrEquals(device->mnt_fsname, "drvfs"))
if(ffStrEquals(device->mnt_type, "9p"))
return true;
//ZFS pool