diff options
author | 2019-07-16 17:00:34 +0800 | |
---|---|---|
committer | 2019-09-09 14:59:01 +0200 | |
commit | 259ee7754b6793af8bdd77f9ca818bc41cfe9541 (patch) | |
tree | 1df9c3d63c8245a1577e546e6c789faf1baba30d /fs/btrfs/ioctl.c | |
parent | btrfs: extent-tree: Make sure we only allocate extents from block groups with the same type (diff) | |
download | linux-dev-259ee7754b6793af8bdd77f9ca818bc41cfe9541.tar.xz linux-dev-259ee7754b6793af8bdd77f9ca818bc41cfe9541.zip |
btrfs: tree-checker: Add ROOT_ITEM check
This patch will introduce ROOT_ITEM check, which includes:
- Key->objectid and key->offset check
Currently only some easy check, e.g. 0 as rootid is invalid.
- Item size check
Root item size is fixed.
- Generation checks
Generation, generation_v2 and last_snapshot should not be greater than
super generation + 1
- Level and alignment check
Level should be in [0, 7], and bytenr must be aligned to sector size.
- Flags check
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203261
Reported-by: Jungyeon Yoon <jungyeon.yoon@gmail.com>
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/ioctl.c')
0 files changed, 0 insertions, 0 deletions