Commit Graph

16 Commits

Author SHA1 Message Date
Jeff Moyer 882c8684b1 078: xfs_repair should be run against the losetup'd device, not the image file
When running test 078 against a 4k logical block sized disk, it fails in
xfs_repair.  The problem is that xfs_repair is passed the loopback
filename instead of the actual loop device.  This means that it opens
the file O_DIRECT, and tries to do 512 byte aligned I/O to a 4k sector
device.  The loop device, for better or for worse, will do buffered I/O,
and thus does not suffer from the same problem.  So, the attached patch
sets up the loop device and passes that to xfs_repair.  This resolves
the issue on my test system.

Comments are more than welcome.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2011-02-13 12:59:20 +01: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 5316024f6f If test 078 fails and you try to run it again immediately, it
will execute a 'rm -f' on a directory which will fail. This should
be a rmdir....

Signed-off-by: Dave Chinner <dgc@sgi.com>
Merge of master-melb:xfs-cmds:31637a by kenmcd.

  If test 078 fails and you try to run it again immediately, it
  will execute a 'rm -f' on a directory which will fail. This should
  be a rmdir....  Signed-off-by: Dave Chinner <dgc@sgi.com>
2008-07-15 06:17:47 +00:00
Barry Naujok 3768e3b4ad Fix up QA tests for mkfs behaviour changes
Merge of master-melb:xfs-cmds:30689a by kenmcd.

  Force the agcount to 6 to keep behaviour the same as old and new
2008-03-19 03:18:01 +00:00
Mohamed Barwani 9c1fdb6404 Add extra test cases for growfs
Merge of master-melb:xfs-cmds:29854a by kenmcd.

  Modify the loop back grow function to include a flag for checking the fs after growin and added few more growfs test cases that are less 16TB
2007-10-09 06:11:20 +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 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
Tim Shimmin 3ef27d6443 xfs_io -> XFS_IO_PROG as used by dgc
Merge of master-melb:xfs-cmds:22779a by kenmcd.
2005-06-02 15:09:19 +00:00
Eric Sandeen b045bf2f41 fix up xfstests for realtime fs
Filter out inode numbers; these change with realtime
2004-06-25 03:09:08 +00:00
ptools cb6beb9759 Fixed merge problems 2004-06-15 07:32:36 +00:00
fsgqa 7ee547a8ad Improve filters for a couple of the tests using xfs_io. 2004-03-19 00:01:18 +00:00
Nathan Scott 8eca8edc9f Update xfs_io filter to exclude some additional output being added shortly. 2003-11-27 22:08:54 +00:00
fsgqa 6f7119b648 Fix test 078 so it doesnt depend on the root fs blocksize; make it use TEST_DEV cos we know thats an XFS filesystem and supports sparse files 2003-09-12 00:35:33 +00:00
fsgqa 592df97d41 Add a new growfs test 078, and do a better job of cleaning tmp files after a QA run 2003-08-15 01:24:41 +00:00