diff options
author | Sage Weil <sage@newdream.net> | 2010-02-02 19:21:06 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-10 18:04:47 -0500 |
commit | 9bd2e6f8ba71facf1cadb7154a7e0e4d345a6aba (patch) | |
tree | 1c1bb4d2f769eca05443b98334fe0fbdb3b977c2 /fs/ceph/mon_client.h | |
parent | 8b6e4f2d8b21c25225b1ce8d53a2e03b92cc8522 (diff) |
ceph: allow renewal of auth credentials
Add infrastructure to allow the mon_client to periodically renew its auth
credentials. Also add a messenger callback that will force such a renewal
if a peer rejects our authenticator.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mon_client.h')
-rw-r--r-- | fs/ceph/mon_client.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/mon_client.h b/fs/ceph/mon_client.h index c75b53302ecc..5ca8e48d4379 100644 --- a/fs/ceph/mon_client.h +++ b/fs/ceph/mon_client.h | |||
@@ -61,6 +61,7 @@ struct ceph_mon_client { | |||
61 | 61 | ||
62 | struct ceph_auth_client *auth; | 62 | struct ceph_auth_client *auth; |
63 | struct ceph_msg *m_auth; | 63 | struct ceph_msg *m_auth; |
64 | int pending_auth; | ||
64 | 65 | ||
65 | bool hunting; | 66 | bool hunting; |
66 | int cur_mon; /* last monitor i contacted */ | 67 | int cur_mon; /* last monitor i contacted */ |
@@ -110,6 +111,8 @@ extern int ceph_monc_do_statfs(struct ceph_mon_client *monc, | |||
110 | 111 | ||
111 | extern int ceph_monc_open_session(struct ceph_mon_client *monc); | 112 | extern int ceph_monc_open_session(struct ceph_mon_client *monc); |
112 | 113 | ||
114 | extern int ceph_monc_validate_auth(struct ceph_mon_client *monc); | ||
115 | |||
113 | 116 | ||
114 | 117 | ||
115 | #endif | 118 | #endif |