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

2014-07-28 Thread Satoru Takeuchi
Hi Qu, (2014/07/25 17:16), Qu Wenruo wrote: Original Message Subject: Re: [PATCH v2] btrfs: Return right extent when fiemap gives unaligned offset and len. From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com To: Qu Wenruo quwen...@cn.fujitsu.com, linux-btrfs@vger.kernel.org

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

2014-07-25 Thread Satoru Takeuchi
Hi Qu, (2014/07/25 10:49), 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

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

2014-07-25 Thread Qu Wenruo
Original Message Subject: Re: [PATCH v2] btrfs: Return right extent when fiemap gives unaligned offset and len. From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com To: Qu Wenruo quwen...@cn.fujitsu.com, linux-btrfs@vger.kernel.org Date: 2014年07月25日 15:52 Hi Qu, (2014/07/25

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

2014-07-24 Thread Qu Wenruo
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