• Qu Wenruo's avatar
    btrfs: tree-checker: Enhance btrfs_check_node output · bba4f298
    Qu Wenruo authored
    Use inline function to replace macro since we don't need
    stringification.
    (Macro still exists until all callers get updated)
    
    And add more info about the error, and replace EIO with EUCLEAN.
    
    For nr_items error, report if it's too large or too small, and output
    the valid value range.
    
    For node block pointer, added a new alignment checker.
    
    For key order, also output the next key to make the problem more
    obvious.
    Signed-off-by: default avatarQu Wenruo <quwenruo.btrfs@gmx.com>
    [ wording adjustments, unindented long strings ]
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    bba4f298
tree-checker.c 10.5 KB