Commit Graph

910 Commits

Author SHA1 Message Date
Mohamed Barwani 7ff104a124 Add the new tests and their golden outputs.
Merge of master-melb:xfs-cmds:29445a by kenmcd.

  New Test
2007-08-21 04:03:50 +00:00
Lachlan McIlroy 53a2bd6253 Test that fsync/sync force file size changes to disk.
Merge of master-melb:xfs-cmds:29441a by kenmcd.

  Test that fsync forces file size changes to disk.
2007-08-20 06:19:41 +00:00
David Disseldorp 2ef519a6fb 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.
2007-08-17 16:09:29 +00:00
Mohamed Barwani a1c1adcc16 Modify golden output to match different Maximum file blocks for 32 & 64 bit systems
Merge of master-melb:xfs-cmds:29391a by kenmcd.

  enhanced the filter function
2007-08-15 04:16:05 +00:00
Mohamed Barwani 6155908c0e make sure the test shows any garbage output.
Merge of master-melb:xfs-cmds:29378a by kenmcd.

  Add the modified filter that was removed from common.dmapi
2007-08-13 15:55:13 +00:00
Lachlan McIlroy faf7cf20e1 Modify dassi QA scratch device
Merge of master-melb:xfs-cmds:29356a by kenmcd.

  Modify dassi QA scratch device
2007-08-09 04:10:08 +00:00
Vlad Apostolov 1150f6c3ba pv 968773, author Chris Pascoe <c.pascoe@itee.uq.edu.au>, rv vapo - minor fixes for XFS DMAPI tests
Merge of master-melb:xfs-cmds:29348a by kenmcd.

  pv 968773, author Chris Pascoe <c.pascoe@itee.uq.edu.au>, rv vapo - minor fixes for XFS DMAPI tests
2007-08-08 07:54:05 +00:00
Vlad Apostolov a579284225 pv 964111, rv lachlan - > attrname[DM_ATTR_NAME_SIZE] = '\0'; /* terminate the string */
Merge of master-melb:xfs-cmds:29347a by kenmcd.

  pv 964111, rv lachlan - terminate attribute name string
2007-08-08 07:53:19 +00:00
Mohamed Barwani 6609e351bd modify galah machine configuration.
Merge of master-melb:xfs-cmds:29336a by kenmcd.

  add log devices.
2007-08-06 04:01:50 +00:00
Mohamed Barwani 36dae2cafd add -r to killall in order kill fsstress & lt-fsstress
Merge of master-melb:xfs-cmds:29307a by kenmcd.

  add -r to killall
2007-08-02 16:19:56 +00:00
Mohamed Barwani 8e5b8c11c4 XFSQA 171 should be _notrun on irix
Merge of master-melb:xfs-cmds:29302a by kenmcd.

  remove irix as a supported os
2007-08-02 16:19:12 +00:00
Barry Naujok 261f11963d Fix up mode bits
Merge of master-melb:xfs-cmds:29299a by kenmcd.

  Execute bits changed from --- to xxx
  Fix up mode xbits for test
2007-08-02 06:20:52 +00:00
Barry Naujok 47ce499d64 Fix up QA for xfsprogs 2.9.x
Merge of master-melb:xfs-cmds:29298a by kenmcd.

  Golden output is slightly wrong for xfs_repair 2.9.2+
2007-08-02 06:20:02 +00:00
Mohamed Barwani f9ab891b3a Create test 178 as described by bnaujok.
Merge of master-melb:xfs-cmds:29273a by kenmcd.

  New Test
2007-07-30 15:59:01 +00:00
Lachlan McIlroy d671606385 Fix build failure.
Merge of master-melb:xfs-cmds:29235a by kenmcd.

  Fix build failure.
2007-07-26 21:25:32 +00:00
David Disseldorp 4459267d2c use dd and lmdd for proper direct/buffered IO on linux and irix
Merge of master-melb:xfs-cmds:29214a by kenmcd.
2007-07-24 16:08:47 +00:00
Mohamed Barwani b1d0b1cb9d intigrate bulkstat_unlink_test into XFS-QA
Merge of master-melb:xfs-cmds:29213a by kenmcd.

  New XFSQA test
2007-07-24 16:08:02 +00:00
David Disseldorp 2bf01dc5c4 - 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.
2007-07-20 04:11:09 +00:00
Barry Naujok 9d0da8e0da Update QA tests for new lost+found behaviour
Merge of master-melb:xfs-cmds:29145a by kenmcd.

  Update QA tests for new lost+found behaviour
2007-07-16 15:54:28 +00:00
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