Commit Graph

26 Commits

Author SHA1 Message Date
Boris Ranto b748511b81 016: Do not discard blocks at mkfs time
The test 016 fills scratch device with some data and then creates xfs fs
on the scratch device. Later, the test assumes that the previously
written data are still written there and checks for them at specific
locations. On ssd drive this will lead to a failure since the blocks are
discarded by default when the mkfs command is run.
This is a more verbose version of the previous patch.
This simple patch that adds -K to stop the discarding (if the mkfs
command supports it) fixed the issue for me:

Signed-off-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
2012-05-30 17:39:29 -05:00
Dave Chinner 2a0cb69ee7 xfstests: make 016 work with delaylog
Test 016 fails with delaylog because it measures log traffic to disk
and delaylog writes almost nothing to the log for the given test. TO
make it work, add sync calls to the work loop to cause the log to be
flushed reliably for both delaylog and nodelaylog and hence contain
the same number of log records.

As a result, the log space consumed by the test is not changed by
the delaylog option and the test passes. The test is not
significantly slowed down by the addition of the sync calls (takes
15s to run on a single SATA drive).

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2011-02-14 11:21:44 +11:00
Dave Chinner 771e69de67 xfstests: Convert all tests to use /bin/bash
While most tests use /bin/sh, they are dependent on /bin/sh being a
bash shell.  Convert all the tests to execute via /bin/bash as it is
much, much simpler than trying to debug and remove all the bashisms
throughout the test code.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2010-01-20 10:27:08 +11:00
Christoph Hellwig f381f98206 xfstests: move GPL boilerplates to fix lsqa.pl
It turns out lsqa.pl nees the test number and description first in the
file, so move the GPL boilerplates below it.

Also remove acouple of cases where we have one full copyright line + gpl
boilerplate before the description and another copyright line after
the description.

Signed-off-by: Christoph Hellwig <hch@lst.de>
2009-05-28 17:04:15 +02:00
Felix Blyakher 65491dc047 Add GPL license plate to SGI's test files.
Signed-off-by: Felix Blyakher <felixb@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
2009-05-26 16:51:14 -05:00
Tim Shimmin 3d8fcfcfc3 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.
2008-05-09 04:38:54 +00:00
Nathan Scott 0b79635a78 Prevent test 016 from running if mkfs options create an unworkable log for its purposes.
Merge of master-melb:xfs-cmds:26369a by kenmcd.
2006-06-28 06:07:54 +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 640164847a Update copyright annotations and license boilerplates to correspond with SGI Legals preferences.
Merge of master-melb:xfs-cmds:24327a by kenmcd.
2005-11-09 02:49:08 +00:00
ptools cb6beb9759 Fixed merge problems 2004-06-15 07:32:36 +00:00
Nathan Scott f419391566 Remove (busted anyway) Id rcs keywords for keeping trees in sync 2003-06-24 06:21:22 +00:00
fsgqa 3f1c6c654d QA test updates for external log/rt devices.
Make sure we don't run this test with mutually exclusive mkfs options.
2003-05-26 06:34:31 +00:00
fsgqa 8050efd492 Numerous changes to QA scripts allowing tests to run with external log/rt devices; also allow multiple mkfs/mount options at once now. 2003-05-22 04:16:45 +00:00
Nathan Straz bbb3e07bed lsunit isn't always set when running _log_sunit, so give it a default value. 2003-05-19 20:54:36 +00:00
fsgqa 705b7457f2 Fix test 016 which I made too verbose recently, causing failures 2003-05-15 01:56:01 +00:00
fsgqa 1d1d92fa46 Several QA test updates to fix failures on v2 logs and redhat 9.
Fix some log offset calculations when version 2 logs are in use.
2003-05-14 05:25:31 +00:00
Steve Lord 8c5b1cdc66 Fix test for v2 striped logs 2002-06-18 20:32:20 +00:00
Eric Sandeen 3ef12e3824 Update copyright dates (again) 2002-06-04 23:07:56 +00:00
Eric Sandeen bc4eb461ae Undoes mod: xfs-cmds:slinx:120772a
Undo xfs-cmds:slinx:120772a, inadvertently whacked a previous mod.
2002-06-04 22:53:09 +00:00
Eric Sandeen 8ce73f8626 Update copyright dates 2002-06-04 17:58:21 +00:00
fsgqa e9298f6edf fix to work with multiple block sizes - we were running mkfs with a log
size which was dependent on block size, and became too small for 1024k
filesystems.
2002-05-09 06:03:32 +00:00
fsgqa f29425d6f7 tidy mkfs parameterisation, -f option pulled into common.rc. 2002-05-06 07:44:22 +00:00
Nathan Scott 36d5db422b allow mkfs arguments to be passed from the env for testing multiple
block sizes.
2002-01-20 00:47:43 +00:00
Nathan Scott 1bd11aa834 updates to run (more) cleanly with quota mount option(s). expanded
notrun messages for those tests which are skipped with more details.
2001-04-23 07:37:39 +00:00
Nathan Scott 360099765b tidy up the feature checking - can bite in either enfd/acct quota cases. 2001-02-09 00:24:17 +00:00