btrfs-progs: dump-tree: print missing dir_item data
Add items from dir_item that are not printed, plus other adjustments. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6c849c616e
commit
58bef5b4a7
|
@ -85,8 +85,10 @@ static int print_dir_item(struct extent_buffer *eb, struct btrfs_item *item,
|
|||
data_len = btrfs_dir_data_len(eb, di);
|
||||
len = (name_len <= sizeof(namebuf))? name_len: sizeof(namebuf);
|
||||
read_extent_buffer(eb, namebuf, (unsigned long)(di + 1), len);
|
||||
printf("\t\tnamelen %u datalen %u name: %.*s\n",
|
||||
name_len, data_len, len, namebuf);
|
||||
printf("\t\ttransid %llu data_len %u name_len %u\n",
|
||||
btrfs_dir_transid(eb, di),
|
||||
data_len, name_len);
|
||||
printf("\t\tname: %.*s\n", len, namebuf);
|
||||
if (data_len) {
|
||||
len = (data_len <= sizeof(namebuf))? data_len: sizeof(namebuf);
|
||||
read_extent_buffer(eb, namebuf,
|
||||
|
|
Loading…
Reference in New Issue