Blame SOURCES/net-snmp-5.7.2-zfs-support.patch

b504e5
diff -urNp old/agent/mibgroup/hardware/fsys/fsys_getfsstats.c new/agent/mibgroup/hardware/fsys/fsys_getfsstats.c
b504e5
--- old/agent/mibgroup/hardware/fsys/fsys_getfsstats.c	2018-06-21 16:03:13.675537036 +0200
b504e5
+++ new/agent/mibgroup/hardware/fsys/fsys_getfsstats.c	2018-06-21 16:10:36.212652288 +0200
b504e5
@@ -88,6 +88,8 @@ _fs_type( char *typename )
b504e5
        return NETSNMP_FS_TYPE_EXT2;
b504e5
     else if ( !strcmp(typename, MOUNT_NTFS) )
b504e5
        return NETSNMP_FS_TYPE_NTFS;
b504e5
+    else if ( !strcmp(typename, MOUNT_ZFS) )
b504e5
+       return NETSNMP_FS_TYPE_OTHER;
b504e5
 
b504e5
        /*
b504e5
         * NetBSD also recognises the following filesystem types:
b504e5
diff -urNp old/agent/mibgroup/hardware/fsys/fsys_mntent.c new/agent/mibgroup/hardware/fsys/fsys_mntent.c
b504e5
--- old/agent/mibgroup/hardware/fsys/fsys_mntent.c	2018-06-21 16:03:13.675537036 +0200
b504e5
+++ new/agent/mibgroup/hardware/fsys/fsys_mntent.c	2018-06-21 16:12:36.982882380 +0200
b504e5
@@ -142,6 +142,7 @@ _fsys_type( char *typename )
b504e5
               !strcmp(typename, MNTTYPE_SIMFS) ||
b504e5
               !strcmp(typename, MNTTYPE_VZFS) ||
b504e5
               !strcmp(typename, MNTTYPE_BTRFS) ||
b504e5
+              !strcmp(typename, MNTTYPE_ZFS) ||
b504e5
               !strcmp(typename, MNTTYPE_ACFS) ||
b504e5
               !strcmp(typename, MNTTYPE_LOFS))
b504e5
        return NETSNMP_FS_TYPE_OTHER;
b504e5
diff -urNp old/agent/mibgroup/hardware/fsys/mnttypes.h new/agent/mibgroup/hardware/fsys/mnttypes.h
b504e5
--- old/agent/mibgroup/hardware/fsys/mnttypes.h	2018-06-21 16:03:13.675537036 +0200
b504e5
+++ new/agent/mibgroup/hardware/fsys/mnttypes.h	2018-06-21 16:13:22.793403430 +0200
b504e5
@@ -151,6 +151,9 @@
b504e5
 #ifndef MNTTYPE_BTRFS
b504e5
 #define MNTTYPE_BTRFS    "btrfs"
b504e5
 #endif
b504e5
+#ifndef MNTTYPE_ZFS
b504e5
+#define MNTTYPE_ZFS      "zfs"
b504e5
+#endif
b504e5
 #ifndef MNTTYPE_ACFS
b504e5
 #define MNTTYPE_ACFS  "acfs"
b504e5
 #endif
b504e5
diff -urNp old/agent/mibgroup/hardware/fsys/mounts.h new/agent/mibgroup/hardware/fsys/mounts.h
b504e5
--- old/agent/mibgroup/hardware/fsys/mounts.h	2018-06-21 16:03:13.675537036 +0200
b504e5
+++ new/agent/mibgroup/hardware/fsys/mounts.h	2018-06-21 16:14:08.014939906 +0200
b504e5
@@ -56,6 +56,9 @@
b504e5
 #ifndef MOUNT_ACFS
b504e5
 #define MOUNT_ACFS   "acfs"
b504e5
 #endif
b504e5
+#ifndef MOUNT_ZFS
b504e5
+#define MOUNT_ZFS    "zfs"
b504e5
+#endif
b504e5
 
b504e5
 /*
b504e5
 #ifndef MNTTYPE_AFS