aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2012-05-21 22:46:16 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-22 16:45:48 -0400
commitacdeb69d9c5934a678a732b4e24770326bf9471e (patch)
tree818b6b385ecddc5bf2c7da2641ec55704b940b3b /include
parent4bf590e08f6db3395c181618a4c14f1c39b7c4af (diff)
NFS: EXCHANGE_ID should save the server major and minor ID
Save the server major and minor ID results from EXCHANGE_ID, as they are needed for detecting server trunking. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfs_fs_sb.h1
-rw-r--r--include/linux/nfs_xdr.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
index 3a99f5252340..fbb78fb09bd2 100644
--- a/include/linux/nfs_fs_sb.h
+++ b/include/linux/nfs_fs_sb.h
@@ -80,6 +80,7 @@ struct nfs_client {
80 /* The flags used for obtaining the clientid during EXCHANGE_ID */ 80 /* The flags used for obtaining the clientid during EXCHANGE_ID */
81 u32 cl_exchange_flags; 81 u32 cl_exchange_flags;
82 struct nfs4_session *cl_session; /* shared session */ 82 struct nfs4_session *cl_session; /* shared session */
83 struct nfs41_server_owner *cl_serverowner;
83 struct nfs41_server_scope *cl_serverscope; 84 struct nfs41_server_scope *cl_serverscope;
84 struct nfs41_impl_id *cl_implid; 85 struct nfs41_impl_id *cl_implid;
85#endif /* CONFIG_NFS_V4 */ 86#endif /* CONFIG_NFS_V4 */
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 07048c012dec..0872f32c8eef 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -1098,7 +1098,7 @@ struct nfs41_exchange_id_args {
1098 u32 flags; 1098 u32 flags;
1099}; 1099};
1100 1100
1101struct server_owner { 1101struct nfs41_server_owner {
1102 uint64_t minor_id; 1102 uint64_t minor_id;
1103 uint32_t major_id_sz; 1103 uint32_t major_id_sz;
1104 char major_id[NFS4_OPAQUE_LIMIT]; 1104 char major_id[NFS4_OPAQUE_LIMIT];
@@ -1118,6 +1118,7 @@ struct nfs41_impl_id {
1118struct nfs41_exchange_id_res { 1118struct nfs41_exchange_id_res {
1119 struct nfs_client *client; 1119 struct nfs_client *client;
1120 u32 flags; 1120 u32 flags;
1121 struct nfs41_server_owner *server_owner;
1121 struct nfs41_server_scope *server_scope; 1122 struct nfs41_server_scope *server_scope;
1122 struct nfs41_impl_id *impl_id; 1123 struct nfs41_impl_id *impl_id;
1123}; 1124};