ZFS on Linux don't should be added to ignore list

See https://github.com/mate-desktop/mate-system-monitor/pull/146
This commit is contained in:
Robert Antoni Buj Gelonch
2019-04-14 13:12:04 +02:00
committed by Robert Roth
parent 9d385bdd1a
commit f7a00681a9

View File

@@ -112,7 +112,7 @@ ignore_fs(const char *mntdir, const char *fstype, IgnoreList** ig)
if ((fs = fopen("/proc/filesystems", "r")) != NULL) { if ((fs = fopen("/proc/filesystems", "r")) != NULL) {
while (fgets(line, sizeof line, fs)) { 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; char *type;
type = g_strstrip(line + 5); type = g_strstrip(line + 5);
ignore_list_add_fstype(*ig, type); ignore_list_add_fstype(*ig, type);