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.
XFSQA 073 is still not correctly cleaning up $tmp,
this is because $tmp.source_dir is not an empty dir.
This change recursively deletes everything in $tmp.source_dir.
Not required for $tmp.loop as it is used as a loopback mountpoint.
the ignore external MKFS_OPTIONS change is no longer required,
as _scratch_mkfs_xfs now handles conflicting options.
Merge of master-melb:xfs-cmds:28863a by kenmcd.
This test enables dmapi return_on_destroy and captures dmapi events
generated by two create/removes. One with file attibutes set, one without.
A dmapi destroy event should be generated in both cases, however PV960928
has shown that it may not be when attributes are not set.
Merge of master-melb:xfs-cmds:28771a by kenmcd.
David Disseldorp [Thu, 17 May 2007 15:58:12 +0000 (15:58 +0000)]
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"
Conflicts between mkfs options specified with method 1 & 3 are common.
960377 XFSQA 041, 042 - mkfs fails with large log size MKFS_OPTIONS.
This change means if a mkfs fails where mkfs options have been appended by a test (method 3),
The mkfs is retried using only those options defined by the test.
occurances of method 4 (in test 114 & 115) are also changed to use method 3.
$seq.full logs the fact that a mkfs options conflict has occured.
Merge of master-melb:xfs-cmds:28601a by kenmcd.
append -i parent mkfs option using _scratch_mkfs_xfs -i parent...
rather than export MKFS_OPTIONS="$MKFS_OPTIONS -i parent=1.
this avoids mkfs option conflicts