]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix improper offset calculation when repairing. 43731/head
authorIgor Fedotov <ifedotov@suse.com>
Thu, 15 Jul 2021 12:10:14 +0000 (15:10 +0300)
committerIgor Fedotov <ifed@suse.com>
Mon, 8 Nov 2021 21:18:03 +0000 (00:18 +0300)
commit39439d46303dc014cb8643f61593b05fc547e0d0
tree05c35ffbc72216535cb84c76819a622ce10257c1
parent8b06cbaca209abea243d273e1328fb65e3cfd686
os/bluestore: fix improper offset calculation when repairing.

While repairing misreferenced blobs BlueStore could improperly calculate
an offset within a blob being fixed. This could happen when single
physical extent has been replaced by multiple ones - the following
pextent (if any in the current blob) would be treated with the improper offset within the blob. Offset calculation didn't account for each of that new pextents but the last one only.

Fixes: https://tracker.ceph.com/issues/51682
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit ca4b6675fc3fd2f4cadad58044c97c5bb23d5938)
src/os/bluestore/BlueStore.cc