@@ -21,6 +21,10 @@
#define MNTTYPE_OCFS2 "ocfs2" /* Oracle Cluster filesystem */
#define MNTTYPE_GFS2 "gfs2" /* Red Hat Global filesystem 2 */
+#ifndef MNTTYPE_NFS
+#define MNTTYPE_NFS "nfs" /* Network file system. */
+#endif
+
/* mount options */
#define MNTOPT_NOQUOTA "noquota" /* don't enforce quota */
#define MNTOPT_QUOTA "quota" /* enforce user quota */
@@ -34,4 +38,8 @@
#define MNTOPT_LOOP "loop" /* loopback mount */
#define MNTOPT_JQFMT "jqfmt" /* journaled quota format */
+#ifndef MNTOPT_NOAUTO
+#define MNTOPT_NOAUTO "noauto" /* Do not auto mount. */
+#endif
+
#endif
Not all C library's /usr/include/mntent.h are guaranteed to define MNTTYPE_NFS and MNTTYPE_AUTO. Since we already are defining a large number of MNTTYPE_* macros for our own use in mntopt.h, add fallback definitions for MNTTYPE_NFS and MNTTYPE_NOAUTO there. Signed-off-by: Theodore Ts'o <tytso@mit.edu> --- mntopt.h | 8 ++++++++ 1 file changed, 8 insertions(+)