]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: don't use bdev.size() when dealing with bdev labels in fsck.
authorIgor Fedotov <ifedotov@croit.io>
Sat, 15 Feb 2025 23:18:03 +0000 (02:18 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Tue, 15 Apr 2025 09:04:23 +0000 (12:04 +0300)
commit828b4022ed186493d887e33aa60d38c5092ccf41
treee3da953561c8962c1087ea9e9a442611da7b89b9
parent60c87f3724509c38bada11af85563179550c93bb
os/bluestore: don't use bdev.size() when dealing with bdev labels in fsck.

This might cause assertions after incomplete volume expansion
(expand-device cmd hasn't been called) as allocmap bitmaps are initialized with
bdev label.size not bdev.size() and hence they are accessed
out-of-bound.

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 173bbe7dba7f0b835246fab9ecdba1f13c544460)
src/os/bluestore/BlueStore.cc