diff options
| author | Qu Wenruo <[email protected]> | 2019-07-16 17:00:34 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-09-09 14:59:01 +0200 |
| commit | 259ee7754b6793af8bdd77f9ca818bc41cfe9541 (patch) | |
| tree | 1df9c3d63c8245a1577e546e6c789faf1baba30d /tools/perf/scripts/python/sctop.py | |
| parent | 2a28468e525f3924efed7f29f2bc5a2926e7e19a (diff) | |
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 <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions