| 1 |
#ifndef _NETSNMP_FSYS_MNTTYPES_H |
| 2 |
#define _NETSNMP_FSYS_MNTTYPES_H |
| 3 |
/* |
| 4 |
* Some mounts can map to one of two hrFS types |
| 5 |
* (depending on other characteristics of the system) |
| 6 |
* Note which should be used *before* defining any |
| 7 |
* type tokens which may be missing. |
| 8 |
*/ |
| 9 |
|
| 10 |
#if (defined(BerkelyFS) && !defined(MNTTYPE_HFS)) || defined(solaris2) |
| 11 |
#define _NETSNMP_FS_TYPE_UFS NETSNMP_FS_TYPE_BERKELEY |
| 12 |
#else |
| 13 |
#define _NETSNMP_FS_TYPE_UFS NETSNMP_FS_TYPE_SYSV |
| 14 |
#endif |
| 15 |
|
| 16 |
#ifdef RockRidge |
| 17 |
#define _NETSNMP_FS_TYPE_CDFS NETSNMP_FS_TYPE_ROCKRIDGE |
| 18 |
#else |
| 19 |
#define _NETSNMP_FS_TYPE_CDFS NETSNMP_FS_TYPE_ISO9660 |
| 20 |
#endif |
| 21 |
|
| 22 |
|
| 23 |
/* |
| 24 |
* Ensure all recognised filesystem mount type tokens are |
| 25 |
* available (even on systems where they're not used) |
| 26 |
*/ |
| 27 |
#ifndef MNTTYPE_AFS |
| 28 |
#define MNTTYPE_AFS "afs" |
| 29 |
#endif |
| 30 |
#ifndef MNTTYPE_CDFS |
| 31 |
#define MNTTYPE_CDFS "cdfs" |
| 32 |
#endif |
| 33 |
#ifndef MNTTYPE_CD9660 |
| 34 |
#define MNTTYPE_CD9660 "cd9660" |
| 35 |
#endif |
| 36 |
#ifndef MNTTYPE_EXT2 |
| 37 |
#define MNTTYPE_EXT2 "ext2" |
| 38 |
#endif |
| 39 |
#ifndef MNTTYPE_EXT3 |
| 40 |
#define MNTTYPE_EXT3 "ext3" |
| 41 |
#endif |
| 42 |
#ifndef MNTTYPE_EXT4 |
| 43 |
#define MNTTYPE_EXT4 "ext4" |
| 44 |
#endif |
| 45 |
#ifndef MNTTYPE_EXT2FS |
| 46 |
#define MNTTYPE_EXT2FS "ext2fs" |
| 47 |
#endif |
| 48 |
#ifndef MNTTYPE_EXT3FS |
| 49 |
#define MNTTYPE_EXT3FS "ext3fs" |
| 50 |
#endif |
| 51 |
#ifndef MNTTYPE_EXT4FS |
| 52 |
#define MNTTYPE_EXT4FS "ext4fs" |
| 53 |
#endif |
| 54 |
#ifndef MNTTYPE_FAT32 |
| 55 |
#define MNTTYPE_FAT32 "fat32" |
| 56 |
#endif |
| 57 |
#ifndef MNTTYPE_FFS |
| 58 |
#define MNTTYPE_FFS "ffs" |
| 59 |
#endif |
| 60 |
#ifndef MNTTYPE_HFS |
| 61 |
#define MNTTYPE_HFS "hfs" |
| 62 |
#endif |
| 63 |
#ifndef MNTTYPE_HSFS |
| 64 |
#define MNTTYPE_HSFS "hsfs" |
| 65 |
#endif |
| 66 |
#ifndef MNTTYPE_ISO9660 |
| 67 |
#define MNTTYPE_ISO9660 "iso9660" |
| 68 |
#endif |
| 69 |
#ifndef MNTTYPE_MFS |
| 70 |
#define MNTTYPE_MFS "mfs" |
| 71 |
#endif |
| 72 |
#ifndef MNTTYPE_MSDOS |
| 73 |
#define MNTTYPE_MSDOS "msdos" |
| 74 |
#endif |
| 75 |
#ifndef MNTTYPE_NCPFS |
| 76 |
#define MNTTYPE_NCPFS "ncpfs" |
| 77 |
#endif |
| 78 |
#ifndef MNTTYPE_NFS |
| 79 |
#define MNTTYPE_NFS "nfs" |
| 80 |
#endif |
| 81 |
#ifndef MNTTYPE_NFS3 |
| 82 |
#define MNTTYPE_NFS3 "nfs3" |
| 83 |
#endif |
| 84 |
#ifndef MNTTYPE_NFS4 |
| 85 |
#define MNTTYPE_NFS4 "nfs4" |
| 86 |
#endif |
| 87 |
#ifndef MNTTYPE_NTFS |
| 88 |
#define MNTTYPE_NTFS "ntfs" |
| 89 |
#endif |
| 90 |
#ifndef MNTTYPE_PC |
| 91 |
#define MNTTYPE_PC "pc" |
| 92 |
#endif |
| 93 |
#ifndef MNTTYPE_SMBFS |
| 94 |
#define MNTTYPE_SMBFS "smbfs" |
| 95 |
#endif |
| 96 |
#ifndef MNTTYPE_CIFS |
| 97 |
#define MNTTYPE_CIFS "cifs" |
| 98 |
#endif |
| 99 |
#ifndef MNTTYPE_SYSV |
| 100 |
#define MNTTYPE_SYSV "sysv" |
| 101 |
#endif |
| 102 |
#ifndef MNTTYPE_UFS |
| 103 |
#define MNTTYPE_UFS "ufs" |
| 104 |
#endif |
| 105 |
#ifndef MNTTYPE_VFAT |
| 106 |
#define MNTTYPE_VFAT "vfat" |
| 107 |
#endif |
| 108 |
|
| 109 |
/* |
| 110 |
* File systems to monitor, but not covered by HR-TYPES enumerations |
| 111 |
*/ |
| 112 |
#ifndef MNTTYPE_MVFS |
| 113 |
#define MNTTYPE_MVFS "mvfs" |
| 114 |
#endif |
| 115 |
|
| 116 |
/* |
| 117 |
* File systems to skip |
| 118 |
*/ |
| 119 |
#ifndef MNTTYPE_AUTOFS |
| 120 |
#define MNTTYPE_AUTOFS "autofs" |
| 121 |
#endif |
| 122 |
#ifndef MNTTYPE_IGNORE |
| 123 |
#define MNTTYPE_IGNORE "ignore" |
| 124 |
#endif |
| 125 |
#ifndef MNTTYPE_PROC |
| 126 |
#define MNTTYPE_PROC "proc" |
| 127 |
#endif |
| 128 |
|
| 129 |
#endif /* _NETSNMP_FSYS_MNTTYPES_H */ |