aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mon_client.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-02-02 19:21:06 -0500
committerSage Weil <sage@newdream.net>2010-02-10 18:04:47 -0500
commit9bd2e6f8ba71facf1cadb7154a7e0e4d345a6aba (patch)
tree1c1bb4d2f769eca05443b98334fe0fbdb3b977c2 /fs/ceph/mon_client.h
parent8b6e4f2d8b21c25225b1ce8d53a2e03b92cc8522 (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.h3
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
111extern int ceph_monc_open_session(struct ceph_mon_client *monc); 112extern int ceph_monc_open_session(struct ceph_mon_client *monc);
112 113
114extern int ceph_monc_validate_auth(struct ceph_mon_client *monc);
115
113 116
114 117
115#endif 118#endif