summaryrefslogtreecommitdiff
path: root/fs/ceph/mon_client.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-02-03 03:21:06 +0300
committerSage Weil <sage@newdream.net>2010-02-11 02:04:47 +0300
commit9bd2e6f8ba71facf1cadb7154a7e0e4d345a6aba (patch)
tree1c1bb4d2f769eca05443b98334fe0fbdb3b977c2 /fs/ceph/mon_client.h
parent8b6e4f2d8b21c25225b1ce8d53a2e03b92cc8522 (diff)
downloadlinux-9bd2e6f8ba71facf1cadb7154a7e0e4d345a6aba.tar.xz
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 {
struct ceph_auth_client *auth;
struct ceph_msg *m_auth;
+ int pending_auth;
bool hunting;
int cur_mon; /* last monitor i contacted */
@@ -110,6 +111,8 @@ extern int ceph_monc_do_statfs(struct ceph_mon_client *monc,
extern int ceph_monc_open_session(struct ceph_mon_client *monc);
+extern int ceph_monc_validate_auth(struct ceph_mon_client *monc);
+
#endif