summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Antoni Buj Gelonch <robert.buj@gmail.com>2019-04-14 13:12:04 +0200
committerRobert Roth <robert.roth.off@gmail.com>2023-01-10 07:58:12 +0200
commitf7a00681a9c7ccb69dcbafe10151e1398a6db3d7 (patch)
tree5761ede0beeb620019a69b4eef32930a11f375bd
parent9d385bdd1a1a5cef1a625316119880abad339d7f (diff)
downloadlibgtop-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.c2
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);