aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2012-02-17 15:20:26 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-01 17:10:22 -0500
commit7d2ed9ac22bc6bf0d34e8fd291a5295f373b384e (patch)
treed6af20f85e68c075c6587afaa94f56fe001aae4b /include
parent9edbd953f8aeabf49b89c7c29ff9e31560775b27 (diff)
NFSv4: parse and display server implementation ids
Shows the implementation ids in /proc/self/mountstats. This doesn't break the nfs-utils mountstats tool. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfs_fs_sb.h2
-rw-r--r--include/linux/nfs_xdr.h15
2 files changed, 9 insertions, 8 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
index 3bf47666646e..03d0b91c2d5b 100644
--- a/include/linux/nfs_fs_sb.h
+++ b/include/linux/nfs_fs_sb.h
@@ -18,6 +18,7 @@ struct nfs4_sequence_res;
18struct nfs_server; 18struct nfs_server;
19struct nfs4_minor_version_ops; 19struct nfs4_minor_version_ops;
20struct server_scope; 20struct server_scope;
21struct nfs41_impl_id;
21 22
22/* 23/*
23 * The nfs_client identifies our client state to the server. 24 * The nfs_client identifies our client state to the server.
@@ -86,6 +87,7 @@ struct nfs_client {
86#endif 87#endif
87 88
88 struct server_scope *server_scope; /* from exchange_id */ 89 struct server_scope *server_scope; /* from exchange_id */
90 struct nfs41_impl_id *impl_id; /* from exchange_id */
89 struct net *net; 91 struct net *net;
90}; 92};
91 93
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index adbc84ac345f..046c1bfddc33 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -1054,14 +1054,6 @@ struct nfstime4 {
1054}; 1054};
1055 1055
1056#ifdef CONFIG_NFS_V4_1 1056#ifdef CONFIG_NFS_V4_1
1057struct nfs_impl_id4 {
1058 u32 domain_len;
1059 char *domain;
1060 u32 name_len;
1061 char *name;
1062 struct nfstime4 date;
1063};
1064
1065#define NFS4_EXCHANGE_ID_LEN (48) 1057#define NFS4_EXCHANGE_ID_LEN (48)
1066struct nfs41_exchange_id_args { 1058struct nfs41_exchange_id_args {
1067 struct nfs_client *client; 1059 struct nfs_client *client;
@@ -1082,10 +1074,17 @@ struct server_scope {
1082 char server_scope[NFS4_OPAQUE_LIMIT]; 1074 char server_scope[NFS4_OPAQUE_LIMIT];
1083}; 1075};
1084 1076
1077struct nfs41_impl_id {
1078 char domain[NFS4_OPAQUE_LIMIT + 1];
1079 char name[NFS4_OPAQUE_LIMIT + 1];
1080 struct nfstime4 date;
1081};
1082
1085struct nfs41_exchange_id_res { 1083struct nfs41_exchange_id_res {
1086 struct nfs_client *client; 1084 struct nfs_client *client;
1087 u32 flags; 1085 u32 flags;
1088 struct server_scope *server_scope; 1086 struct server_scope *server_scope;
1087 struct nfs41_impl_id *impl_id;
1089}; 1088};
1090 1089
1091struct nfs41_create_session_args { 1090struct nfs41_create_session_args {