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:
committed by
Robert Roth
parent
9d385bdd1a
commit
f7a00681a9
@@ -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);
|
||||
|
Reference in New Issue
Block a user