[PATCH] xfstests: Add query fiemap count test.

Dave Chinner david at fromorbit.com
Thu Apr 29 00:35:14 CDT 2010


On Wed, Apr 28, 2010 at 02:50:50PM +0800, Tao Ma wrote:
> According to Documentation/filesystems/fiemap.txt, If fm_extent_count
> is zero, then the fm_extents[] array is ignored (no extents will be
> returned), and the fm_mapped_extents count will hold the number of
> extents needed.
> 
> This is broken by commit 97db39a1f6f69e906e98118392400de5217aa33a.
> So add this test case in fiemap tester to avoid future regression.
> 
> Cc: Dave Chinner <david at fromorbit.com>
> Cc: Eric Sandeen <sandeen at redhat.com>
> Cc: Christoph Hellwig <hch at lst.de>
> Cc: Alex Elder <aelder at sgi.com>
> Signed-off-by: Tao Ma <tao.ma at oracle.com>

Looks ok. Just running for a test and if I don't see any problems,
then I'll check it in. Thanks for the fix and the test, Tao. ;)

Cheers,

Dave.
-- 
Dave Chinner
david at fromorbit.com




More information about the xfs mailing list