[PATCH] btrfs-progs: check: Fix wrong error message in case of corrupted extent

2018-06-05 Thread Nikolay Borisov
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

Re: [PATCH] btrfs-progs: check: Fix wrong error message in case of corrupted extent

2018-06-05 Thread Su Yue
On 06/05/2018 07:39 PM, Nikolay Borisov wrote: > 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_

Re: [PATCH] btrfs-progs: check: Fix wrong error message in case of corrupted extent

2018-07-05 Thread David Sterba
On Tue, Jun 05, 2018 at 02:39:10PM +0300, Nikolay Borisov wrote: > 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 (3040