Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320327
b: refs/heads/master
c: 1fe60e5
h: refs/heads/master
i:
  320325: 2f4acd9
  320323: 016fd69
  320319: c5006ff
v: v3
  • Loading branch information
Sage Weil committed Jul 30, 2012
1 parent 1ab11c1 commit ad625be
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 23 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: d1f57ea66369b5c34bd42f104b8070db409447f9
refs/heads/master: 1fe60e51a3744528f3939b1b1167ca909133d9ae
1 change: 1 addition & 0 deletions trunk/fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "super.h"
#include "mds_client.h"

#include <linux/ceph/ceph_features.h>
#include <linux/ceph/messenger.h>
#include <linux/ceph/decode.h>
#include <linux/ceph/pagelist.h>
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/ceph/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "super.h"
#include "mds_client.h"

#include <linux/ceph/ceph_features.h>
#include <linux/ceph/decode.h>
#include <linux/ceph/mon_client.h>
#include <linux/ceph/auth.h>
Expand Down
24 changes: 24 additions & 0 deletions trunk/include/linux/ceph/ceph_features.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#ifndef __CEPH_FEATURES
#define __CEPH_FEATURES

/*
* feature bits
*/
#define CEPH_FEATURE_UID (1<<0)
#define CEPH_FEATURE_NOSRCADDR (1<<1)
#define CEPH_FEATURE_MONCLOCKCHECK (1<<2)
#define CEPH_FEATURE_FLOCK (1<<3)
#define CEPH_FEATURE_SUBSCRIBE2 (1<<4)
#define CEPH_FEATURE_MONNAMES (1<<5)
#define CEPH_FEATURE_RECONNECT_SEQ (1<<6)
#define CEPH_FEATURE_DIRLAYOUTHASH (1<<7)

/*
* Features supported.
*/
#define CEPH_FEATURES_SUPPORTED_DEFAULT \
(CEPH_FEATURE_NOSRCADDR)

#define CEPH_FEATURES_REQUIRED_DEFAULT \
(CEPH_FEATURE_NOSRCADDR)
#endif
14 changes: 0 additions & 14 deletions trunk/include/linux/ceph/ceph_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,6 @@
/* arbitrary limit on max # of monitors (cluster of 3 is typical) */
#define CEPH_MAX_MON 31


/*
* feature bits
*/
#define CEPH_FEATURE_UID (1<<0)
#define CEPH_FEATURE_NOSRCADDR (1<<1)
#define CEPH_FEATURE_MONCLOCKCHECK (1<<2)
#define CEPH_FEATURE_FLOCK (1<<3)
#define CEPH_FEATURE_SUBSCRIBE2 (1<<4)
#define CEPH_FEATURE_MONNAMES (1<<5)
#define CEPH_FEATURE_RECONNECT_SEQ (1<<6)
#define CEPH_FEATURE_DIRLAYOUTHASH (1<<7)


/*
* ceph_file_layout - describe data layout for a file/inode
*/
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/linux/ceph/libceph.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
#include "osd_client.h"
#include "ceph_fs.h"

/*
* Supported features
*/
#define CEPH_FEATURE_SUPPORTED_DEFAULT CEPH_FEATURE_NOSRCADDR
#define CEPH_FEATURE_REQUIRED_DEFAULT CEPH_FEATURE_NOSRCADDR

/*
* mount options
*/
Expand Down
5 changes: 3 additions & 2 deletions trunk/net/ceph/ceph_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/string.h>


#include <linux/ceph/ceph_features.h>
#include <linux/ceph/libceph.h>
#include <linux/ceph/debugfs.h>
#include <linux/ceph/decode.h>
Expand Down Expand Up @@ -460,9 +461,9 @@ struct ceph_client *ceph_create_client(struct ceph_options *opt, void *private,
client->auth_err = 0;

client->extra_mon_dispatch = NULL;
client->supported_features = CEPH_FEATURE_SUPPORTED_DEFAULT |
client->supported_features = CEPH_FEATURES_SUPPORTED_DEFAULT |
supported_features;
client->required_features = CEPH_FEATURE_REQUIRED_DEFAULT |
client->required_features = CEPH_FEATURES_REQUIRED_DEFAULT |
required_features;

/* msgr */
Expand Down

0 comments on commit ad625be

Please sign in to comment.