Re: [PATCH 2/2] xfstests,btrfs/004: use FILEFRAG_PROG macro

2014-10-07 Thread Dave Chinner
On Wed, Oct 08, 2014 at 01:31:24PM +0800, Wang Shilong wrote: > Cc list > > > On Wed, Oct 08, 2014 at 06:35:22AM -0400, Wang Shilong wrote: > >>> Signed-off-by: Wang Shilong > >>> --- > >>> i didn't find a way to remove filefrag here, but let us > >>> use macro firstly... > >> > >> YOu shoul dbe

Re: [PATCH 2/2] xfstests,btrfs/004: use FILEFRAG_PROG macro

2014-10-07 Thread Wang Shilong
Cc list > On Wed, Oct 08, 2014 at 06:35:22AM -0400, Wang Shilong wrote: >>> Signed-off-by: Wang Shilong >>> --- >>> i didn't find a way to remove filefrag here, but let us >>> use macro firstly... >> >> YOu shoul dbe able to use fiemap to calculate the same output. >> i.e. _check_file_extents()

Re: [PATCH 2/2] xfstests,btrfs/004: use FILEFRAG_PROG macro

2014-10-07 Thread Dave Chinner
On Wed, Oct 08, 2014 at 06:35:22AM -0400, Wang Shilong wrote: > Signed-off-by: Wang Shilong > --- > i didn't find a way to remove filefrag here, but let us > use macro firstly... YOu shoul dbe able to use fiemap to calculate the same output. i.e. _check_file_extents() outputs a strings of the for

[PATCH 2/2] xfstests,btrfs/004: use FILEFRAG_PROG macro

2014-10-07 Thread Wang Shilong
Signed-off-by: Wang Shilong --- i didn't find a way to remove filefrag here, but let us use macro firstly... --- tests/btrfs/004 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/btrfs/004 b/tests/btrfs/004 index 1d5b816..1f59963 100755 --- a/tests/btrfs/004 +++ b/tests/