aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-18 19:19:57 -0500
committerSage Weil <sage@newdream.net>2009-11-18 19:19:57 -0500
commit4e7a5dcd1bbab6560fbc8ada29a840e7a20ed7bc (patch)
treea77e9b4563022340361ca673ef2e1beebb538e2f /fs/ceph/super.h
parent5f44f142601bf94c448e2d463f0f18fd159da164 (diff)
ceph: negotiate authentication protocol; implement AUTH_NONE protocol
When we open a monitor session, we send an initial AUTH message listing the auth protocols we support, our entity name, and (possibly) a previously assigned global_id. The monitor chooses a protocol and responds with an initial message. Initially implement AUTH_NONE, a dummy protocol that provides no security, but works within the new framework. It generates 'authorizers' that are used when connecting to (mds, osd) services that simply state our entity name and global_id. This is a wire protocol change. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 8aa1ffba6c0d..e0e8130959b6 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -61,6 +61,7 @@ struct ceph_mount_args {
61 int max_readdir; /* max readdir size */ 61 int max_readdir; /* max readdir size */
62 int osd_timeout; 62 int osd_timeout;
63 char *snapdir_name; /* default ".snap" */ 63 char *snapdir_name; /* default ".snap" */
64 char *name;
64 char *secret; 65 char *secret;
65 int cap_release_safety; 66 int cap_release_safety;
66}; 67};
@@ -75,6 +76,7 @@ struct ceph_mount_args {
75#define CEPH_MSG_MAX_DATA_LEN (16*1024*1024) 76#define CEPH_MSG_MAX_DATA_LEN (16*1024*1024)
76 77
77#define CEPH_SNAPDIRNAME_DEFAULT ".snap" 78#define CEPH_SNAPDIRNAME_DEFAULT ".snap"
79#define CEPH_AUTH_NAME_DEFAULT "guest"
78 80
79/* 81/*
80 * Delay telling the MDS we no longer want caps, in case we reopen 82 * Delay telling the MDS we no longer want caps, in case we reopen