Files
apfstests/dmapi
Donald Douwsma 36763daef8 fix XFSQA 145 / test_hole
There are two errors I see all the time in 145:

 - dm_probe_hole returns EINVAL for offsets close to the file size
 - dm_probe_hole wants EAGAIN for a probe at offset 1, length 0


The first error is a consequence of how the hole puching / probing
works.  It always rounds the requested offset up to the next block
size and then checks if that rounded offset still fits into the file
size.  Just do the same rounding in the testcase to make sure we don't
probe invalid offsets.

The second error is very odd to me, as we never return AGAIN in the
whole dm_probe_hole path.  I've just commented it out.

I've also re-enabled the E2BIG to past-EOF test that was uncommented
before because it works perfectly fine now.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:31330a by kenmcd.

  fix XFSQA 145 / test_hole
2008-06-18 16:09:09 +00:00
..
2008-06-18 16:09:09 +00:00
2007-01-02 14:38:56 +00:00

The tests in this directory are a collection of suites that were developed
over the time the DMAPI spec was being created and when DMAPI was being
implemented on Irix.  In many cases, each suite was built on an earlier suite.
Many of these tests have been ported to work with XFS/DMAPI on linux 2.4; many
are untouched from their Irix versions.