aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2019-08-09 09:24:23 +0800
committerDavid Sterba <[email protected]>2019-09-09 14:59:12 +0200
commite2406a6f13bdc7df43bf7e4e66cb06348daef618 (patch)
treee1e6afcec2d3b385010a0b261dfc676578ef4064 /lib/test_overflow.c
parentf82d1c7ca8ae1bf89e8d78c5ecb56b6b228c1a75 (diff)
btrfs: tree-checker: Add simple keyed refs check
For TREE_BLOCK_REF, SHARED_DATA_REF and SHARED_BLOCK_REF we need to check: | TREE_BLOCK_REF | SHARED_BLOCK_REF | SHARED_BLOCK_REF --------------+----------------+-----------------+------------------ key->objectid | Alignment | Alignment | Alignment key->offset | Any value | Alignment | Alignment item_size | 0 | 0 | sizeof(le32) (*) *: sizeof(struct btrfs_shared_data_ref) So introduce a check to check all these 3 key types together. Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions