ceph_features.h 1.0 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#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)
S
Sage Weil 已提交
15 16
/* bits 8-17 defined by user-space; not supported yet here */
#define CEPH_FEATURE_CRUSH_TUNABLES (1<<18)
17 18 19
/* bits 19-24 defined by user-space; not supported yet here */
#define CEPH_FEATURE_CRUSH_TUNABLES2 (1<<25)
/* bit 26 defined by user-space; not supported yet here */
20
#define CEPH_FEATURE_REPLY_CREATE_INODE (1<<27)
21 22 23 24 25

/*
 * Features supported.
 */
#define CEPH_FEATURES_SUPPORTED_DEFAULT  \
S
Sage Weil 已提交
26
	(CEPH_FEATURE_NOSRCADDR |	 \
27 28
	 CEPH_FEATURE_CRUSH_TUNABLES |	  \
	 CEPH_FEATURE_CRUSH_TUNABLES2 |   \
29
	 CEPH_FEATURE_REPLY_CREATE_INODE)
30 31 32 33

#define CEPH_FEATURES_REQUIRED_DEFAULT   \
	(CEPH_FEATURE_NOSRCADDR)
#endif