Sage Weil | 1fe60e5 | 2012-07-30 16:23:22 -0700 | [diff] [blame] | 1 | #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 Elder | ec73a75 | 2013-02-26 14:23:07 -0600 | [diff] [blame] | 15 | #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 Weil | 546f04e | 2012-07-30 18:15:23 -0700 | [diff] [blame] | 25 | #define CEPH_FEATURE_CRUSH_TUNABLES (1<<18) |
Alex Elder | ec73a75 | 2013-02-26 14:23:07 -0600 | [diff] [blame] | 26 | #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 Schutt | 1604f48 | 2012-11-30 09:15:25 -0700 | [diff] [blame] | 32 | #define CEPH_FEATURE_CRUSH_TUNABLES2 (1<<25) |
Alex Elder | ec73a75 | 2013-02-26 14:23:07 -0600 | [diff] [blame] | 33 | #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 Weil | 83ca14f | 2013-02-26 10:39:09 -0800 | [diff] [blame^] | 37 | #define CEPH_FEATURE_OSDHASHPSPOOL (1<<30) |
Sage Weil | 1fe60e5 | 2012-07-30 16:23:22 -0700 | [diff] [blame] | 38 | |
| 39 | /* |
| 40 | * Features supported. |
| 41 | */ |
| 42 | #define CEPH_FEATURES_SUPPORTED_DEFAULT \ |
Sage Weil | 4f6a7e5 | 2013-02-23 10:41:09 -0800 | [diff] [blame] | 43 | (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 Weil | 83ca14f | 2013-02-26 10:39:09 -0800 | [diff] [blame^] | 49 | CEPH_FEATURE_REPLY_CREATE_INODE | \ |
| 50 | CEPH_FEATURE_OSDHASHPSPOOL) |
Sage Weil | 1fe60e5 | 2012-07-30 16:23:22 -0700 | [diff] [blame] | 51 | |
| 52 | #define CEPH_FEATURES_REQUIRED_DEFAULT \ |
Sage Weil | 4f6a7e5 | 2013-02-23 10:41:09 -0800 | [diff] [blame] | 53 | (CEPH_FEATURE_NOSRCADDR | \ |
| 54 | CEPH_FEATURE_PGID64 | \ |
| 55 | CEPH_FEATURE_PGPOOL3 | \ |
| 56 | CEPH_FEATURE_OSDENC) |
Sage Weil | 1fe60e5 | 2012-07-30 16:23:22 -0700 | [diff] [blame] | 57 | #endif |