From: Jaya Prakash Date: Mon, 8 Dec 2025 13:37:13 +0000 (+0000) Subject: include: add flag to identify scrub IO X-Git-Tag: testing/wip-pdonnell-testing-20260210.165938~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=489e64e8bf9ba6297937a700f2418a33859c3287;p=ceph-ci.git include: add flag to identify scrub IO This commit introduces a new operation flag `CEPH_OSD_OP_FLAG_SCRUB` to explicitly mark requests originating from scrub or deep-scrub workflows. The flag allows BlueStore to differentiate scrub IO from normal operations. Signed-off-by: Jaya Prakash --- diff --git a/src/include/rados.h b/src/include/rados.h index 65092d42328..e471833a290 100644 --- a/src/include/rados.h +++ b/src/include/rados.h @@ -496,7 +496,12 @@ enum { CEPH_OSD_OP_FLAG_FADVISE_DONTNEED = 0x20,/* data will not be accessed in the near future */ CEPH_OSD_OP_FLAG_FADVISE_NOCACHE = 0x40, /* data will be accessed only once by this client */ CEPH_OSD_OP_FLAG_WITH_REFERENCE = 0x80, /* need reference couting */ - CEPH_OSD_OP_FLAG_BYPASS_CLEAN_CACHE = 0x100, /* bypass ObjectStore cache, mainly for deep-scrub */ + CEPH_OSD_OP_FLAG_SCRUB = 0x100, /* hint ObjectStore for deep-scrub ops + * Marks op as scrub or deep-scrub operations. + * This flag allows ObjectStore to identify scrub-originated ops + * and handle them separately from normal ops, + * apply scrub-specific behavior (e.g. bypassing clean cache) + */ }; #define EOLDSNAPC 85 /* ORDERSNAP flag set; writer has old snapc*/