mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
bcachefs: bch2_dirent_to_text() shows casefolded dirents
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
cd3cdb1ef7
commit
c21f41f690
|
|
@ -212,12 +212,19 @@ void bch2_dirent_to_text(struct printbuf *out, struct bch_fs *c, struct bkey_s_c
|
|||
struct bkey_s_c_dirent d = bkey_s_c_to_dirent(k);
|
||||
struct qstr d_name = bch2_dirent_get_name(d);
|
||||
|
||||
prt_printf(out, "%.*s -> ", d_name.len, d_name.name);
|
||||
prt_printf(out, "%.*s", d_name.len, d_name.name);
|
||||
|
||||
if (d.v->d_casefold) {
|
||||
struct qstr d_name = bch2_dirent_get_lookup_name(d);
|
||||
prt_printf(out, " (casefold %.*s)", d_name.len, d_name.name);
|
||||
}
|
||||
|
||||
prt_str(out, " ->");
|
||||
|
||||
if (d.v->d_type != DT_SUBVOL)
|
||||
prt_printf(out, "%llu", le64_to_cpu(d.v->d_inum));
|
||||
prt_printf(out, " %llu", le64_to_cpu(d.v->d_inum));
|
||||
else
|
||||
prt_printf(out, "%u -> %u",
|
||||
prt_printf(out, " %u -> %u",
|
||||
le32_to_cpu(d.v->d_parent_subvol),
|
||||
le32_to_cpu(d.v->d_child_subvol));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user