Subject: [nfsv4] BIND_CONN_TO_SESSION4res improperly specified

From: Fredric Isaman <[email-masked]>
Date: Thu, 1 Mar 2007 12:48:07 -0500 (EST)

Like SET_SSV4res, BIND_CONN_TO_SESSION4res has no way to return error 
codes.  Below is a patch which fixes this.

 	Fred

--- nfsv41.x	2007-02-27 13:46:35.000000000 -0500
+++ new_nfsv41.x	2007-03-01 12:42:55.000000000 -0500
@@ -1764,7 +1764,7 @@
  	cdfs_both	  = 0x3
  };

-struct BIND_CONN_TO_SESSION4res {
+struct BIND_CONN_TO_SESSION4resok {
  	sessionid4		bctsr_sessid;
  	bool			bctsr_challenge;
  	channel_dir_from_server bctsr_dir;
@@ -1773,6 +1773,13 @@
  	opaque			bctsr_digest<>;
  };

+union BIND_CONN_TO_SESSION4res switch (nfsstat4 status) {
+case NFS4_OK:
+	BIND_CONN_TO_SESSION4resok	bctsr_resok4;
+default:
+	void;
+};
+
  struct EXCHANGE_ID4args {
  	client_owner4	eia_clientowner;
  };

_______________________________________________
nfsv4 mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/nfsv4