Tim Shimmin [Fri, 9 May 2008 04:38:54 +0000 (04:38 +0000)]
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.
Dave Chinner [Mon, 28 Apr 2008 16:26:35 +0000 (16:26 +0000)]
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.
Dave Chinner [Mon, 28 Apr 2008 06:26:58 +0000 (06:26 +0000)]
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.
Dave Chinner [Mon, 28 Apr 2008 06:26:10 +0000 (06:26 +0000)]
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.
Dave Chinner [Mon, 28 Apr 2008 06:25:22 +0000 (06:25 +0000)]
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.
Dave Chinner [Tue, 8 Apr 2008 06:20:04 +0000 (06:20 +0000)]
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.
Dave Chinner [Tue, 8 Apr 2008 04:00:40 +0000 (04:00 +0000)]
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.
Dave Chinner [Wed, 26 Mar 2008 03:27:32 +0000 (03:27 +0000)]
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.
Dave Chinner [Tue, 25 Mar 2008 05:20:38 +0000 (05:20 +0000)]
Make test 141 work on 64k page size machines
Make the file larger and read 64k from it instead of 16k
so that it pulls in a full page from the middle of the file.
Merge of master-melb:xfs-cmds:30703a by kenmcd.
Use a large file and 64k I/O size so the test works on 64k page
size machines.
Dave Chinner [Tue, 25 Mar 2008 05:19:50 +0000 (05:19 +0000)]
xfsqa test 166 fails on 64k page machine
test 166 output is dependent on page size (mmap related). Make
the output filter turn the output into something independent of
page size whilst checking that the output is valid.
Merge of master-melb:xfs-cmds:30702a by kenmcd.
Make the file size and I/O size large enough that 64k pages are
handled correctly.
Niv Sardi [Wed, 12 Mar 2008 05:22:38 +0000 (05:22 +0000)]
introducing lsqa.pl [ --help | -? ] [ --head | -h ] [ --body | -b ] [ --lines | -l ] [ --one-line | -1 ]
[ --help | -? ] Show this help message.
[ --head | -h ] Shows only the head of the QA test
[ --body | -b ] Shows only the body of the QA test.
[ --lines | -l ] Outputs everything in n lines
[ --one-line | -1 ] Same as --lines=1.
Merge of master-melb:xfs-cmds:30646a by kenmcd.
Niv Sardi [Wed, 27 Feb 2008 03:22:03 +0000 (03:22 +0000)]
Update xfstests for new mkfs output
Update test 082 for new filtred output
Update test 081 for new filtred output
Update test 018 for new filtred output
xfstests: filter out logprint inode version (and format)
Merge of master-melb:xfs-cmds:30583a by kenmcd.
Niv Sardi [Fri, 26 Oct 2007 16:08:10 +0000 (16:08 +0000)]
Refresh golden output for test 177
Some changes in the bulkstat binary test (see former commits)
change the output of 177, here is the refreshed one.
SGI-Git-Id: 21f80cf802b520f713d8fc78a871af623acd77f1
SGI-Git-Author: Niv Sardi-Altivanik <xaiki@chook.melbourne.sgi.com>
SGI-Git-Date: Wed, 24 Oct 2007 15:54:46 +1000
Merge of master-melb:xfs-cmds:29969a by kenmcd.
Niv Sardi [Fri, 26 Oct 2007 16:06:38 +0000 (16:06 +0000)]
Refresh golden output for test 177
Some changes in the bulkstat binary test (see former commits)
change the output of 177, here is the refreshed one.
SGI-Git-Id: b1579451b2454e6a9893ad43c7d3de5f6a8a336c
SGI-Git-author: Niv Sardi-Altivanik <xaiki@chook.melbourne.sgi.com>
SGI-Git-date: Wed, 24 Oct 2007 15:54:46 +1000
Merge of master-melb:xfs-cmds:29966a by kenmcd.
Niv Sardi [Fri, 26 Oct 2007 16:05:51 +0000 (16:05 +0000)]
Add QA test 183
(whitespace cleanups)
This test calls the new bulkstat_unlink_test with the -r switch
The patch contains the test, as well as the golden output.
SGI-Git-Id: a0d3341757e6013feaed7f630f3afc061f743059
SGI-Git-author: Niv Sardi-Altivanik <xaiki@chook.melbourne.sgi.com>
SGI-Git-date: Wed, 24 Oct 2007 15:52:25 +1000
Merge of master-melb:xfs-cmds:29965a by kenmcd.
Niv Sardi [Fri, 26 Oct 2007 16:05:04 +0000 (16:05 +0000)]
Add -r switch to src/bulkstat_unlink_test.c needed for QA test 183
(whitespace cleanups)
This patch adds a -r switch (using getopt as suggested by dchinner)
to src/bulkstat_unlink_test.c, that will implement the additional checks
described by vlad in PV 972128.
Basically we:
* Save the inode count in scount.
* Create nfiles new files (passed as argument).
* Open those nfiles.
* Unlink the files.
* Check that the inode count is greater than scount.
* close the files.
* Check that the inode count is the same as scount.
This patch also introduces more info on failure (Line number and file) before the exit()s, as well
as comments describing what we are doing.
This patch is to be used by QA test 183
SGI-Git-Id: 4ab8fa354f79070b4ba87cb09c4326d62da824fd
SGI-Git-author: Niv Sardi-Altivanik <xaiki@chook.melbourne.sgi.com>
SGI-Git-date: Wed, 24 Oct 2007 13:24:27 +1000
Merge of master-melb:xfs-cmds:29964a by kenmcd.
Tim Shimmin [Mon, 17 Sep 2007 06:14:40 +0000 (06:14 +0000)]
test out xfs_inactive_attrs in log replay for iunlink processing.
Merge of master-melb:xfs-cmds:29701a by kenmcd.
Update args to use command options for multi_open_unlink.
Change a sleep to a wait as we were just sleeping to account
for the death of a process - should really wait for its death.
David Disseldorp [Fri, 17 Aug 2007 16:09:29 +0000 (16:09 +0000)]
new common.punch file for exercising various hole punch functions,
_test_punch the main test function follows the procedure:
- mkfs & mount scratch
- optionally set files extent size hint
- truncate and optionally resvsp
- write or punch to file in specified order at given offsets & lengths
- display the file state (bmap) after each operation
All sizes, offsets and lengths are specified in FS blocks.
Problems may arise on non bash shells due to array usage.
Merge of master-melb:xfs-cmds:29434a by kenmcd.
David Disseldorp [Fri, 20 Jul 2007 04:11:09 +0000 (04:11 +0000)]
- OS common filestreams timeout change function
- use xfs_io instead of dd (working direct io)
- no filestreams directory flags, just use the mount option
Merge of master-melb:xfs-cmds:29185a by kenmcd.
A recent change to XFSQA to resolve mkfs option conflicts means mkfs can be run twice per _scratch_mkfs_xfs:
$MKFS_XFS_PROG $SCRATCH_OPTIONS $MKFS_OPTIONS $extra_mkfs_options $SCRATCH_DEV
local mkfs_status=$?
# a mkfs failure may be caused by conflicts between
# $MKFS_OPTIONS and $extra_mkfs_options
if [ $mkfs_status -ne 0 -a ! -z "$extra_mkfs_options" ]; then
echo "** mkfs failed with extra mkfs options added to \"$MKFS_OPTIONS\" by test $seq **" \
>>$here/$seq.full
echo "** attempting to mkfs using only test $seq options: $extra_mkfs_options **" \
>>$here/$seq.full
$MKFS_XFS_PROG $SCRATCH_OPTIONS $extra_mkfs_options $SCRATCH_DEV
mkfs_status=$?
fi
In the case of a failure caused by conflict between $MKFS_OPTIONS and $extra_mkfs_options,
the mkfs output is shown twice, first off is the failed mkfs output, secondly the resolved mkfs output.
This can cause QA failures for a number of tests, particularly those that filter the mkfs output.
This change shows only the applied (final) mkfs output from _scratch_mkfs_xfs.
Merge of master-melb:xfs-cmds:29041a by kenmcd.
David Disseldorp [Fri, 29 Jun 2007 16:06:04 +0000 (16:06 +0000)]
For XFSQA test 018 081 082 095 the test specifies test wide mkfs options using MKFS_OPTIONS env var.
Further mkfs options are then appended by _mkfs_log at mkfs time with _scratch_mkfs_xfs.
Currently there are a few ways mkfs options are specified in XFSQA:
1) suite wide MKFS_OPTIONS are specified before tests are run
e.g.
vimes:/home/fsgqa/kali/xfsqa/xfstests # export MKFS_OPTIONS="-l size=100m"
2) test wide MKFS_OPTIONS are specified during a particular test
e.g. 119
export MKFS_OPTIONS="-l version=2,size=1200b,su=64k"
3) mkfs options are appended by a test at mkfs time
e.g. 083
_scratch_mkfs_xfs -dsize=$fsz,agcount=$ags >>$seq.full
(4) Another form of appending is just appending to MKFS_OPTIONS directly
e.g. 114:export MKFS_OPTIONS="$MKFS_OPTIONS -i parent=1"
115:export MKFS_OPTIONS="$MKFS_OPTIONS -i paths=1"
e.g. Methods (2) *and* (3) for specifiying mkfs options are used in these tests.
This causes problems, because the mkfs options fallback code assumes the
_mkfs_log _scratch_mkfs_xfs appended options are the only test specified options.
This change causes tests using _mkfs_log to only use option (2).
~
~
Merge of master-melb:xfs-cmds:29031a by kenmcd.