forked from luck/tmp_suning_uos_patched
3a23083bda
This is an old protocol extension that allows the client and server to avoid resending old messages after a reconnect (following a socket error). Instead, the exchange their sequence numbers during the handshake. This avoids sending a bunch of useless data over the socket. It has been supported in the server code since v0.22 (Sep 2010). Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Alex Elder <elder@inktank.com>
60 lines
2.0 KiB
C
60 lines
2.0 KiB
C
#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)
|
|
#define CEPH_FEATURE_OBJECTLOCATOR (1<<8)
|
|
#define CEPH_FEATURE_PGID64 (1<<9)
|
|
#define CEPH_FEATURE_INCSUBOSDMAP (1<<10)
|
|
#define CEPH_FEATURE_PGPOOL3 (1<<11)
|
|
#define CEPH_FEATURE_OSDREPLYMUX (1<<12)
|
|
#define CEPH_FEATURE_OSDENC (1<<13)
|
|
#define CEPH_FEATURE_OMAP (1<<14)
|
|
#define CEPH_FEATURE_MONENC (1<<15)
|
|
#define CEPH_FEATURE_QUERY_T (1<<16)
|
|
#define CEPH_FEATURE_INDEP_PG_MAP (1<<17)
|
|
#define CEPH_FEATURE_CRUSH_TUNABLES (1<<18)
|
|
#define CEPH_FEATURE_CHUNKY_SCRUB (1<<19)
|
|
#define CEPH_FEATURE_MON_NULLROUTE (1<<20)
|
|
#define CEPH_FEATURE_MON_GV (1<<21)
|
|
#define CEPH_FEATURE_BACKFILL_RESERVATION (1<<22)
|
|
#define CEPH_FEATURE_MSG_AUTH (1<<23)
|
|
#define CEPH_FEATURE_RECOVERY_RESERVATION (1<<24)
|
|
#define CEPH_FEATURE_CRUSH_TUNABLES2 (1<<25)
|
|
#define CEPH_FEATURE_CREATEPOOLID (1<<26)
|
|
#define CEPH_FEATURE_REPLY_CREATE_INODE (1<<27)
|
|
#define CEPH_FEATURE_OSD_HBMSGS (1<<28)
|
|
#define CEPH_FEATURE_MDSENC (1<<29)
|
|
#define CEPH_FEATURE_OSDHASHPSPOOL (1<<30)
|
|
|
|
/*
|
|
* Features supported.
|
|
*/
|
|
#define CEPH_FEATURES_SUPPORTED_DEFAULT \
|
|
(CEPH_FEATURE_NOSRCADDR | \
|
|
CEPH_FEATURE_RECONNECT_SEQ | \
|
|
CEPH_FEATURE_PGID64 | \
|
|
CEPH_FEATURE_PGPOOL3 | \
|
|
CEPH_FEATURE_OSDENC | \
|
|
CEPH_FEATURE_CRUSH_TUNABLES | \
|
|
CEPH_FEATURE_CRUSH_TUNABLES2 | \
|
|
CEPH_FEATURE_REPLY_CREATE_INODE | \
|
|
CEPH_FEATURE_OSDHASHPSPOOL)
|
|
|
|
#define CEPH_FEATURES_REQUIRED_DEFAULT \
|
|
(CEPH_FEATURE_NOSRCADDR | \
|
|
CEPH_FEATURE_RECONNECT_SEQ | \
|
|
CEPH_FEATURE_PGID64 | \
|
|
CEPH_FEATURE_PGPOOL3 | \
|
|
CEPH_FEATURE_OSDENC)
|
|
#endif
|