Skip to content

Commit 4b4cb54

Browse files
committed
tools/cephfs/JournalTool: add some more debugging
Signed-off-by: Patrick Donnelly <[email protected]>
1 parent 7599d47 commit 4b4cb54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/tools/cephfs/JournalTool.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,14 @@ int JournalTool::recover_dentries(
890890
if ((other_pool || write_dentry) && !dry_run) {
891891
dout(4) << "writing I dentry " << key << " into frag "
892892
<< frag_oid.name << dendl;
893+
dout(20) << " dnfirst = " << fb.dnfirst << dendl;
894+
if (!fb.alternate_name.empty()) {
895+
bufferlist bl, b64;
896+
bl.append(fb.alternate_name);
897+
bl.encode_base64(b64);
898+
auto encoded = std::string_view(b64.c_str(), b64.length());
899+
dout(20) << " alternate_name = b64:" << encoded << dendl;
900+
}
893901

894902
// Compose: Dentry format is dnfirst, [I|L], InodeStore(bare=true)
895903
bufferlist dentry_bl;

0 commit comments

Comments
 (0)