]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/osd: Deny EC optimizations for non-aligned chunk-sizes and allow switch off. block_non_4k_chunks_tentacle
authorAlex Ainscow <aainscow@uk.ibm.com>
Wed, 11 Feb 2026 11:37:22 +0000 (11:37 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 11 Feb 2026 11:39:09 +0000 (11:39 +0000)
commit578e82c877e1ea698a6e2986447f8455fd72cb72
treecdb11bc4047cb0d8b1b16c17f51a9acf42742a53
parent69f84cc2651aa259a15bc192ddaabd3baba07489
mon/osd: Deny EC optimizations for non-aligned chunk-sizes and allow switch off.

There are some bugs in the way Fast EC handles non 4k-aligned chunk sizes.

We are unlikely to ever support these and will require any user with these to
use the Umbrella pool migration to switch them off.

If a user of early versions of Tentacle managed to switch this feature on,
we allow the optimizations to be switched off, which should allow the pool
to come back online.

It is generally a bad idea to turn of optimizations, especially if there have
been many writes. However, this should all be detected by scrubbing and the user
is more likely to be able to recover data with the old EC code.

Turning off EC, or turning it on with non-aligned EC sizes requires the
yes-i-really-mean-it flag.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/osd/ECSwitch.h