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