[BACK]Return to 145.out CVS log [TXT][DIR] Up to [Development] / xfs-cmds / xfstests

File: [Development] / xfs-cmds / xfstests / 145.out (download)

Revision 1.2, Wed Jun 18 16:09:09 2008 UTC (9 years, 3 months ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines

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

QA output created by 145
Hole test beginning...
	Time stamp unchanged by hole from offset 28672.
	Verified hole at 28672
	Time stamp unchanged by hole from offset 24576.
	Verified hole at 24576
	Time stamp unchanged by hole from offset 20480.
	Verified hole at 20480
	Time stamp unchanged by hole from offset 16384.
	Verified hole at 16384
	Time stamp unchanged by hole from offset 12288.
	Verified hole at 12288
	Time stamp unchanged by hole from offset 8192.
	Verified hole at 8192
	Time stamp unchanged by hole from offset 4096.
	Verified hole at 4096
	(beginning errno subtests...)
	report on test for E2BIG in probe (from past EOF): test successful
	report on test for E2BIG in probe (to past EOF): test successful
	report on test for EACCES in no-right probe: test successful
	report on test for success in SHARED probe: test successful.
	report on test for success in EXCL probe: test successful.
	report on test for EACCES in no-right punch: test successful
	report on test for EACCES in SHARED punch: test successful
	report on test for success in EXCL punch: test successful.
	report on test for EBADF in probe: test successful
	report on test for EBADF in punch: test successful
	report on test for EFAULT in probe (null handle): test successful
	report on test for EFAULT in probe (bad rlen): test successful
	report on test for EFAULT in probe (bad roff): test successful
	report on test for EFAULT in punch: test successful
	report on test for EINVAL in probe (bad session): test successful
	report on test for EINVAL in probe (bad token): test successful
	report on test for EINVAL in probe (bad token 2): test successful
	(errno subtests complete)
Hole test complete.