Commit Graph

964 Commits

Author SHA1 Message Date
Dave Chinner 7e47b27f05 Fix pathname filter issue.
If the path to the file being bmap'd has a [0-9] in it,
the output filter matches it and we get golden output
failure. Be more specific on the match.
Merge of master-melb:xfs-cmds:31170a by kenmcd.

  Be more specific when trying to match extent output lines.
2008-05-15 16:38:14 +00:00
Dave Chinner 247f0f7d14 Don't use /tmp for hosting loopback images
/tmp might be small, might not support files larger than 2GB,
etc, so trying to host loopback images of 100GB filesystems
will break in some situations. We should use $TEST_DIR for the
images.

Note: remounting of loopback images has a major bug (in mount)
that "leaks" loopback device references. Hence all the hackery
with losetup to work around this.
Merge of master-melb:xfs-cmds:31169a by kenmcd.

  Don't use /tmp for hosting loopback images
2008-05-15 16:37:27 +00:00
Dave Chinner 60f3da6dc9 With the recent change for reliability with 64k page size
made to test 008,the file sizes got much larger. It appears
that randholes actually reads the entire file, so this has
slowed the test down by a factor of ten (all file sizes
were increased by 10x). This means the test is now taking
about 18 minutes to run on a UML session, and all the time
is spent reading the files.

Instead, scale the file size based on the page size. We know
how many holes we are trying to produce and the I/O size
being used to produce them, so the size of the files can be
finely tuned. Assuming a decent random distribution, if the
number of blocks in the file is 4x the page size and the
I/O size is page sized, this means that every I/O should
generate a new hole and we'll only get a small amount of
adjacent extents. This has passed over 10 times on ia64
w/ 64k page and another 15 times on UML with 4k page.

UML runtime is down from ~1000s to 5s, ia64 runtime is down from
~30s to 7s.
Merge of master-melb:xfs-cmds:31168a by kenmcd.

  Greatly reduce runtime by reducing filesizes down to sane minimum.
2008-05-15 16:36:40 +00:00
Mohamed Barwani 38e49e4e15 Test 180 breaks if you have long device paths
Use -P for df to fix it

       -P, --portability
              use the POSIX output format
Merge of master-melb:xfs-cmds:31162a by kenmcd.

  fix df for long /dev paths
2008-05-15 04:23:55 +00:00
Dave Chinner 48a9f9463f Fix silly "unmount" typo in dmapi test.
Merge of master-melb:xfs-cmds:31069a by kenmcd.

  Fix silly "unmount" typo in dmapi test.
2008-05-13 04:21:15 +00:00
Tim Shimmin 3d8fcfcfc3 Sample the log traffic to work out its data rate so that we
have a better idea of predicting when it will get to the end
of the log. This way we can handle a change in log traffic in
the future. A test to keep an eye on log traffic is more of
a performance test than should be done elsewhere.
Merge of master-melb:xfs-cmds:31053a by kenmcd.

  Sample the log traffic to work out its data rate so that we
  have a better idea of predicting when it will get to the end
  of the log. This way we can handle a change in log traffic in
  the future.
2008-05-09 04:38:54 +00:00
Tim Shimmin 4bd0a41d83 Filter out onlink (because of v2 inodes by default) and gen# (because of random generation).
Merge of master-melb:xfs-cmds:31049a by kenmcd.

  Filter out onlink (because of v2 inodes by default) and gen# (because of random generation).
2008-05-09 04:37:54 +00:00
Dave Chinner bc53e6b75d Correctly detect if dmapi is present of not in tests 175-177
Merge of master-melb:xfs-cmds:31032a by kenmcd.

  Correctly detect if dmapi is present.
2008-05-08 04:11:07 +00:00
Dave Chinner df8a627e44 Use standard awk comment format.
Merge of master-melb:xfs-cmds:31031a by kenmcd.

  Use standard awk comment format.
2008-05-08 04:10:08 +00:00
Barry Naujok acd3e44ecf Add support for sb_bad_features2 in QA 122
Merge of master-melb:xfs-cmds:31022a by kenmcd.

  Add support for sb_bad_features2 in superblock structure
2008-05-05 06:25:29 +00:00
Tim Shimmin 946e45ce9f automake doesn't have "default" target but uses "all" target instead
Merge of master-melb:xfs-cmds:31021a by kenmcd.

  automake doesn't have "default" target but uses "all" target instead
2008-05-05 06:24:38 +00:00
Tim Shimmin f7e9207c9d regenerate dmapi Makefile in using automake
Merge of master-melb:xfs-cmds:31014a by kenmcd.

  regenerate using aclocal
2008-05-01 16:34:55 +00:00
Tim Shimmin 8d49d8da48 Test out the fix for 980021 for checking that noattr2 is now working.
Merge of master-melb:xfs-cmds:31004a by kenmcd.

  check that noattr2 mount option works
2008-04-29 06:17:23 +00:00
Dave Chinner 2a415066f7 Fix intermittent failure on 64k pagesize
Files are too small for 64k sized I/Os to reliably produce 50
extents +/-10%. Increase the size of the files to increase
reliability.
Merge of master-melb:xfs-cmds:30996a by kenmcd.

  Fix intermittent failure on 64k pagesize.
2008-04-28 16:26:35 +00:00
Dave Chinner c649168f05 fix filter for stripe aligned filesystems
Flags has extra bits set in it xfs_bmap output when
the filesyste is using stripe alignment. Fix the test
to only look at the unwritten flag. Capture the xfs_bmap
output as well so failures can be debugged easily.
Merge of master-melb:xfs-cmds:30994a by kenmcd.

  fix filter for stripe aligned filesystems.
2008-04-28 06:26:58 +00:00
Dave Chinner 168ee563f6 Use configured XFS_IO_PROG binary
We should use XFS_IO_PROG variable rather than calling xfs_io
directly and relying on teh path to pick up the correct binary
for the test.
Merge of master-melb:xfs-cmds:30993a by kenmcd.

  Use XFS_IO_PROG, not xfs_io.
2008-04-28 06:26:10 +00:00
Dave Chinner 80b2c990d0 xfsqa 165 - fails if environment LANG != C
Merge of master-melb:xfs-cmds:30992a by kenmcd.

  export the language that all tests will run under to prevent
  language settings from affecting test output and giving
  spurious failures when comparing against golden output.
2008-04-28 06:25:22 +00:00
Tim Shimmin 842ac7ab6e Test out bug in xfs_attr_shortform_bytesfit for its use of m_attroffset
instead of di_forkoff.
Merge of master-melb:xfs-cmds:30863a by kenmcd.

  Test out bug in xfs_attr_shortform_bytesfit for its use of m_attroffset
  instead of di_forkoff.
2008-04-14 06:17:54 +00:00
Dave Chinner 8de94fc04c Fix the filtering of xfsinfo by punting stdout to /dev/null.
Merge of master-melb:xfs-cmds:30837a by kenmcd.

  Fix the filtering of xfsinfo by punting stdout to /dev/null.
2008-04-10 06:20:11 +00:00
Dave Chinner 9b1a4bd08e xfsqa 185 shouldn't have uninitialised variables in the golden output
Kill the output of uninitialised values when punching a hole.
This prevents the test from passing on just about everything.
Merge of master-melb:xfs-cmds:30762a by kenmcd.

  remove roffp and rlenp output for punch operations.
2008-04-08 06:20:04 +00:00
Dave Chinner a4d1721436 Test 091 fails on sector size != 512 bytes
Test 091 assumes a direct I/O alignment of 512 bytes,
a hold over from 2.4 kernels. On 2.6. kernels, direct
I/O needs to be aligned to the sector size the filesystem
was mkfs'd with.
Merge of master-melb:xfs-cmds:30760a by kenmcd.

  Teach 091 about 2.6 kernels and grab the sector size from the
  xfs_info output.
2008-04-08 04:00:40 +00:00
Mohamed Barwani 6d91bcc8b9 Update ln filter to work with ln (version < 6.x)
Merge of master-melb:xfs-cmds:30759a by kenmcd.

  added a regular expression on the filter to check before replacing.
2008-04-08 03:59:48 +00:00
Niv Sardi 9a3b0f6db9 Finish TAKE, the last one lacked the Makefile modifications.
Merge of master-melb:xfs-cmds:30720a by kenmcd.
2008-03-27 03:18:28 +00:00
Tim Shimmin 89c6e8060f add dump/restore paths to xfstests/common.dump and set up path for bc
Merge of master-melb:xfs-cmds:30712a by kenmcd.

  add dump/restore paths to xfstests/common.dump and set up path for bc
2008-03-26 03:28:24 +00:00
Dave Chinner d810cfac14 XFSQA 103: filter ln output
More recent versions of ln (version >= 6.0) have a different error
output. update the filter to handle this.
Merge of master-melb:xfs-cmds:30705a by kenmcd.

  update filter to handle new ln error output.
2008-03-26 03:27:32 +00:00