diff options
author | Qu Wenruo <wqu@suse.com> | 2019-08-09 03:24:22 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 14:59:12 +0200 |
commit | f82d1c7ca8ae1bf89e8d78c5ecb56b6b228c1a75 (patch) | |
tree | 5ed618e1c776ae7cf773a335475cbf8af44c2bdb /fs/btrfs/print-tree.h | |
parent | btrfs: fix error pointer check in __btrfs_map_block() (diff) | |
download | linux-f82d1c7ca8ae1bf89e8d78c5ecb56b6b228c1a75.tar.xz linux-f82d1c7ca8ae1bf89e8d78c5ecb56b6b228c1a75.zip |
btrfs: tree-checker: Add EXTENT_ITEM and METADATA_ITEM check
This patch introduces the ability to check extent items.
This check involves:
- key->objectid check
Basic alignment check.
- key->type check
Against btrfs_extent_item::type and SKINNY_METADATA feature.
- key->offset alignment check for EXTENT_ITEM
- key->offset check for METADATA_ITEM
- item size check
Both against minimal size and stepping check.
- btrfs_extent_item check
Checks its flags and generation.
- btrfs_extent_inline_ref checks
Against 4 types inline ref.
Checks bytenr alignment and tree level.
- btrfs_extent_item::refs check
Check against total refs found in inline refs.
This check would be the most complex single item check due to its nature
of inlined items.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/print-tree.h')
0 files changed, 0 insertions, 0 deletions