diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-16 08:46:49 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-16 08:46:49 -0400 |
commit | a8a2ee0c600a213d13170c2f4d7bd0b304bbec19 (patch) | |
tree | 91c98147b03657985b386a1bad74a9d0095d2606 /fs/btrfs/print-tree.c | |
parent | 1e1d27017c5986c1ea81181506042cf9cba3f6ea (diff) |
Btrfs: add a name_len to dir items, reorder key
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index ad244d658117..0bb5c38427c9 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c | |||
@@ -23,11 +23,11 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l) | |||
23 | for (i = 0 ; i < nr ; i++) { | 23 | for (i = 0 ; i < nr ; i++) { |
24 | item = l->items + i; | 24 | item = l->items + i; |
25 | type = btrfs_disk_key_type(&item->key); | 25 | type = btrfs_disk_key_type(&item->key); |
26 | printf("\titem %d key (%Lu %Lu %u) itemoff %d itemsize %d\n", | 26 | printf("\titem %d key (%Lu %u %Lu) itemoff %d itemsize %d\n", |
27 | i, | 27 | i, |
28 | btrfs_disk_key_objectid(&item->key), | 28 | btrfs_disk_key_objectid(&item->key), |
29 | btrfs_disk_key_offset(&item->key), | ||
30 | btrfs_disk_key_flags(&item->key), | 29 | btrfs_disk_key_flags(&item->key), |
30 | btrfs_disk_key_offset(&item->key), | ||
31 | btrfs_item_offset(item), | 31 | btrfs_item_offset(item), |
32 | btrfs_item_size(item)); | 32 | btrfs_item_size(item)); |
33 | switch (type) { | 33 | switch (type) { |
@@ -81,11 +81,11 @@ void btrfs_print_tree(struct btrfs_root *root, struct btrfs_buffer *t) | |||
81 | (u32)BTRFS_NODEPTRS_PER_BLOCK(root) - nr); | 81 | (u32)BTRFS_NODEPTRS_PER_BLOCK(root) - nr); |
82 | fflush(stdout); | 82 | fflush(stdout); |
83 | for (i = 0; i < nr; i++) { | 83 | for (i = 0; i < nr; i++) { |
84 | printf("\tkey %d (%Lu %Lu %u) block %Lu\n", | 84 | printf("\tkey %d (%Lu %u %Lu) block %Lu\n", |
85 | i, | 85 | i, |
86 | c->ptrs[i].key.objectid, | 86 | c->ptrs[i].key.objectid, |
87 | c->ptrs[i].key.offset, | ||
88 | c->ptrs[i].key.flags, | 87 | c->ptrs[i].key.flags, |
88 | c->ptrs[i].key.offset, | ||
89 | btrfs_node_blockptr(c, i)); | 89 | btrfs_node_blockptr(c, i)); |
90 | fflush(stdout); | 90 | fflush(stdout); |
91 | } | 91 | } |