Support our "nfsv2" option. (originally added to old amd/amd/host_opts.c
rev 1.5) The "nfsv2" option is equivant to "proto=udp,vers=2". It is debatable whether NFS v2 should force "proto=udp" but I figure that is what most people will expect. Note, I can get the new Amd to mount a 2.2-STABLE box with "proto=tcp,vers=2". RFC 1094 does not disallow such behavior.
This commit is contained in:
parent
70bb8503aa
commit
dd529a7ea9
@ -38,7 +38,7 @@
|
||||
*
|
||||
* %W% (Berkeley) %G%
|
||||
*
|
||||
* $Id: srvr_nfs.c,v 5.2.2.1 1992/02/09 15:09:06 jsp beta $
|
||||
* $Id: srvr_nfs.c,v 1.1.1.1 1998/08/23 22:07:20 obrien Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -663,6 +663,19 @@ find_nfs_srvr(mntfs *mf)
|
||||
}
|
||||
#endif /* MNTTAB_OPT_PROTO */
|
||||
|
||||
/* XXX: do we want to do this unconditionally of #define's? */
|
||||
/* #if defined(MNTTAB_OPT_VERS ) && defined( MNTTAB_OPT_PROTO ) */
|
||||
{
|
||||
char *nfsv2_opt = hasmntopt(&mnt, "nfsv2");
|
||||
if (nfsv2_opt) {
|
||||
nfs_version = (unsigned long)2; /* nullify any ``vers=X'' statements */
|
||||
nfs_proto = "udp"; /* nullify any ``proto=tcp'' stmts */
|
||||
plog(XLOG_WARNING, "found compatiblity option \"nfsv2\": set options"
|
||||
" vers=2, proto=udp for host %s", host);
|
||||
}
|
||||
}
|
||||
/*#endif*/ /* MNTTAB_OPT_VERS && MNTTAB_OPT_PROTO */
|
||||
|
||||
/*
|
||||
* lookup host address and canonical name
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user