2012-07-31 07:23:22 +08:00
|
|
|
#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)
|
2012-07-31 09:15:23 +08:00
|
|
|
/* bits 8-17 defined by user-space; not supported yet here */
|
|
|
|
#define CEPH_FEATURE_CRUSH_TUNABLES (1<<18)
|
2012-12-29 01:56:46 +08:00
|
|
|
/* bits 19-25 defined by user-space; not supported yet here */
|
|
|
|
#define CEPH_FEATURE_REPLY_CREATE_INODE (1<<27)
|
2012-07-31 07:23:22 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Features supported.
|
|
|
|
*/
|
|
|
|
#define CEPH_FEATURES_SUPPORTED_DEFAULT \
|
2012-07-31 09:15:23 +08:00
|
|
|
(CEPH_FEATURE_NOSRCADDR | \
|
2012-12-29 01:56:46 +08:00
|
|
|
CEPH_FEATURE_CRUSH_TUNABLES | \
|
|
|
|
CEPH_FEATURE_REPLY_CREATE_INODE)
|
2012-07-31 07:23:22 +08:00
|
|
|
|
|
|
|
#define CEPH_FEATURES_REQUIRED_DEFAULT \
|
|
|
|
(CEPH_FEATURE_NOSRCADDR)
|
|
|
|
#endif
|