svn commit: r234710 - in projects/nfsv4.1-client/sys/fs: nfs
nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Thu Apr 26 14:51:13 UTC 2012
Author: rmacklem
Date: Thu Apr 26 14:51:12 2012
New Revision: 234710
URL: http://svn.freebsd.org/changeset/base/234710
Log:
Change the tag (which is useful for debugging when looking at
packet traces) for the read from a DS to ReadDS, although it
is otherwise the same as a read from an MDS.
Modified:
projects/nfsv4.1-client/sys/fs/nfs/nfs_commonkrpc.c
projects/nfsv4.1-client/sys/fs/nfs/nfs_commonsubs.c
projects/nfsv4.1-client/sys/fs/nfs/nfsport.h
projects/nfsv4.1-client/sys/fs/nfs/nfsproto.h
projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clcomsubs.c
projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clrpcops.c
Modified: projects/nfsv4.1-client/sys/fs/nfs/nfs_commonkrpc.c
==============================================================================
--- projects/nfsv4.1-client/sys/fs/nfs/nfs_commonkrpc.c Thu Apr 26 14:34:46 2012 (r234709)
+++ projects/nfsv4.1-client/sys/fs/nfs/nfs_commonkrpc.c Thu Apr 26 14:51:12 2012 (r234710)
@@ -887,6 +887,7 @@ printf("foreslots growing %d\n", retval)
nd->nd_procnum != NFSPROC_DELEGRETURN &&
nd->nd_procnum != NFSPROC_SETATTR &&
nd->nd_procnum != NFSPROC_READ &&
+ nd->nd_procnum != NFSPROC_READDS &&
nd->nd_procnum != NFSPROC_WRITE &&
nd->nd_procnum != NFSPROC_WRITEDS &&
nd->nd_procnum != NFSPROC_OPEN &&
Modified: projects/nfsv4.1-client/sys/fs/nfs/nfs_commonsubs.c
==============================================================================
--- projects/nfsv4.1-client/sys/fs/nfs/nfs_commonsubs.c Thu Apr 26 14:34:46 2012 (r234709)
+++ projects/nfsv4.1-client/sys/fs/nfs/nfs_commonsubs.c Thu Apr 26 14:51:12 2012 (r234710)
@@ -168,7 +168,7 @@ static struct nfsuserlruhead nfsuserlruh
*/
int nfs_bigreply[NFSV41_NPROCS] = { 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };
/* local functions */
static int nfsrv_skipace(struct nfsrv_descript *nd, int *acesizep);
Modified: projects/nfsv4.1-client/sys/fs/nfs/nfsport.h
==============================================================================
--- projects/nfsv4.1-client/sys/fs/nfs/nfsport.h Thu Apr 26 14:34:46 2012 (r234709)
+++ projects/nfsv4.1-client/sys/fs/nfs/nfsport.h Thu Apr 26 14:51:12 2012 (r234710)
@@ -348,11 +348,12 @@
#define NFSPROC_LAYOUTRETURN 49
#define NFSPROC_RECLAIMCOMPL 50
#define NFSPROC_WRITEDS 51
+#define NFSPROC_READDS 52
/*
* Must be defined as one higher than the last NFSv4.1 Proc# above.
*/
-#define NFSV41_NPROCS 52
+#define NFSV41_NPROCS 53
#endif /* NFS_V3NPROCS */
Modified: projects/nfsv4.1-client/sys/fs/nfs/nfsproto.h
==============================================================================
--- projects/nfsv4.1-client/sys/fs/nfs/nfsproto.h Thu Apr 26 14:34:46 2012 (r234709)
+++ projects/nfsv4.1-client/sys/fs/nfs/nfsproto.h Thu Apr 26 14:51:12 2012 (r234710)
@@ -315,11 +315,12 @@
#define NFSPROC_LAYOUTRETURN 49
#define NFSPROC_RECLAIMCOMPL 50
#define NFSPROC_WRITEDS 51
+#define NFSPROC_READDS 52
/*
* Must be defined as one higher than the last NFSv4.1 Proc# above.
*/
-#define NFSV41_NPROCS 52
+#define NFSV41_NPROCS 53
#endif /* NFS_V3NPROCS */
Modified: projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clcomsubs.c
==============================================================================
--- projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clcomsubs.c Thu Apr 26 14:34:46 2012 (r234709)
+++ projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clcomsubs.c Thu Apr 26 14:51:12 2012 (r234710)
@@ -110,16 +110,16 @@ static struct {
{ NFSV4OP_LAYOUTRETURN, 1, "LayoutReturn", 12, },
{ NFSV4OP_RECLAIMCOMPL, 1, "ReclaimComplete", 15, },
{ NFSV4OP_WRITE, 1, "WriteDS", 7, },
+ { NFSV4OP_READ, 1, "ReadDS", 6, },
};
-
/*
* NFS RPCS that have large request message size.
*/
static int nfs_bigrequest[NFSV41_NPROCS] = {
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 1
+ 0, 0, 0, 0, 0, 0, 1, 0
};
/*
Modified: projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clrpcops.c
==============================================================================
--- projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clrpcops.c Thu Apr 26 14:34:46 2012 (r234709)
+++ projects/nfsv4.1-client/sys/fs/nfsclient/nfs_clrpcops.c Thu Apr 26 14:51:12 2012 (r234710)
@@ -5499,7 +5499,7 @@ nfsrpc_readds(vnode_t vp, struct uio *ui
struct nfssockreq *nrp;
nd->nd_mrep = NULL;
- nfscl_reqstart(nd, NFSPROC_READ, nmp, fhp->nfh_fh, fhp->nfh_len,
+ nfscl_reqstart(nd, NFSPROC_READDS, nmp, fhp->nfh_fh, fhp->nfh_len,
NULL, &dsp->nfsclds_sess);
nfsm_stateidtom(nd, stateidp, NFSSTATEID_PUTSEQIDZERO);
NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED * 3);
More information about the svn-src-projects
mailing list