summaryrefslogtreecommitdiff
path: root/disk-io.h
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-06-05 14:39:10 +0300
committerDavid Sterba <dsterba@suse.com>2018-08-06 15:01:32 +0200
commite444c7bfa65fcc71cfe73eda53f27bb8dc41edb2 (patch)
treeced09e75b039953480bac208bc3765b29ab60f2a /disk-io.h
parent43ec2761dca211dfd18d5b26afdd7c07036539fe (diff)
btrfs-progs: check: Fix wrong error message in case of corrupted extent
When btrfs check detects a freespace tree extent which ends beyond the blockgroup containing it a misleading error messages is printed. For example if we have the following extent in the freespace tree: item 5 key (30408704 FREE_SPACE_INFO 1073741824) itemoff 16259 itemsize 8 free space info extent count 3 flags 0 item 6 key (30425088 FREE_SPACE_EXTENT 49152) itemoff 16259 itemsize 0 free space extent item 7 key (30507008 FREE_SPACE_EXTENT 65536) itemoff 16259 itemsize 0 free space extent item 8 key (30654464 FREE_SPACE_EXTENT 14524648038063310901) itemoff 16259 itemsize 0 Clearly the last extent is corrupted so we should print something along the lines of: free space extent ends at 14524648038063310901, beyond end of block group 30408704-1104150528 Instead currently this is printed: free space extent ends at 30654464, beyond end of block group 30408704-1104150528 So instead of printing the actual erroneous end, we print the beginning of the extent. Fix this by printing the actual corrupted end. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'disk-io.h')
0 files changed, 0 insertions, 0 deletions