Commit Graph

866 Commits

Author SHA1 Message Date
David Disseldorp 06fe95c24e Inserting a small (2s) sleep after starting print_event.
Merge of master-melb:xfs-cmds:29094a by kenmcd.
2007-07-09 06:15:49 +00:00
David Disseldorp c483c40dbe remove .full file before running test
Merge of master-melb:xfs-cmds:29091a by kenmcd.
2007-07-06 06:10:31 +00:00
David Disseldorp 0a74286f0a file size consistantcy test
Merge of master-melb:xfs-cmds:29085a by kenmcd.
2007-07-06 04:05:35 +00:00
David Disseldorp 72b4e6cb85 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.
2007-07-03 04:01:25 +00:00
David Disseldorp 9f01882691 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.
2007-06-29 16:06:04 +00:00
David Disseldorp dd3adfb6f0 Avoid mkfs options conflict, use minimal mkfs options to create loopfs.
Merge of master-melb:xfs-cmds:29028a by kenmcd.
2007-06-29 06:16:22 +00:00
Dave Chinner 373683715e Make sure we take into account newly reserved blocks as introduced
in 964468.
Merge of master-melb:xfs-cmds:29013a by kenmcd.
2007-06-28 15:57:56 +00:00
Dave Chinner 15b4c8d2ad QA tests for filestreams
Merge of master-melb:xfs-cmds:29011a by kenmcd.

  QA tests for filestreams
2007-06-28 15:57:11 +00:00
David Disseldorp f2f5c7b9be change galah QA devs & scratch mount point
Merge of master-melb:xfs-cmds:29001a by kenmcd.
2007-06-27 04:06:04 +00:00
Dave Chinner f64b53535e Make sure 167 completes and unmounts scratch correctly
Merge of master-melb:xfs-cmds:28942a by kenmcd.

  run a sync after killing all the fsstress processes to ensure
  they have all completed before trying to unmount scratch.
2007-06-20 06:15:19 +00:00
Dave Chinner 812b331b29 Clean up whitespace problems with 166.
Merge of master-melb:xfs-cmds:28941a by kenmcd.

  Don't leave trailing whitespace at EOL when filtering output.
2007-06-20 06:14:34 +00:00
Dave Chinner 243826007f add null files tests to auto group
Merge of master-melb:xfs-cmds:28940a by kenmcd.

  leave bad files around for post mortem on failure.
2007-06-20 06:13:49 +00:00
David Disseldorp 1d315d6785 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.

  cleanup tmp and don't kill mkfs options
2007-06-08 16:24:08 +00:00
David Disseldorp 888b474e69 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.

  test
2007-06-04 06:13:28 +00:00
Dave Chinner b4b13ee325 Make sure the repair tests dirty the filesystem before corrupting it.
Merge of master-melb:xfs-cmds:28770a by kenmcd.

  Make sure the repair tests dirty the filesystem before corrupting it.
2007-06-04 06:12:42 +00:00
Dave Chinner 707df41353 QA test to exercise unwritten extent conversion for sync direct I/O
Merge of master-melb:xfs-cmds:28769a by kenmcd.

  QA test to exercise unwritten extent conversion for sync direct I/O.
2007-06-04 06:11:56 +00:00
fergalh.longdrop.melbourne.sgi.com 512f8130f2 Changed kermit xfsqa targets
Merge of master-melb:xfs-cmds:28706a by kenmcd.

  Changed kermit xfsqa targets
2007-05-25 06:07:23 +00:00
leenap.longdrop.melbourne.sgi.com 8876ff2c2d Adding devices for rizzo to do xfs-qa
Merge of master-melb:xfs-cmds:28644a by kenmcd.

  Adding devices for rizzo to do xfs-qa
2007-05-22 04:03:50 +00:00
David Disseldorp cf13e80eb4 test 121 creates unlinked and still referenced inodes, it doesn't clean up afterwards.
Merge of master-melb:xfs-cmds:28637a by kenmcd.

  do a mount after running test to trigger log recovery
  \.
2007-05-21 15:48:58 +00:00
David Disseldorp 471ab9011a check for mkfs/mount failure
Merge of master-melb:xfs-cmds:28623a by kenmcd.
2007-05-18 06:08:08 +00:00
David Disseldorp 498eb16b55 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
2007-05-17 15:58:12 +00:00
David Disseldorp db395db976 fix group listing regexp
Merge of master-melb:xfs-cmds:28513a by kenmcd.

  add dmapi group
2007-05-04 06:10:34 +00:00
Dave Chinner 99120c4055 QA test to demonstrate unwritten extent/mmap write problem
Merge of master-melb:xfs-cmds:28456a by kenmcd.

  mmap vs unwritten extents test.
2007-04-23 16:00:46 +00:00
David Disseldorp d0ee0a78a2 fix white space between comments
Merge of master-melb:xfs-cmds:28446a by kenmcd.
2007-04-20 03:59:56 +00:00
David Disseldorp b696ad7802 A bit of a cleanup of common.config and add new QA host.
Merge of master-melb:xfs-cmds:28444a by kenmcd.
2007-04-20 03:59:08 +00:00