You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an issue walking the MIB on a linux device that uses a flash card as the primary storage. The flash card is identified in "/etc/mtab" as:
/dev/mtdblock3 /flash jffs2 rw,relatime 0 0
As the "jffs2" filesystem was not recognised the _fsys_type defaulted to NETSNMP_FS_TYPE_IGNORE. This in turn sets the _NETSNMP_FS_TYPE_SKIP_BIT flag which stops the HRFS_entry->flags having the NETSNMP_FS_FLAG_ACTIVE bit set.
When the call to Get_Next_HR_FileSys is activated it ignores the device because the NETSNMP_FS_FLAG_ACTIVE bit is not set.
Might I suggest updating the files to include the JFFS2 file system:
--- a/agent/mibgroup/hardware/fsys/fsys_mntent.c
+++ b/agent/mibgroup/hardware/fsys/fsys_mntent.c
@@ -138,6 +138,7 @@ _fsys_type( char *typename )
!strcmp(typename, MNTTYPE_GFS2) ||
!strcmp(typename, MNTTYPE_XFS) ||
!strcmp(typename, MNTTYPE_JFS) ||
The text was updated successfully, but these errors were encountered:
JohnGilmour
changed the title
Version 5.8/5.9 does not handle the "jffs2" file type
Version 5.8/5.9 does not handle the "jffs2" filesystem type
Feb 11, 2021
Hello,
I had an issue walking the MIB on a linux device that uses a flash card as the primary storage. The flash card is identified in "/etc/mtab" as:
/dev/mtdblock3 /flash jffs2 rw,relatime 0 0
As the "jffs2" filesystem was not recognised the _fsys_type defaulted to NETSNMP_FS_TYPE_IGNORE. This in turn sets the _NETSNMP_FS_TYPE_SKIP_BIT flag which stops the HRFS_entry->flags having the NETSNMP_FS_FLAG_ACTIVE bit set.
When the call to Get_Next_HR_FileSys is activated it ignores the device because the NETSNMP_FS_FLAG_ACTIVE bit is not set.
Might I suggest updating the files to include the JFFS2 file system:
--- a/agent/mibgroup/hardware/fsys/fsys_mntent.c
+++ b/agent/mibgroup/hardware/fsys/fsys_mntent.c
@@ -138,6 +138,7 @@ _fsys_type( char *typename )
!strcmp(typename, MNTTYPE_GFS2) ||
!strcmp(typename, MNTTYPE_XFS) ||
!strcmp(typename, MNTTYPE_JFS) ||
diff --git a/agent/mibgroup/hardware/fsys/mnttypes.h b/agent/mibgroup/hardware/fsys/mnttypes.h
index 53f1cc8964..e975946c04 100644
--- a/agent/mibgroup/hardware/fsys/mnttypes.h
+++ b/agent/mibgroup/hardware/fsys/mnttypes.h
@@ -157,6 +157,9 @@
#ifndef MNTTYPE_ACFS
#define MNTTYPE_ACFS "acfs"
#endif
+#ifndef MNTTYPE_JFFS2
+#define MNTTYPE_JFFS2 "jffs2"
+#endif
Best regards,
John.
The text was updated successfully, but these errors were encountered: