Commit Graph

66 Commits

Author SHA1 Message Date
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 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
Allan Randall 133fdfd9c5 Integrate dmapi suite 1 into xfsqa infrastructure
Merge of master-melb:xfs-cmds:27924a by kenmcd.

  added IRIX to _supported_os
2007-01-16 02:58:21 +00:00
Allan Randall 5dbb6726b4 fixed dmapi mount filter to work on irix
Merge of master-melb:xfs-cmds:27901a by kenmcd.

  Execute bits changed from --- to xxx
  fixed dmapi mount filter to work on irix
2007-01-11 02:56:11 +00:00
Allan Randall ab526a6352 Integrate existing dmapi qa tests into xfs qa infrastructure
Merge of master-melb:xfs-cmds:27764a by kenmcd.

  Dmapi get/set_dmattr
2006-12-19 02:55:36 +00:00
David Disseldorp bf1f86644b moved _mount_ops_minus_o_comma_replace to _mount routine, to filter all mount requests for multiple -o's
Merge of master-melb:xfs-cmds:27199a by kenmcd.
2006-10-16 06:14:00 +00:00
David Disseldorp 7cf9d615bd irix is fussy about how it is fed its mount options
- multiple -o's are not allowed
- no spaces between comma delimitered options
added sed script replaces all -o's (except the first) with a comma
Merge of master-melb:xfs-cmds:27184a by kenmcd.
2006-10-13 03:54:57 +00:00
David Disseldorp eadfa771b1 initialize extra_mount_options as blank string in _check_xfs_filesystem to prevent mount arg duplication every test
Merge of master-melb:xfs-cmds:26931a by kenmcd.

  fixed mount arg duplication causing irix mounts to fail
2006-09-07 04:00:20 +00:00
Allan Randall 981ee2573c Merge relevant CXFSQA tests into XFSQA
Merge of master-melb:xfs-cmds:26631a by kenmcd.
2006-08-04 13:44:58 +00:00
Lachlan McIlroy 808e1903f7 In _xfs_mounted, add quotes around the grep expression to prevent partial matches.
Merge of master-melb:xfs-cmds:26491a by kenmcd.

  In _xfs_mounted, add quotes around the grep expression to prevent partial matches.
2006-07-08 04:23:04 +00:00
Andrew Jones 4800bae8cc The test device is now used as a nfs filesystem.
Merge of master-melb:xfs-cmds:26462a by kenmcd.

  modified this test to run on xfs only.
2006-07-07 16:00:24 +00:00
Nathan Scott a90d78c5da QA updates - make builds on older versions of headers work, reenable rt on bruce.
Merge of master-melb:xfs-cmds:26356a by kenmcd.
2006-06-27 03:49:23 +00:00
Allan Randall b51a45e297 added dd function to handle variations of dd output in Linux
Merge of master-melb:xfs-cmds:25929a by kenmcd.

  added dd function to handle variations of dd output in Linux
2006-05-15 06:10:31 +00:00
Nathan Scott de6d86177f QA test updates - fixes for pquota, extsize, fsstress, and ensure mount options passed through to test_dev.
Merge of master-melb:xfs-cmds:24763a by kenmcd.
2005-12-09 02:52:22 +00:00
Nathan Scott 6a7c05c153 fgrep on IRIX doesnt have a -q flag - so switch to plain grep.
Merge of master-melb:xfs-cmds:23174a by kenmcd.
2005-07-14 03:45:42 +00:00
Nathan Scott 8b5b80690a Add a generic inode flag tester, fix filter in test 103.
Merge of master-melb:xfs-cmds:23132a by kenmcd.
2005-07-11 14:57:36 +00:00
Tim Shimmin 8ee8984492 check for ipath consistency on TEST_DIR between tests.
Merge of master-melb:xfs-cmds:22780a by kenmcd.

  check for ipath consistency on TEST_DIR between tests.
2005-06-02 15:10:00 +00:00
Nathan Scott cc8c86246f Get things working for unusual filesystem types once again.
Merge of xfs-cmds-melb:slinx:19728a by kenmcd.
2004-10-12 15:40:35 +00:00
Nathan Scott aeffbdfb30 Update QA tests and host configs.
Merge of xfs-cmds-melb:slinx:19518a by kenmcd.
2004-09-23 14:34:25 +00:00
Andrew Jones d60075c5e7 Tests from UDFQA ported to FSQA.
simple attr tests for EAs.
2004-09-15 05:57:50 +00:00
fsgqa 25f40eb0b2 Regression test exercising realtime inheritance behavior. 2004-08-20 06:44:08 +00:00
Tim Shimmin 3ee5349e21 add test 093 for testing removal of cap EA on file writes when
process doesn't have FSETID and SETFCAP capabilities.
This is an IRIX only test.
This will check that pv#901019 changes are not stuffing up
what the code was supposed to do.
removal of file caps on write test - pv#901019
2004-08-10 05:43:44 +00:00
ptools d357ecafcc Fixed for UDF tests.
This is a workaround for IRIX UDF not supporting symlinks but Linux UDF does.the new version.
2004-07-28 08:12:22 +00:00
Tim Shimmin 0b6c2dc5b6 Make 074 finish in a reasonable time on IRIX (also on Linux).
Want this to run in a reasonable time.
Make it have different params on IRIX vs Linux, debug versus non-debug.
And allow cmd arguments via getopt to try out different params
for timing.
2004-07-27 05:53:41 +00:00
fsgqa 149fd556bd Realtime IO path tests; get local host configs working again. 2004-07-09 04:16:16 +00:00