public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: xfs@oss.sgi.com
Subject: [PATCH 07/10] xfstests: always us test option when checking large scratch device
Date: Thu, 26 Jul 2012 18:39:46 +1000	[thread overview]
Message-ID: <1343291989-14987-8-git-send-email-david@fromorbit.com> (raw)
In-Reply-To: <1343291989-14987-1-git-send-email-david@fromorbit.com>

From: Dave Chinner <dchinner@redhat.com>

Some tests call _check_scratch_device directly and when using a
large filesystem this needs to run with a -t option to avoid
consuming large amounts of memory. Make this happen in all cases
that the scratch device is checked.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
 017       |    7 ++-----
 common.rc |    2 ++
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/017 b/017
index 9ca0e72..0a3ede3 100755
--- a/017
+++ b/017
@@ -48,9 +48,6 @@ _supported_os Linux
 
 _require_scratch
 
-checkopts=""
-[ "$USE_BIG_LOOPFS" = yes ] && checkopts=-t
-
 echo "*** init FS"
 
 rm -f $seq.full
@@ -81,8 +78,8 @@ do
         echo ""                             >>$seq.full
         echo "*** XFS_CHECK ***"            >>$seq.full
         echo ""                             >>$seq.full
-        _scratch_xfs_check $checkopts       >>$seq.full 2>&1 \
-            || _fail "xfs_check $checkopts failed"
+        _scratch_xfs_check                  >>$seq.full 2>&1 \
+            || _fail "xfs_check failed"
         _scratch_mount -o remount,rw \
             || _fail "remount rw failed"
 done
diff --git a/common.rc b/common.rc
index a9252e0..df47e2a 100644
--- a/common.rc
+++ b/common.rc
@@ -470,6 +470,8 @@ _scratch_xfs_check()
     SCRATCH_OPTIONS=""
     [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \
         SCRATCH_OPTIONS="-l $SCRATCH_LOGDEV"
+    [ "$LARGE_SCRATCH_DEV" = yes ] && \
+        SCRATCH_OPTIONS=$SCRATCH_OPTIONS" -t"
     $XFS_CHECK_PROG $SCRATCH_OPTIONS $* $SCRATCH_DEV
 }
 
-- 
1.7.10

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  parent reply	other threads:[~2012-07-26  8:40 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120831194326.741195404@sgi.com>
2012-07-26  8:39 ` [PATCH 0/10] xfstests: rework large filesystem testing Dave Chinner
2012-07-26  8:39   ` [PATCH 01/10] xfstests: add --largefs check option Dave Chinner
2012-08-28 14:00     ` Rich Johnston
2012-08-28 19:56     ` Christoph Hellwig
2012-07-26  8:39   ` [PATCH 02/10] xfstests: rename USE_BIG_LOOPFS to be more generic Dave Chinner
2012-08-28 14:01     ` Rich Johnston
2012-08-31 23:30       ` Dave Chinner
2012-08-28 19:56     ` Christoph Hellwig
2012-07-26  8:39   ` [PATCH 03/10] xfstests: rename RETAIN_AG_BYTES Dave Chinner
2012-08-28 14:01     ` Rich Johnston
2012-08-28 19:56     ` Christoph Hellwig
2012-07-26  8:39   ` [PATCH 04/10] xfstests: use preallocation for ag-wiper Dave Chinner
2012-08-28 14:02     ` Rich Johnston
2012-08-28 19:57     ` Christoph Hellwig
2012-07-26  8:39   ` [PATCH 05/10] xfstests: use command line option for setting extra space Dave Chinner
2012-08-28 14:02     ` Rich Johnston
2012-08-28 19:57     ` Christoph Hellwig
2012-07-26  8:39   ` [PATCH 06/10] xfstest: enable xfs_repair for large filesystem testing Dave Chinner
2012-08-28 14:02     ` Rich Johnston
2012-08-28 19:58     ` Christoph Hellwig
2012-07-26  8:39   ` Dave Chinner [this message]
2012-07-26 17:21     ` [PATCH 07/10] xfstests: always us test option when checking large scratch device Paulo Alcantara
2012-08-28 14:02     ` Rich Johnston
2012-08-28 19:58     ` Christoph Hellwig
2012-07-26  8:39   ` [PATCH 08/10] xfstests: enable large fs testing on ext4 Dave Chinner
2012-08-28 20:03     ` Christoph Hellwig
2012-09-05 16:27     ` Rich Johnston
2012-07-26  8:39   ` [PATCH 09/10] xfstests: disable tests that typically fail on large filesystems Dave Chinner
2012-08-28 14:03     ` Rich Johnston
2012-08-28 20:03     ` Christoph Hellwig
2012-07-26  8:39   ` [PATCH 10/10] xfstests: exclude largefs fill files from dump tests Dave Chinner
2012-08-28 14:03     ` Rich Johnston
2012-08-28 20:04     ` Christoph Hellwig
2012-08-14 21:40   ` [PATCH 0/10] xfstests: rework large filesystem testing Dave Chinner
2012-09-05 21:34   ` [PATCH 11/10] xfstests: rework large filesystem testing - add golden output Ben Myers
2012-09-05 22:26   ` Dave Chinner
2012-09-06 12:57     ` Rich Johnston
2012-09-06 23:07       ` Dave Chinner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343291989-14987-8-git-send-email-david@fromorbit.com \
    --to=david@fromorbit.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox