Skip to content

Commit

Permalink
ZFS on Linux don't should be added to ignore list
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj authored and evfool committed Jan 10, 2023
1 parent 9d385bd commit f7a0068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdeps/linux/mountlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f7a0068

Please sign in to comment.