From 489e64e8bf9ba6297937a700f2418a33859c3287 Mon Sep 17 00:00:00 2001 From: Jaya Prakash Date: Mon, 8 Dec 2025 13:37:13 +0000 Subject: [PATCH] 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 --- src/include/rados.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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*/ -- 2.47.3