diff options
author | Alex Elder <elder@inktank.com> | 2012-05-16 16:16:38 -0400 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-05-17 09:18:12 -0400 |
commit | 6c4a19158b96ea1fb8acbe0c1d5493d9dcd2f147 (patch) | |
tree | 5fe6418eb57bf4e84f1eda9606a4a045ff08dcba /include | |
parent | ed96af646011412c2bf1ffe860db170db355fae5 (diff) |
ceph: define ceph_auth_handshake type
The definitions for the ceph_mds_session and ceph_osd both contain
five fields related only to "authorizers." Encapsulate those fields
into their own struct type, allowing for better isolation in some
upcoming patches.
Fix the #includes in "linux/ceph/osd_client.h" to lay out their more
complete canonical path.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ceph/auth.h | 8 | ||||
-rw-r--r-- | include/linux/ceph/osd_client.h | 11 |
2 files changed, 13 insertions, 6 deletions
diff --git a/include/linux/ceph/auth.h b/include/linux/ceph/auth.h index aa13392a7efb..5b774d141e09 100644 --- a/include/linux/ceph/auth.h +++ b/include/linux/ceph/auth.h | |||
@@ -14,6 +14,14 @@ | |||
14 | struct ceph_auth_client; | 14 | struct ceph_auth_client; |
15 | struct ceph_authorizer; | 15 | struct ceph_authorizer; |
16 | 16 | ||
17 | struct ceph_auth_handshake { | ||
18 | struct ceph_authorizer *authorizer; | ||
19 | void *authorizer_buf; | ||
20 | size_t authorizer_buf_len; | ||
21 | void *authorizer_reply_buf; | ||
22 | size_t authorizer_reply_buf_len; | ||
23 | }; | ||
24 | |||
17 | struct ceph_auth_client_ops { | 25 | struct ceph_auth_client_ops { |
18 | const char *name; | 26 | const char *name; |
19 | 27 | ||
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 7c05ac202d90..cedfb1a8434a 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
@@ -6,9 +6,10 @@ | |||
6 | #include <linux/mempool.h> | 6 | #include <linux/mempool.h> |
7 | #include <linux/rbtree.h> | 7 | #include <linux/rbtree.h> |
8 | 8 | ||
9 | #include "types.h" | 9 | #include <linux/ceph/types.h> |
10 | #include "osdmap.h" | 10 | #include <linux/ceph/osdmap.h> |
11 | #include "messenger.h" | 11 | #include <linux/ceph/messenger.h> |
12 | #include <linux/ceph/auth.h> | ||
12 | 13 | ||
13 | /* | 14 | /* |
14 | * Maximum object name size | 15 | * Maximum object name size |
@@ -40,9 +41,7 @@ struct ceph_osd { | |||
40 | struct list_head o_requests; | 41 | struct list_head o_requests; |
41 | struct list_head o_linger_requests; | 42 | struct list_head o_linger_requests; |
42 | struct list_head o_osd_lru; | 43 | struct list_head o_osd_lru; |
43 | struct ceph_authorizer *o_authorizer; | 44 | struct ceph_auth_handshake o_auth; |
44 | void *o_authorizer_buf, *o_authorizer_reply_buf; | ||
45 | size_t o_authorizer_buf_len, o_authorizer_reply_buf_len; | ||
46 | unsigned long lru_ttl; | 45 | unsigned long lru_ttl; |
47 | int o_marked_for_keepalive; | 46 | int o_marked_for_keepalive; |
48 | struct list_head o_keepalive_item; | 47 | struct list_head o_keepalive_item; |