Disk (Linux): hide drivers folder in WSL

This commit is contained in:
李通洲
2024-04-21 17:35:47 +08:00
parent 6c0c4fa2cf
commit 4580f3fd54
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ static bool isPhysicalDevice(const struct mntent* device)
//DrvFs is a filesystem plugin to WSL that was designed to support interop between WSL and the Windows filesystem.
if(ffStrEquals(device->mnt_type, "9p"))
return true;
return ffStrContains(device->mnt_opts, "aname=drvfs");
//ZFS pool
if(ffStrEquals(device->mnt_type, "zfs"))
+5
View File
@@ -64,3 +64,8 @@ static inline bool ffStrContainsIgnCase(const char* str, const char* compareTo)
{
return strcasestr(str, compareTo) != NULL;
}
static inline bool ffStrContainsC(const char* str, char compareTo)
{
return strchr(str, compareTo) != NULL;
}