Change CROSSMNT to CROSSMOUNT
authorneilbrown <neilbrown>
Wed, 6 Aug 2003 05:23:13 +0000 (05:23 +0000)
committerneilbrown <neilbrown>
Wed, 6 Aug 2003 05:23:13 +0000 (05:23 +0000)
ChangeLog
support/include/nfs/export.h
support/nfs/exports.c
utils/exportfs/exportfs.c
utils/mountd/mountd.c

index 00e380e..81ccf88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
+       * support/include/nfs/export.h, support/nfs/exports.c,
+       utils/exportfs/exports.c, utils/mountd/mountd.c:  change
+       NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
+       meaning. Also remove meaningless
+       NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
+       
+2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
        * support/export/xtab.c, support/include/nfslib.h,
        support/nfs/cacheio.c, support/nfs/nfssvc.c,
        utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
index 9c73aaa..f7a99ba 100644 (file)
 #define NFSEXP_ALLSQUASH       0x0008
 #define NFSEXP_ASYNC           0x0010
 #define NFSEXP_GATHERED_WRITES 0x0020
-#define NFSEXP_UIDMAP          0x0040
-#define NFSEXP_KERBEROS                0x0080          /* not available */
-#define NFSEXP_SUNSECURE       0x0100
+/* 40, 80, 100 unused */
 #define NFSEXP_NOHIDE          0x0200
 #define NFSEXP_NOSUBTREECHECK  0x0400
 #define NFSEXP_NOAUTHNLM       0x0800
 #define NFSEXP_FSID            0x2000
-#define        NFSEXP_CROSSMNT         0x4000
+#define        NFSEXP_CROSSMOUNT       0x4000
 #define NFSEXP_NOACL           0x8000 /* reserved for possible ACL related use */
 #define NFSEXP_ALLFLAGS                0xFFFF
 
index 4d8665c..c46c7a9 100644 (file)
@@ -173,7 +173,7 @@ putexportent(struct exportent *ep)
                                "" : "no_");
        fprintf(fp, "%shide,", (ep->e_flags & NFSEXP_NOHIDE)?
                                "no" : "");
-       fprintf(fp, "%scrossmnt,", (ep->e_flags & NFSEXP_CROSSMNT)?
+       fprintf(fp, "%scrossmnt,", (ep->e_flags & NFSEXP_CROSSMOUNT)?
                                "" : "no");
        fprintf(fp, "%ssecure,", (ep->e_flags & NFSEXP_INSECURE_PORT)?
                                "in" : "");
@@ -347,9 +347,9 @@ parseopts(char *cp, struct exportent *ep, int warn)
                else if (!strcmp(opt, "hide"))
                        ep->e_flags &= ~NFSEXP_NOHIDE;
                else if (!strcmp(opt, "crossmnt"))
-                       ep->e_flags |= NFSEXP_CROSSMNT;
+                       ep->e_flags |= NFSEXP_CROSSMOUNT;
                else if (!strcmp(opt, "nocrossmnt"))
-                       ep->e_flags &= ~NFSEXP_CROSSMNT;
+                       ep->e_flags &= ~NFSEXP_CROSSMOUNT;
                else if (!strcmp(opt, "wdelay"))
                        ep->e_flags |= NFSEXP_GATHERED_WRITES;
                else if (!strcmp(opt, "no_wdelay"))
index 6f2a60d..290d8b2 100644 (file)
@@ -373,7 +373,7 @@ dump(int verbose)
                                c = dumpopt(c, "wdelay");
                        if (ep->e_flags & NFSEXP_NOHIDE)
                                c = dumpopt(c, "nohide");
-                       if (ep->e_flags & NFSEXP_CROSSMNT)
+                       if (ep->e_flags & NFSEXP_CROSSMOUNT)
                                c = dumpopt(c, "crossmnt");
                        if (ep->e_flags & NFSEXP_INSECURE_PORT)
                                c = dumpopt(c, "insecure");
index 6dbd224..0b34617 100644 (file)
@@ -283,7 +283,7 @@ get_rootfh(struct svc_req *rqstp, dirpath *path, int *error, int v3)
                     p, strerror(errno));
                *error = NFSERR_NOENT;
        } else if (estb.st_dev != stb.st_dev
-                  /* && (!new_cache || !(exp->m_export.e_flags & NFSEXP_CROSSMNT)) */
+                  /* && (!new_cache || !(exp->m_export.e_flags & NFSEXP_CROSSMOUNT)) */
                ) {
                xlog(L_WARNING, "request to export directory %s below nearest filesystem %s",
                     p, exp->m_export.e_path);