diff options
author | Robert Antoni Buj Gelonch <robert.buj@gmail.com> | 2019-04-14 13:12:04 +0200 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2023-01-10 07:58:12 +0200 |
commit | f7a00681a9c7ccb69dcbafe10151e1398a6db3d7 (patch) | |
tree | 5761ede0beeb620019a69b4eef32930a11f375bd | |
parent | 9d385bdd1a1a5cef1a625316119880abad339d7f (diff) | |
download | libgtop-f7a00681a9c7ccb69dcbafe10151e1398a6db3d7.tar.gz |
ZFS on Linux don't should be added to ignore list2.41.1
See https://github.com/mate-desktop/mate-system-monitor/pull/146
-rw-r--r-- | sysdeps/linux/mountlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/linux/mountlist.c b/sysdeps/linux/mountlist.c index c5a3c273..7fd17a94 100644 --- a/sysdeps/linux/mountlist.c +++ b/sysdeps/linux/mountlist.c @@ -112,7 +112,7 @@ ignore_fs(const char *mntdir, const char *fstype, IgnoreList** ig) if ((fs = fopen("/proc/filesystems", "r")) != NULL) { while (fgets(line, sizeof line, fs)) { - if (!strncmp(line, "nodev", 5)) { + if (!strncmp(line, "nodev", 5) && strncmp(line+strlen(line)-4, "zfs", 3)) { char *type; type = g_strstrip(line + 5); ignore_list_add_fstype(*ig, type); |