From: Igor Fedotov Date: Wed, 9 Nov 2022 14:58:52 +0000 (+0300) Subject: os/bluestore: output cosmetics for BlueFS X-Git-Tag: v17.2.6~172^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84b4aa774441278386f02e2fe5247eecd34f3b9d;p=ceph.git os/bluestore: output cosmetics for BlueFS This includes finer position specification during replay and logging read size in hex. Signed-off-by: Igor Fedotov (cherry picked from commit e5b7ba93191ad41c4a4beae802b7e86c8febec04) --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 74b232897cff..bbd5546cd908 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -1308,7 +1308,9 @@ int BlueFS::_replay(bool noop, bool to_stdout) } auto p = t.op_bl.cbegin(); + auto pos0 = pos; while (!p.end()) { + pos = pos0 + p.get_off(); __u8 op; decode(op, p); switch (op) { @@ -2130,7 +2132,9 @@ int64_t BlueFS::_read_random( buf->pos += r; } } - dout(20) << __func__ << " got " << ret << dendl; + dout(20) << __func__ << std::hex + << " got 0x" << ret + << std::dec << dendl; --h->file->num_reading; return ret; } @@ -2255,7 +2259,9 @@ int64_t BlueFS::_read( buf->pos += r; } - dout(20) << __func__ << " got " << ret << dendl; + dout(20) << __func__ << std::hex + << " got 0x" << ret + << std::dec << dendl; ceph_assert(!outbl || (int)outbl->length() == ret); --h->file->num_reading; return ret;