diff mbox

[4/5] Provide fallback definitions for MNTTYPE_NFS and MNTTYPE_NOAUTO

Message ID 1459298887-21519-5-git-send-email-tytso@mit.edu (mailing list archive)
State New, archived
Headers show

Commit Message

Theodore Ts'o March 30, 2016, 12:48 a.m. UTC
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(+)
diff mbox

Patch

diff --git a/mntopt.h b/mntopt.h
index a70b4a4..3b33879 100644
--- a/mntopt.h
+++ b/mntopt.h
@@ -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