Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Add new option "xlatecookie" to amd(8) to support NFS v3 mou...



details:   https://anonhg.NetBSD.org/src/rev/164890dfea50
branches:  trunk
changeset: 532767:164890dfea50
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Jun 14 15:16:53 2002 +0000

description:
Add new option "xlatecookie" to amd(8) to support NFS v3 mounts with cookie
translation. The changes were provided by Mark Davies in PR bin/17245.

diffstat:

 dist/am-utils/libamu/mount_fs.c |  11 ++++++++++-
 usr.sbin/amd/include/config.h   |   3 +++
 2 files changed, 13 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r bbefbc22473b -r 164890dfea50 dist/am-utils/libamu/mount_fs.c
--- a/dist/am-utils/libamu/mount_fs.c   Fri Jun 14 15:15:23 2002 +0000
+++ b/dist/am-utils/libamu/mount_fs.c   Fri Jun 14 15:16:53 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount_fs.c,v 1.3 2001/05/13 18:07:00 veego Exp $       */
+/*     $NetBSD: mount_fs.c,v 1.4 2002/06/14 15:16:54 tron Exp $        */
 
 /*
  * Copyright (c) 1997-2001 Erez Zadok
@@ -115,6 +115,10 @@
   {MNTTAB_OPT_NOLOCK, MNT2_NFS_OPT_NONLM},
 #endif /* defined(MNT2_NFS_OPT_NONLM) && defined(MNTTAB_OPT_NOLOCK) */
 
+#if defined(MNT2_NFS_OPT_XLATECOOKIE) && defined(MNTTAB_OPT_XLATECOOKIE)
+  {MNTTAB_OPT_XLATECOOKIE, MNT2_NFS_OPT_XLATECOOKIE},
+#endif /* defined(MNT2_NFS_OPT_XLATECOOKIE) && defined(MNTTAB_OPT_XLATECOOKIE) */
+
   {0, 0}
 };
 
@@ -716,6 +720,11 @@
     nap->flags |= MNT2_NFS_OPT_MAXGRPS;
 #endif /* defined(MNT2_NFS_OPT_MAXGRPS) && defined(MNTTAB_OPT_MAXGROUPS) */
 
+#if defined(MNT2_NFS_OPT_XLATECOOKIE) && defined(MNTTAB_OPT_XLATECOOKIE)
+  if (hasmntopt(mntp, MNTTAB_OPT_XLATECOOKIE) != NULL)
+    nap->flags |= MNT2_NFS_OPT_XLATECOOKIE;
+#endif /* defined(MNT2_NFS_OPT_XLATECOOKIE) && defined(MNTTAB_OPT_XLATECOOKIE) */
+
 #ifdef HAVE_FIELD_NFS_ARGS_T_OPTSTR
   nap->optstr = mntp->mnt_opts;
 #endif /* HAVE_FIELD_NFS_ARGS_T_OPTSTR */
diff -r bbefbc22473b -r 164890dfea50 usr.sbin/amd/include/config.h
--- a/usr.sbin/amd/include/config.h     Fri Jun 14 15:15:23 2002 +0000
+++ b/usr.sbin/amd/include/config.h     Fri Jun 14 15:16:53 2002 +0000
@@ -437,6 +437,9 @@
 /* Mount Table option string: support property lists (ACLs) */
 /* #undef MNTTAB_OPT_PROPLIST */
 
+/* 32<->64 dir cookie translation */
+#define MNTTAB_OPT_XLATECOOKIE "xlatecookie"
+
 /*
  * Generic mount(2) options (hex numbers)
  */



Home | Main Index | Thread Index | Old Index