[pnfs] create_session patch

Dean Hildebrand seattleplus at gmail.com
Thu Feb 7 19:37:36 EST 2008


Please ignore the first patch I sent out, it did not pass checkpatch.

I'm not sure if this bug was there before, but in pnfs-d19 because the
create session xdr maxsize is wrong, it crashes on the 2nd mount.

Dean Hildebrand
Research Staff Member
IBM Almaden Research Center
----- Forwarded by Dean Hildebrand/Almaden/IBM on 02/07/2008 04:32 PM -----
                                                                           
             Dean Hildebrand                                               
             <seattleplus at gmai                                             
             l.com>                                                     To 
                                       pnfs at linux-nfs.org                  
             02/07/2008 04:31                                           cc 
             PM                        Dean Hildebrand/Almaden/IBM at IBMUS   
                                                                   Subject 
                                       [PATCH 1/1] nfs41: Fix              
                                       create_session client xdr max alloc 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Signed-off-by: Dean Hildebrand <dhildeb at us.ibm.com>
---
 fs/nfs/nfs4xdr.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 2c55050..1998fd4 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -257,11 +257,11 @@ static int nr_sequence_quads;
                                                 2 + 1 + 1 + 2 + 1 + \
                                                 (NFS4_OPAQUE_LIMIT >> 2) +
1 + \
                                                 (NFS4_OPAQUE_LIMIT >> 2) +
1)
-#define encode_create_session_maxsz             (op_encode_hdr_maxsz + 2 +
4 + \
-                                                            6 + 6 + /*
fore and back chan */ \
-                                                            3 + 4 + 2 +
4 /* auth sys */)
-#define decode_create_session_maxsz             (op_decode_hdr_maxsz + 4 +
3 + \
-                                                            3 + 7 + 7)
+#define encode_create_session_maxsz             (op_encode_hdr_maxsz + 2 +
2 + \
+                                                             7 + 7 + 4 + 4
+ 16)
+#define decode_create_session_maxsz             (op_decode_hdr_maxsz +
 \
+                                                             2 + 6 + 2 + 6
+ 2 +        \
+                                                             XDR_QUADLEN
(NFS4_MAX_SESSIONID_LEN))
 #define encode_destroy_session_maxsz    (op_encode_hdr_maxsz + 4)
 #define decode_destroy_session_maxsz    (op_decode_hdr_maxsz)
 #define encode_sequence_maxsz             (op_encode_hdr_maxsz + \
--
1.5.3.3





More information about the pNFS mailing list