From f7a00681a9c7ccb69dcbafe10151e1398a6db3d7 Mon Sep 17 00:00:00 2001 From: Robert Antoni Buj Gelonch Date: Sun, 14 Apr 2019 13:12:04 +0200 Subject: [PATCH] ZFS on Linux don't should be added to ignore list See https://github.com/mate-desktop/mate-system-monitor/pull/146 --- sysdeps/linux/mountlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);