Thread (5 messages) 5 messages, 3 authors, 2014-07-29

Re: [PATCH v2] btrfs: Return right extent when fiemap gives unaligned offset and len.

From: David Sterba <hidden>
Date: 2014-07-29 11:36:18

On Fri, Jul 25, 2014 at 09:49:03AM +0800, Qu Wenruo wrote:
When page aligned start and len passed to extent_fiemap(), the result is
good, but when start and len is not aligned, e.g. start = 1 and len =
4095 is passed to extent_fiemap(), it returns no extent.

The problem is that start and len is all rounded up which causes the
problem. This patch will round down start and round up (start + len) to
return right extent.

Reported-by: Chandan Rajendra <redacted>
Signed-off-by: Qu Wenruo <redacted>
Reviewed-by: David Sterba <redacted>
---
changelog:
v2: reword the description(ALIGN rounds up, not rounds down).
JFYI, if you're just rewording the changelog, you can keep the
reviewed-by tags.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help