linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: jack@suse.cz
Cc: Linux Filesystem Development List <linux-fsdevel@vger.kernel.org>,
	Theodore Ts'o <tytso@mit.edu>
Subject: [PATCH 4/5] Provide fallback definitions for MNTTYPE_NFS and MNTTYPE_NOAUTO
Date: Tue, 29 Mar 2016 20:48:06 -0400	[thread overview]
Message-ID: <1459298887-21519-5-git-send-email-tytso@mit.edu> (raw)
In-Reply-To: <1459298887-21519-1-git-send-email-tytso@mit.edu>

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 --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
-- 
2.5.0


  parent reply	other threads:[~2016-03-30  0:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30  0:48 [PATCH 0/5] Misc. cleanup and portability patches for quota-tools Theodore Ts'o
2016-03-30  0:48 ` [PATCH 1/5] Update the gitignore file to ignore additional generated files Theodore Ts'o
2016-03-30  0:48 ` [PATCH 2/5] Allow building on systems that do not have rpc header files Theodore Ts'o
2016-03-30  0:48 ` [PATCH 3/5] Use NGROUPS_MAX instead of NGROUPS Theodore Ts'o
2016-03-30  0:48 ` Theodore Ts'o [this message]
2016-03-30  0:48 ` [PATCH 5/5] Support systems which do not have nl_langinfo() Theodore Ts'o
2016-03-30  8:29 ` [PATCH 0/5] Misc. cleanup and portability patches for quota-tools Jan Kara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459298887-21519-5-git-send-email-tytso@mit.edu \
    --to=tytso@mit.edu \
    --cc=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).