]> git.pld-linux.org Git - packages/net-snmp.git/blame - net-snmp-recognize-reiserfs.patch
- do not allow hrSWInstalledTable query to use dpkg-query even if it finds it; REL 6
[packages/net-snmp.git] / net-snmp-recognize-reiserfs.patch
CommitLineData
59f2cc91
AZ
1From: Mendel Mobach <mendel@mobach.nl>
2
3Add ReiserFS to the list of recognized file systems and move
4JFS and XFS defines below the right comment.
5
6---
7 agent/mibgroup/hardware/fsys/fsys_mntent.c | 1 +
8 agent/mibgroup/hardware/fsys/mnttypes.h | 13 ++++++-------
9 2 files changed, 7 insertions(+), 7 deletions(-)
10
11Index: net-snmp/agent/mibgroup/hardware/fsys/fsys_mntent.c
12===================================================================
13--- net-snmp.orig/agent/mibgroup/hardware/fsys/fsys_mntent.c
14+++ net-snmp/agent/mibgroup/hardware/fsys/fsys_mntent.c
15@@ -135,6 +135,7 @@ _fsys_type( char *typename )
16 !strcmp(typename, MNTTYPE_GFS2) ||
17 !strcmp(typename, MNTTYPE_XFS) ||
18 !strcmp(typename, MNTTYPE_JFS) ||
19+ !strcmp(typename, MNTTYPE_REISERFS) ||
20 !strcmp(typename, MNTTYPE_LOFS))
21 return NETSNMP_FS_TYPE_OTHER;
22
23Index: net-snmp/agent/mibgroup/hardware/fsys/mnttypes.h
24===================================================================
25--- net-snmp.orig/agent/mibgroup/hardware/fsys/mnttypes.h
26+++ net-snmp/agent/mibgroup/hardware/fsys/mnttypes.h
27@@ -114,6 +114,12 @@
28 #ifndef MNTTYPE_GFS2
29 #define MNTTYPE_GFS2 "gfs2"
30 #endif
31+#ifndef MNTTYPE_XFS
32+#define MNTTYPE_XFS "xfs"
33+#endif
34+#ifndef MNTTYPE_JFS
35+#define MNTTYPE_JFS "jfs"
36+#endif
37
38 /*
39 * File systems to monitor, but not covered by HR-TYPES enumerations
40@@ -156,12 +162,5 @@
41 #ifndef MNTTYPE_RPCPIPE
42 #define MNTTYPE_RPCPIPE "rpc_pipefs"
43 #endif
44-#ifndef MNTTYPE_XFS
45-#define MNTTYPE_XFS "xfs"
46-#endif
47-#ifndef MNTTYPE_JFS
48-#define MNTTYPE_JFS "jfs"
49-#endif
50-
51
52 #endif /* _NETSNMP_FSYS_MNTTYPES_H */
This page took 0.036465 seconds and 4 git commands to generate.