Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188694
b: refs/heads/master
c: ec0994e
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Feb 11, 2010
1 parent 861582d commit 5849585
Show file tree
Hide file tree
Showing 6 changed files with 802 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07c8739c521cb029d0f3549556aae2d304513978
refs/heads/master: ec0994e48ea2aebf62ff08376227f3a9ccf46262
1 change: 1 addition & 0 deletions trunk/fs/ceph/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ceph-objs := super.o inode.o dir.o file.o addr.o ioctl.o \
debugfs.o \
auth.o auth_none.o \
crypto.o armor.o \
auth_x.o \
ceph_fs.o ceph_strings.o ceph_hash.o ceph_frag.o

else
Expand Down
6 changes: 5 additions & 1 deletion trunk/fs/ceph/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "types.h"
#include "auth_none.h"
#include "auth_x.h"
#include "decode.h"
#include "super.h"

Expand All @@ -14,14 +15,17 @@
* get protocol handler
*/
static u32 supported_protocols[] = {
CEPH_AUTH_NONE
CEPH_AUTH_NONE,
CEPH_AUTH_CEPHX
};

int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol)
{
switch (protocol) {
case CEPH_AUTH_NONE:
return ceph_auth_none_init(ac);
case CEPH_AUTH_CEPHX:
return ceph_x_init(ac);
default:
return -ENOENT;
}
Expand Down
Loading

0 comments on commit 5849585

Please sign in to comment.