FS/XFS testing framework
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: fstests <fstests@vger.kernel.org>, Namjae Jeon <namjae.jeon@samsung.com>
Subject: [PATCH] fstests: test for fallocate capability in more tests
Date: Thu, 9 Apr 2020 15:06:28 -0500	[thread overview]
Message-ID: <8202d5fd-041f-455c-e306-4244216d305d@redhat.com> (raw)

These 3 tests explicitly call xfs_io's fallocate command, test whether
it works before running the test.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

diff --git a/tests/generic/286 b/tests/generic/286
index 00cb87b7..8be4fbc9 100755
--- a/tests/generic/286
+++ b/tests/generic/286
@@ -23,6 +23,7 @@ _supported_fs generic
 _supported_os Linux
 
 _require_test
+_require_xfs_io_command "falloc"
 _require_seek_data_hole
 
 src=$TEST_DIR/seek_copy_testfile
diff --git a/tests/generic/404 b/tests/generic/404
index 14decdb7..69d7e71e 100755
--- a/tests/generic/404
+++ b/tests/generic/404
@@ -76,6 +76,7 @@ rm -f $seqres.full
 _supported_fs generic
 _supported_os Linux
 _require_test
+_require_xfs_io_command "falloc"
 _require_xfs_io_command "finsert"
 
 blksize=`_get_block_size $TEST_DIR`
diff --git a/tests/generic/569 b/tests/generic/569
index 4573be5a..385fa59f 100755
--- a/tests/generic/569
+++ b/tests/generic/569
@@ -29,6 +29,7 @@ _cleanup()
 # real QA test starts here
 _supported_os Linux
 _supported_fs generic
+_require_xfs_io_command "falloc"
 _require_test_program swapon
 _require_scratch_swapfile
 


             reply	other threads:[~2020-04-09 20:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-09 20:06 Eric Sandeen [this message]
2020-04-09 20:49 ` [PATCH] fstests: test for fallocate capability in more tests Darrick J. Wong

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=8202d5fd-041f-455c-e306-4244216d305d@redhat.com \
    --to=sandeen@redhat.com \
    --cc=fstests@vger.kernel.org \
    --cc=namjae.jeon@samsung.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