]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: Protect _clone against sudden omap format changes
authorAdam Kupczyk <akupczyk@redhat.com>
Tue, 9 Nov 2021 12:01:23 +0000 (13:01 +0100)
committerAdam Kupczyk <akupczyk@redhat.com>
Tue, 9 Nov 2021 12:01:23 +0000 (13:01 +0100)
commit0be2c26a25bf3ca6c5207738f303d77f34e67e70
treee8b317fcc8bcbb31c8c435575f05e9db147205c4
parenta3aed9540a8cf2674e52aec731393d79ea4d0a70
os/bluestore: Protect _clone against sudden omap format changes

Added assert to verify that omap prefixes between cloned objects are exactly the same.
If they would differ rewrite_omap_key() will possibly overwrite user key potion of data,
or move some part of prefix into user key.

This is a follow up from
https://github.com/ceph/ceph/pull/43687

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
src/os/bluestore/BlueStore.cc