[pnfs] [PATCH 2/4] nfsd41: update cb_compound encoding to draft-15

Benny Halevy bhalevy at panasas.com
Wed Feb 6 13:05:11 EST 2008


From: Benny Halevy <bhalevy at panasas.com>

Add back the callback_ident member that was removed by mistake
from previous drafts.  It is still not used by nfsv4.1, and therefore
it's always encoded as 0 on the server side and ignored on the client side.

Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
 fs/nfsd/nfs4callback.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 3e8d82d..aa33e5a 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -327,9 +327,10 @@ encode_cb_compound41_hdr(struct xdr_stream *xdr,
 {
 	u32 *p;
 
-	RESERVE_SPACE(12);
+	RESERVE_SPACE(16);
 	WRITE32(0);             /* tag length is always 0 */
 	WRITE32(1);             /* minorversion */
+	WRITE32(0);             /* callback_ident not used in 4.1 */
 	WRITE32(hdr->nops);
 	return 0;
 }
-- 
1.5.3.3



More information about the pNFS mailing list