Re: [PATCH v2] fiemap: Allow to specify range to fiemap

Nikolay Borisov
2017-08-10T16:46:40Z

On 10.08.2017 19:13, Darrick J. Wong wrote:
> We don't decrement len each time through the ioctl loop? Doesn't that
> cause us to request and retrieve rows for ranges we don't want?

Hm, you are right, I believe on every iteration we should do:

len -= last_logical - start_offset