mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Disk (Linux): hide drivers folder in WSL
This commit is contained in:
@@ -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"))
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user