This fixes https://tracker.ceph.com/issues/46194
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
(cherry picked from commit
340917d409012d8a8530c9050b79b875e87dc029)
Conflicts:
src/os/bluestore/BlueFS.cc
uint64_t x_off = 0;
auto p = h->file->fnode.seek(off, &x_off);
uint64_t l = std::min(p->length - x_off, static_cast<uint64_t>(len));
+ ceph_assert(p != h->file->fnode.extents.end());
dout(20) << __func__ << " read random 0x"
<< std::hex << x_off << "~" << l << std::dec
<< " of " << *p << dendl;