More idempotency....... this is fun :-)
This commit is contained in:
parent
62c72b0ca9
commit
33420ec6e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2175
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $
|
||||
* $Id: nfs.h,v 1.3 1994/08/04 06:03:46 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFS_H_
|
||||
#define _NFS_NFS_H_
|
||||
|
||||
/*
|
||||
* Tunable constants for nfs
|
||||
*/
|
||||
@ -300,3 +303,5 @@ struct nfsd {
|
||||
#define NFSD_NEEDAUTH 0x08
|
||||
#define NFSD_AUTHFAIL 0x10
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93
|
||||
* $Id$
|
||||
* $Id: nfsm_subs.h,v 1.2 1994/08/02 07:52:20 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSM_SUBS_H_
|
||||
#define _NFS_NFSM_SUBS_H_
|
||||
|
||||
/*
|
||||
* These macros do strange and peculiar things to mbuf chains for
|
||||
* the assistance of the nfs code. To attempt to use them for any
|
||||
@ -268,3 +271,4 @@ extern struct mbuf *nfsm_reqh();
|
||||
txdr_hyper(&vap->va_filerev, &fp->fa_nqfilerev); \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsdiskless.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfsdiskless.h,v 1.2 1994/08/02 07:52:19 davidg Exp $
|
||||
* $Id: nfsdiskless.h,v 1.3 1994/08/05 09:28:49 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSDISKLESS_H_
|
||||
#define _NFS_NFSDISKLESS_H_
|
||||
|
||||
/*
|
||||
* Structure that must be initialized for a diskless nfs client.
|
||||
* This structure is used by nfs_mountroot() to set up the root and swap
|
||||
@ -65,3 +68,5 @@ struct nfs_diskless {
|
||||
long root_time; /* Timestamp of root fs */
|
||||
char my_hostnam[MAXHOSTNAMELEN]; /* Client host name */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93
|
||||
* $Id$
|
||||
* $Id: nfsm_subs.h,v 1.2 1994/08/02 07:52:20 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSM_SUBS_H_
|
||||
#define _NFS_NFSM_SUBS_H_
|
||||
|
||||
/*
|
||||
* These macros do strange and peculiar things to mbuf chains for
|
||||
* the assistance of the nfs code. To attempt to use them for any
|
||||
@ -268,3 +271,4 @@ extern struct mbuf *nfsm_reqh();
|
||||
txdr_hyper(&vap->va_filerev, &fp->fa_nqfilerev); \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsmount.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id$
|
||||
* $Id: nfsmount.h,v 1.2 1994/08/02 07:52:21 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSMOUNT_H_
|
||||
#define _NFS_NFSMOUNT_H_
|
||||
|
||||
/*
|
||||
* Mount structure.
|
||||
* One allocated on every NFS mount.
|
||||
@ -126,3 +129,5 @@ int nfs_vptofh __P((
|
||||
struct vnode *vp,
|
||||
struct fid *fhp));
|
||||
int nfs_init __P(());
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsnode.h 8.4 (Berkeley) 2/13/94
|
||||
* $Id: nfsnode.h,v 1.3 1994/08/08 17:30:55 davidg Exp $
|
||||
* $Id: nfsnode.h,v 1.4 1994/08/09 15:10:14 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSNODE_H_
|
||||
#define _NFS_NFSNODE_H_
|
||||
|
||||
/*
|
||||
* Silly rename structure that hangs off the nfsnode until the name
|
||||
* can be removed by nfs_inactive()
|
||||
@ -165,3 +168,5 @@ int nfs_truncate __P((struct vop_truncate_args *));
|
||||
int nfs_update __P((struct vop_update_args *));
|
||||
int nfs_bwrite __P((struct vop_bwrite_args *));
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsrtt.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id$
|
||||
* $Id: nfsrtt.h,v 1.2 1994/08/02 07:52:24 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSRTT_H_
|
||||
#define _NFS_NFSRTT_H_
|
||||
|
||||
/*
|
||||
* Definitions for performance monitor.
|
||||
* The client and server logging are turned on by setting the global
|
||||
@ -95,3 +98,5 @@ struct nfsdrt {
|
||||
struct timeval tstamp; /* Timestamp of log entry */
|
||||
} drt[NFSRTTLOGSIZ];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsrvcache.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id$
|
||||
* $Id: nfsrvcache.h,v 1.2 1994/08/02 07:52:25 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSRVCACHE_H_
|
||||
#define _NFS_NFSRVCACHE_H_
|
||||
|
||||
/*
|
||||
* Definitions for the server recent request cache
|
||||
*/
|
||||
@ -83,3 +86,5 @@ struct nfsrvcache {
|
||||
#define RC_NQNFS 0x10
|
||||
#define RC_INETADDR 0x20
|
||||
#define RC_NAM 0x40
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsv2.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfsv2.h,v 1.2 1994/08/02 07:52:26 davidg Exp $
|
||||
* $Id: nfsv2.h,v 1.3 1994/08/18 22:35:37 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSV2_H_
|
||||
#define _NFS_NFSV2_H_
|
||||
|
||||
/*
|
||||
* nfs definitions as per the version 2 specs
|
||||
*/
|
||||
@ -258,3 +261,5 @@ struct nfsv2_statfs {
|
||||
u_long sf_files; /* Nqnfs only */
|
||||
u_long sf_ffree; /* ditto */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nqnfs.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id$
|
||||
* $Id: nqnfs.h,v 1.2 1994/08/02 07:52:28 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NQNFS_H_
|
||||
#define _NFS_NQNFS_H_
|
||||
|
||||
/*
|
||||
* Definitions for NQNFS (Not Quite NFS) cache consistency protocol.
|
||||
*/
|
||||
@ -197,3 +200,5 @@ extern u_long nqfheadhash;
|
||||
#define NQNFS_EXPIRED 500
|
||||
#define NQNFS_TRYLATER 501
|
||||
#define NQNFS_AUTHERR 502
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)rpcv2.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id$
|
||||
* $Id: rpcv2.h,v 1.2 1994/08/02 07:52:29 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_RPCV2_H_
|
||||
#define _NFS_RPCV2_H_
|
||||
|
||||
/*
|
||||
* Definitions for Sun RPC Version 2, from
|
||||
* "RPC: Remote Procedure Call Protocol Specification" RFC1057
|
||||
@ -87,3 +90,5 @@
|
||||
#define RPCMNT_NAMELEN 255
|
||||
#define RPCMNT_PATHLEN 1024
|
||||
#define RPCPROG_NFS 100003
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)xdr_subs.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id$
|
||||
* $Id: xdr_subs.h,v 1.2 1994/08/02 07:52:30 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_XDR_SUBS_H_
|
||||
#define _NFS_XDR_SUBS_H_
|
||||
|
||||
/*
|
||||
* Macros used for conversion to/from xdr representation by nfs...
|
||||
* These use the MACHINE DEPENDENT routines ntohl, htonl
|
||||
@ -77,3 +80,5 @@
|
||||
((long *)(t))[0] = htonl(((long *)(f))[_QUAD_HIGHWORD]); \
|
||||
((long *)(t))[1] = htonl(((long *)(f))[_QUAD_LOWWORD]); \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $
|
||||
* $Id: nfs.h,v 1.3 1994/08/04 06:03:46 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFS_H_
|
||||
#define _NFS_NFS_H_
|
||||
|
||||
/*
|
||||
* Tunable constants for nfs
|
||||
*/
|
||||
@ -300,3 +303,5 @@ struct nfsd {
|
||||
#define NFSD_NEEDAUTH 0x08
|
||||
#define NFSD_AUTHFAIL 0x10
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $
|
||||
* $Id: nfs.h,v 1.3 1994/08/04 06:03:46 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFS_H_
|
||||
#define _NFS_NFS_H_
|
||||
|
||||
/*
|
||||
* Tunable constants for nfs
|
||||
*/
|
||||
@ -300,3 +303,5 @@ struct nfsd {
|
||||
#define NFSD_NEEDAUTH 0x08
|
||||
#define NFSD_AUTHFAIL 0x10
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsdiskless.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfsdiskless.h,v 1.2 1994/08/02 07:52:19 davidg Exp $
|
||||
* $Id: nfsdiskless.h,v 1.3 1994/08/05 09:28:49 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSDISKLESS_H_
|
||||
#define _NFS_NFSDISKLESS_H_
|
||||
|
||||
/*
|
||||
* Structure that must be initialized for a diskless nfs client.
|
||||
* This structure is used by nfs_mountroot() to set up the root and swap
|
||||
@ -65,3 +68,5 @@ struct nfs_diskless {
|
||||
long root_time; /* Timestamp of root fs */
|
||||
char my_hostnam[MAXHOSTNAMELEN]; /* Client host name */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93
|
||||
* $Id$
|
||||
* $Id: nfsm_subs.h,v 1.2 1994/08/02 07:52:20 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSM_SUBS_H_
|
||||
#define _NFS_NFSM_SUBS_H_
|
||||
|
||||
/*
|
||||
* These macros do strange and peculiar things to mbuf chains for
|
||||
* the assistance of the nfs code. To attempt to use them for any
|
||||
@ -268,3 +271,4 @@ extern struct mbuf *nfsm_reqh();
|
||||
txdr_hyper(&vap->va_filerev, &fp->fa_nqfilerev); \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsmount.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id$
|
||||
* $Id: nfsmount.h,v 1.2 1994/08/02 07:52:21 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSMOUNT_H_
|
||||
#define _NFS_NFSMOUNT_H_
|
||||
|
||||
/*
|
||||
* Mount structure.
|
||||
* One allocated on every NFS mount.
|
||||
@ -126,3 +129,5 @@ int nfs_vptofh __P((
|
||||
struct vnode *vp,
|
||||
struct fid *fhp));
|
||||
int nfs_init __P(());
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsnode.h 8.4 (Berkeley) 2/13/94
|
||||
* $Id: nfsnode.h,v 1.3 1994/08/08 17:30:55 davidg Exp $
|
||||
* $Id: nfsnode.h,v 1.4 1994/08/09 15:10:14 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSNODE_H_
|
||||
#define _NFS_NFSNODE_H_
|
||||
|
||||
/*
|
||||
* Silly rename structure that hangs off the nfsnode until the name
|
||||
* can be removed by nfs_inactive()
|
||||
@ -165,3 +168,5 @@ int nfs_truncate __P((struct vop_truncate_args *));
|
||||
int nfs_update __P((struct vop_update_args *));
|
||||
int nfs_bwrite __P((struct vop_bwrite_args *));
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $
|
||||
* $Id: nfs.h,v 1.3 1994/08/04 06:03:46 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFS_H_
|
||||
#define _NFS_NFS_H_
|
||||
|
||||
/*
|
||||
* Tunable constants for nfs
|
||||
*/
|
||||
@ -300,3 +303,5 @@ struct nfsd {
|
||||
#define NFSD_NEEDAUTH 0x08
|
||||
#define NFSD_AUTHFAIL 0x10
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $
|
||||
* $Id: nfs.h,v 1.3 1994/08/04 06:03:46 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFS_H_
|
||||
#define _NFS_NFS_H_
|
||||
|
||||
/*
|
||||
* Tunable constants for nfs
|
||||
*/
|
||||
@ -300,3 +303,5 @@ struct nfsd {
|
||||
#define NFSD_NEEDAUTH 0x08
|
||||
#define NFSD_AUTHFAIL 0x10
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93
|
||||
* $Id$
|
||||
* $Id: nfsm_subs.h,v 1.2 1994/08/02 07:52:20 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSM_SUBS_H_
|
||||
#define _NFS_NFSM_SUBS_H_
|
||||
|
||||
/*
|
||||
* These macros do strange and peculiar things to mbuf chains for
|
||||
* the assistance of the nfs code. To attempt to use them for any
|
||||
@ -268,3 +271,4 @@ extern struct mbuf *nfsm_reqh();
|
||||
txdr_hyper(&vap->va_filerev, &fp->fa_nqfilerev); \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsrvcache.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id$
|
||||
* $Id: nfsrvcache.h,v 1.2 1994/08/02 07:52:25 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFSRVCACHE_H_
|
||||
#define _NFS_NFSRVCACHE_H_
|
||||
|
||||
/*
|
||||
* Definitions for the server recent request cache
|
||||
*/
|
||||
@ -83,3 +86,5 @@ struct nfsrvcache {
|
||||
#define RC_NQNFS 0x10
|
||||
#define RC_INETADDR 0x20
|
||||
#define RC_NAM 0x40
|
||||
|
||||
#endif
|
||||
|
@ -34,9 +34,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: nfs.h,v 1.2 1994/08/02 07:52:04 davidg Exp $
|
||||
* $Id: nfs.h,v 1.3 1994/08/04 06:03:46 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NFS_NFS_H_
|
||||
#define _NFS_NFS_H_
|
||||
|
||||
/*
|
||||
* Tunable constants for nfs
|
||||
*/
|
||||
@ -300,3 +303,5 @@ struct nfsd {
|
||||
#define NFSD_NEEDAUTH 0x08
|
||||
#define NFSD_AUTHFAIL 0x10
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user