]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: Add query fiemap count test.
authorTao Ma <tao.ma@oracle.com>
Tue, 4 May 2010 06:01:00 +0000 (16:01 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 May 2010 06:01:00 +0000 (16:01 +1000)
commitc42a04c2731b1990de8bad535fc260862291ffa7
tree49c84db17ed0a8cf74111b3258aaec0a34f84aa9
parent3f99d8741831b78cfbf35cd1a305e54445997431
xfstests: Add query fiemap count test.

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.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Reviewed-by: Dave Chinner <david@fromorbit.com>
src/fiemap-tester.c