Re: [PATCH v2] generic: test fiemap offsets and < 512 byte ranges

2021-04-07 Thread Boris Burkov
On Wed, Apr 07, 2021 at 09:10:46AM -0700, Darrick J. Wong wrote: > On Tue, Apr 06, 2021 at 03:54:29PM -0700, Boris Burkov wrote: > > btrfs trims fiemap extents to the inputted offset, which leads to > > inconsistent results for most inputs, and downright bizarre outputs like > > [7..6] when the tri

Re: [PATCH v2] generic: test fiemap offsets and < 512 byte ranges

2021-04-07 Thread Darrick J. Wong
On Tue, Apr 06, 2021 at 03:54:29PM -0700, Boris Burkov wrote: > btrfs trims fiemap extents to the inputted offset, which leads to > inconsistent results for most inputs, and downright bizarre outputs like > [7..6] when the trimmed extent is at the end of an extent and shorter > than 512 bytes. > >

[PATCH v2] generic: test fiemap offsets and < 512 byte ranges

2021-04-06 Thread Boris Burkov
btrfs trims fiemap extents to the inputted offset, which leads to inconsistent results for most inputs, and downright bizarre outputs like [7..6] when the trimmed extent is at the end of an extent and shorter than 512 bytes. This test covers a bunch of cases like that and ensures that file systems