Go to the documentation of this file.
14 #define CEPH_OSDMAP_INC_VERSION 5
15 #define CEPH_OSDMAP_INC_VERSION_EXT 6
16 #define CEPH_OSDMAP_VERSION 5
17 #define CEPH_OSDMAP_VERSION_EXT 6
26 static inline int ceph_fsid_compare(
const struct ceph_fsid *
a,
29 return memcmp(a, b,
sizeof(*a));
36 #define CEPH_SNAPDIR ((__u64)(-1))
37 #define CEPH_NOSNAP ((__u64)(-2))
38 #define CEPH_MAXSNAP ((__u64)(-3))
49 #define CEPH_OBJECT_LAYOUT_HASH 1
50 #define CEPH_OBJECT_LAYOUT_LINEAR 2
51 #define CEPH_OBJECT_LAYOUT_HASHINO 3
56 #define CEPH_PG_LAYOUT_CRUSH 0
57 #define CEPH_PG_LAYOUT_HASH 1
58 #define CEPH_PG_LAYOUT_LINEAR 2
59 #define CEPH_PG_LAYOUT_HYBRID 3
61 #define CEPH_PG_MAX_SIZE 16
90 #define CEPH_PG_TYPE_REP 1
91 #define CEPH_PG_TYPE_RAID4 2
92 #define CEPH_PG_POOL_VERSION 2
117 static inline int ceph_stable_mod(
int x,
int b,
int bmask)
122 return x & (bmask >> 1);
146 #define CEPH_OSD_EXISTS 1
147 #define CEPH_OSD_UP 2
150 #define CEPH_OSD_IN 0x10000
151 #define CEPH_OSD_OUT 0
157 #define CEPH_OSDMAP_NEARFULL (1<<0)
158 #define CEPH_OSDMAP_FULL (1<<1)
159 #define CEPH_OSDMAP_PAUSERD (1<<2)
160 #define CEPH_OSDMAP_PAUSEWR (1<<3)
161 #define CEPH_OSDMAP_PAUSEREC (1<<4)
166 #define CEPH_OSD_OP_MODE 0xf000
167 #define CEPH_OSD_OP_MODE_RD 0x1000
168 #define CEPH_OSD_OP_MODE_WR 0x2000
169 #define CEPH_OSD_OP_MODE_RMW 0x3000
170 #define CEPH_OSD_OP_MODE_SUB 0x4000
172 #define CEPH_OSD_OP_TYPE 0x0f00
173 #define CEPH_OSD_OP_TYPE_LOCK 0x0100
174 #define CEPH_OSD_OP_TYPE_DATA 0x0200
175 #define CEPH_OSD_OP_TYPE_ATTR 0x0300
176 #define CEPH_OSD_OP_TYPE_EXEC 0x0400
177 #define CEPH_OSD_OP_TYPE_PG 0x0500
255 static inline int ceph_osd_op_type_lock(
int op)
259 static inline int ceph_osd_op_type_data(
int op)
263 static inline int ceph_osd_op_type_attr(
int op)
267 static inline int ceph_osd_op_type_exec(
int op)
271 static inline int ceph_osd_op_type_pg(
int op)
276 static inline int ceph_osd_op_mode_subop(
int op)
280 static inline int ceph_osd_op_mode_read(
int op)
284 static inline int ceph_osd_op_mode_modify(
int op)
293 #define CEPH_OSD_TMAP_HDR 'h'
294 #define CEPH_OSD_TMAP_SET 's'
295 #define CEPH_OSD_TMAP_RM 'r'
325 #define EOLDSNAPC ERESTART
326 #define EBLACKLISTED ESHUTDOWN
344 #define RADOS_NOTIFY_VER 1