All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yufen Yu <yuyufen@huawei.com>
To: fstests@vger.kernel.org
Subject: [PATCH 2/5] generic/299: limit max file size
Date: Wed, 20 Feb 2019 09:59:52 +0800	[thread overview]
Message-ID: <20190220015955.26342-3-yuyufen@huawei.com> (raw)
In-Reply-To: <20190220015955.26342-1-yuyufen@huawei.com>

We limit the max size and let the test go on running.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
---
 tests/generic/299 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/generic/299 b/tests/generic/299
index c4d74fc8..4d474032 100755
--- a/tests/generic/299
+++ b/tests/generic/299
@@ -33,6 +33,11 @@ NUM_JOBS=$((4*LOAD_FACTOR))
 BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
 FILE_SIZE=$((BLK_DEV_SIZE * 512))
 
+max_file_size=$(_get_max_file_size)
+if [ $max_file_size -lt $FILE_SIZE ]; then
+	FILE_SIZE=$max_file_size
+fi
+
 cat >$fio_config <<EOF
 ###########
 # $seq test fio activity
-- 
2.16.2.dirty

  parent reply	other threads:[~2019-02-20  1:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-20  1:59 [PATCH 0/5] define common _get_max_file_size function Yufen Yu
2019-02-20  1:59 ` [PATCH 1/5] commom/rc: define function _get_max_file_size Yufen Yu
2019-02-20  3:12   ` Eric Biggers
2019-02-20 13:32     ` Eryu Guan
2019-02-20  1:59 ` Yufen Yu [this message]
2019-02-20  1:59 ` [PATCH 3/5] generic/351: use the common " Yufen Yu
2019-02-20  1:59 ` [PATCH 4/5] generic/349: " Yufen Yu
2019-02-20  1:59 ` [PATCH 5/5] generic/350: " Yufen Yu

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=20190220015955.26342-3-yuyufen@huawei.com \
    --to=yuyufen@huawei.com \
    --cc=fstests@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.