blob: 76554cecaab24f71fd327db30e3af51143928008 [file] [log] [blame]
Sage Weil1fe60e52012-07-30 16:23:22 -07001#ifndef __CEPH_FEATURES
2#define __CEPH_FEATURES
3
4/*
5 * feature bits
6 */
7#define CEPH_FEATURE_UID (1<<0)
8#define CEPH_FEATURE_NOSRCADDR (1<<1)
9#define CEPH_FEATURE_MONCLOCKCHECK (1<<2)
10#define CEPH_FEATURE_FLOCK (1<<3)
11#define CEPH_FEATURE_SUBSCRIBE2 (1<<4)
12#define CEPH_FEATURE_MONNAMES (1<<5)
13#define CEPH_FEATURE_RECONNECT_SEQ (1<<6)
14#define CEPH_FEATURE_DIRLAYOUTHASH (1<<7)
Alex Elderec73a752013-02-26 14:23:07 -060015#define CEPH_FEATURE_OBJECTLOCATOR (1<<8)
16#define CEPH_FEATURE_PGID64 (1<<9)
17#define CEPH_FEATURE_INCSUBOSDMAP (1<<10)
18#define CEPH_FEATURE_PGPOOL3 (1<<11)
19#define CEPH_FEATURE_OSDREPLYMUX (1<<12)
20#define CEPH_FEATURE_OSDENC (1<<13)
21#define CEPH_FEATURE_OMAP (1<<14)
22#define CEPH_FEATURE_MONENC (1<<15)
23#define CEPH_FEATURE_QUERY_T (1<<16)
24#define CEPH_FEATURE_INDEP_PG_MAP (1<<17)
Sage Weil546f04e2012-07-30 18:15:23 -070025#define CEPH_FEATURE_CRUSH_TUNABLES (1<<18)
Alex Elderec73a752013-02-26 14:23:07 -060026#define CEPH_FEATURE_CHUNKY_SCRUB (1<<19)
27#define CEPH_FEATURE_MON_NULLROUTE (1<<20)
28#define CEPH_FEATURE_MON_GV (1<<21)
29#define CEPH_FEATURE_BACKFILL_RESERVATION (1<<22)
30#define CEPH_FEATURE_MSG_AUTH (1<<23)
31#define CEPH_FEATURE_RECOVERY_RESERVATION (1<<24)
Jim Schutt1604f482012-11-30 09:15:25 -070032#define CEPH_FEATURE_CRUSH_TUNABLES2 (1<<25)
Alex Elderec73a752013-02-26 14:23:07 -060033#define CEPH_FEATURE_CREATEPOOLID (1<<26)
34#define CEPH_FEATURE_REPLY_CREATE_INODE (1<<27)
35#define CEPH_FEATURE_OSD_HBMSGS (1<<28)
36#define CEPH_FEATURE_MDSENC (1<<29)
Sage Weil83ca14f2013-02-26 10:39:09 -080037#define CEPH_FEATURE_OSDHASHPSPOOL (1<<30)
Sage Weil1fe60e52012-07-30 16:23:22 -070038
39/*
40 * Features supported.
41 */
42#define CEPH_FEATURES_SUPPORTED_DEFAULT \
Sage Weil4f6a7e52013-02-23 10:41:09 -080043 (CEPH_FEATURE_NOSRCADDR | \
44 CEPH_FEATURE_PGID64 | \
45 CEPH_FEATURE_PGPOOL3 | \
46 CEPH_FEATURE_OSDENC | \
47 CEPH_FEATURE_CRUSH_TUNABLES | \
48 CEPH_FEATURE_CRUSH_TUNABLES2 | \
Sage Weil83ca14f2013-02-26 10:39:09 -080049 CEPH_FEATURE_REPLY_CREATE_INODE | \
50 CEPH_FEATURE_OSDHASHPSPOOL)
Sage Weil1fe60e52012-07-30 16:23:22 -070051
52#define CEPH_FEATURES_REQUIRED_DEFAULT \
Sage Weil4f6a7e52013-02-23 10:41:09 -080053 (CEPH_FEATURE_NOSRCADDR | \
54 CEPH_FEATURE_PGID64 | \
55 CEPH_FEATURE_PGPOOL3 | \
56 CEPH_FEATURE_OSDENC)
Sage Weil1fe60e52012-07-30 16:23:22 -070057#endif