Lines Matching +full:multi +full:- +full:attr

1 /* SPDX-License-Identifier: GPL-2.0 */
29 #define CEPH_SNAPDIR ((__u64)(-1)) /* reserved for hidden .snap dir */
30 #define CEPH_NOSNAP ((__u64)(-2)) /* "head", "live" revision */
31 #define CEPH_MAXSNAP ((__u64)(-3)) /* largest valid snapid */
40 * object layout - how objects are mapped into PGs
47 * pg layout -- how PGs are mapped onto (sets of) OSDs
69 * pg_num -- base number of pseudorandomly placed pgs
71 * pgp_num -- effective number when calculating pg placement. this
78 * lpg_num -- localized pg count (per device). replicas are randomly
81 * lpgp_num -- as above.
83 #define CEPH_NOPOOL ((__u64) (-1)) /* pool id not defined */
91 * similar to straight-up modulo, but produces a stable mapping as b
95 * b <= bmask and bmask=(2**n)-1
96 * e.g., b=12 -> bmask=15, b=123 -> bmask=127
107 * object layout - how a given object should be stored.
111 __le32 ol_stripe_unit; /* for per-object parity, if any */
138 /* osd primary-affinity. fixed point value: 0x10000 == baseline */
154 #define CEPH_OSDMAP_NODOWN (1<<6) /* block osd mark-down/failure */
155 #define CEPH_OSDMAP_NOOUT (1<<7) /* block osd auto mark-out */
156 #define CEPH_OSDMAP_NOIN (1<<8) /* block osd auto mark-in */
160 #define CEPH_OSDMAP_NODEEP_SCRUB (1<<12) /* block periodic deep-scrub */
180 * redefined, resulting in special-cases in the helpers.
212 f(SPARSE_READ, __CEPH_OSD_OP(RD, DATA, 5), "sparse-read") \
215 f(NOTIFY_ACK, __CEPH_OSD_OP(RD, DATA, 7), "notify-ack") \
218 f(ASSERT_VER, __CEPH_OSD_OP(RD, DATA, 8), "assert-version") \
220 f(LIST_WATCHERS, __CEPH_OSD_OP(RD, DATA, 9), "list-watchers") \
222 f(LIST_SNAPS, __CEPH_OSD_OP(RD, DATA, 10), "list-snaps") \
249 f(OMAPGETKEYS, __CEPH_OSD_OP(RD, DATA, 17), "omap-get-keys") \
250 f(OMAPGETVALS, __CEPH_OSD_OP(RD, DATA, 18), "omap-get-vals") \
251 f(OMAPGETHEADER, __CEPH_OSD_OP(RD, DATA, 19), "omap-get-header") \
252 f(OMAPGETVALSBYKEYS, __CEPH_OSD_OP(RD, DATA, 20), "omap-get-vals-by-keys") \
253 f(OMAPSETVALS, __CEPH_OSD_OP(WR, DATA, 21), "omap-set-vals") \
254 f(OMAPSETHEADER, __CEPH_OSD_OP(WR, DATA, 22), "omap-set-header") \
255 f(OMAPCLEAR, __CEPH_OSD_OP(WR, DATA, 23), "omap-clear") \
256 f(OMAPRMKEYS, __CEPH_OSD_OP(WR, DATA, 24), "omap-rm-keys") \
257 f(OMAP_CMP, __CEPH_OSD_OP(RD, DATA, 25), "omap-cmp") \
260 f(COPY_FROM, __CEPH_OSD_OP(WR, DATA, 26), "copy-from") \
261 f(COPY_FROM2, __CEPH_OSD_OP(WR, DATA, 45), "copy-from2") \
262 f(COPY_GET_CLASSIC, __CEPH_OSD_OP(RD, DATA, 27), "copy-get-classic") \
265 f(COPY_GET, __CEPH_OSD_OP(RD, DATA, 30), "copy-get") \
266 f(CACHE_FLUSH, __CEPH_OSD_OP(CACHE, DATA, 31), "cache-flush") \
267 f(CACHE_EVICT, __CEPH_OSD_OP(CACHE, DATA, 32), "cache-evict") \
268 f(CACHE_TRY_FLUSH, __CEPH_OSD_OP(CACHE, DATA, 33), "cache-try-flush") \
274 f(SETALLOCHINT, __CEPH_OSD_OP(WR, DATA, 35), "set-alloc-hint") \
276 /** multi **/ \
277 f(CLONERANGE, __CEPH_OSD_OP(WR, MULTI, 1), "clonerange") \
278 f(ASSERT_SRC_VERSION, __CEPH_OSD_OP(RD, MULTI, 2), "assert-src-version") \
279 f(SRC_CMPXATTR, __CEPH_OSD_OP(RD, MULTI, 3), "src-cmpxattr") \
283 f(GETXATTR, __CEPH_OSD_OP(RD, ATTR, 1), "getxattr") \
284 f(GETXATTRS, __CEPH_OSD_OP(RD, ATTR, 2), "getxattrs") \
285 f(CMPXATTR, __CEPH_OSD_OP(RD, ATTR, 3), "cmpxattr") \
288 f(SETXATTR, __CEPH_OSD_OP(WR, ATTR, 1), "setxattr") \
289 f(SETXATTRS, __CEPH_OSD_OP(WR, ATTR, 2), "setxattrs") \
290 f(RESETXATTRS, __CEPH_OSD_OP(WR, ATTR, 3), "resetxattrs") \
291 f(RMXATTR, __CEPH_OSD_OP(WR, ATTR, 4), "rmxattr") \
296 f(BALANCEREADS, __CEPH_OSD_OP1(SUB, 3), "balance-reads") \
297 f(UNBALANCEREADS, __CEPH_OSD_OP1(SUB, 4), "unbalance-reads") \
299 f(SCRUB_RESERVE, __CEPH_OSD_OP1(SUB, 6), "scrub-reserve") \
300 f(SCRUB_UNRESERVE, __CEPH_OSD_OP1(SUB, 7), "scrub-unreserve") \
301 f(SCRUB_STOP, __CEPH_OSD_OP1(SUB, 8), "scrub-stop") \
302 f(SCRUB_MAP, __CEPH_OSD_OP1(SUB, 9), "scrub-map") \
313 /* note: the RD bit here is wrong; see special-case below in helper */ \
318 f(PGLS_FILTER, __CEPH_OSD_OP(RD, PG, 2), "pgls-filter") \
319 f(PG_HITSET_LS, __CEPH_OSD_OP(RD, PG, 3), "pg-hitset-ls") \
320 f(PG_HITSET_GET, __CEPH_OSD_OP(RD, PG, 4), "pg-hitset-get")
458 /* note: use only ODD ids to prevent pre-giant code from