diff options
Diffstat (limited to 'fs/ceph/messenger.h')
-rw-r--r-- | fs/ceph/messenger.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/ceph/messenger.h b/fs/ceph/messenger.h index 4bd85c36308e..f9c9f6487302 100644 --- a/fs/ceph/messenger.h +++ b/fs/ceph/messenger.h | |||
@@ -26,6 +26,12 @@ struct ceph_connection_operations { | |||
26 | /* handle an incoming message. */ | 26 | /* handle an incoming message. */ |
27 | void (*dispatch) (struct ceph_connection *con, struct ceph_msg *m); | 27 | void (*dispatch) (struct ceph_connection *con, struct ceph_msg *m); |
28 | 28 | ||
29 | /* authorize an outgoing connection */ | ||
30 | int (*get_authorizer) (struct ceph_connection *con, | ||
31 | void **buf, int *len, int *proto, | ||
32 | void **reply_buf, int *reply_len, int force_new); | ||
33 | int (*verify_authorizer_reply) (struct ceph_connection *con, int len); | ||
34 | |||
29 | /* protocol version mismatch */ | 35 | /* protocol version mismatch */ |
30 | void (*bad_proto) (struct ceph_connection *con); | 36 | void (*bad_proto) (struct ceph_connection *con); |
31 | 37 | ||
@@ -144,6 +150,10 @@ struct ceph_connection { | |||
144 | attempt for this connection, client */ | 150 | attempt for this connection, client */ |
145 | u32 peer_global_seq; /* peer's global seq for this connection */ | 151 | u32 peer_global_seq; /* peer's global seq for this connection */ |
146 | 152 | ||
153 | int auth_retry; /* true if we need a newer authorizer */ | ||
154 | void *auth_reply_buf; /* where to put the authorizer reply */ | ||
155 | int auth_reply_buf_len; | ||
156 | |||
147 | /* out queue */ | 157 | /* out queue */ |
148 | struct mutex out_mutex; | 158 | struct mutex out_mutex; |
149 | struct list_head out_queue; | 159 | struct list_head out_queue; |