]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: Add scrub stubs for crimson and classic, ready for new EC
authorAlex Ainscow <aainscow@uk.ibm.com>
Thu, 27 Mar 2025 14:38:44 +0000 (14:38 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Tue, 22 Apr 2025 07:38:15 +0000 (08:38 +0100)
commitae28c1489543bff5c97c8acbf56ff3282b824528
tree672d4248f2bf3bbba6fd198891b72768a632c622
parentd43485dec5f307b4e76adbd6632f6d0f0d2dabd5
crimson/osd: Add scrub stubs for crimson and classic, ready for new EC

The new optimised EC code is not backward compatible withold  EC Code.
Before this commit there is some stub code which assumes that an hinfo
xattr will exist and can be used for scrub. This is no longer the case in new EC.

We plan to first make the scrubbing changes for new EC in classic and will
subsequently port to crimson. It will not look like the code here, so there is
little point in keeping it.

Additionally, add some stubs for scrub in classic optimized EC.

There will be a later PR specifically for dealing with scrubbing in
new EC which fix all the fix mes in class,

The crimson code will be fixed up at a later date and will only
support optimised EC.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
12 files changed:
src/crimson/osd/scrub/pg_scrubber.cc
src/crimson/osd/scrub/scrub_validator.h
src/osd/ECBackend.h
src/osd/ECSwitch.h
src/osd/PG.h
src/osd/PGBackend.h
src/osd/ReplicatedBackend.h
src/osd/scrubber/scrub_backend.cc
src/osd/scrubber/scrub_backend.h
src/osd/scrubber_common.h
src/test/crimson/test_crimson_scrub.cc
src/test/osd/test_scrubber_be.cc