From: Wang Shilong <wangshilong1991@gmail.com>
To: fstests@vger.kernel.org
Cc: david@fromorbit.com, linux-btrfs@vger.kernel.org
Subject: [PATCH 2/2] xfstests,btrfs/004: use FILEFRAG_PROG macro
Date: Wed, 8 Oct 2014 06:35:22 -0400 [thread overview]
Message-ID: <1412764522-15754-2-git-send-email-wangshilong1991@gmail.com> (raw)
In-Reply-To: <1412764522-15754-1-git-send-email-wangshilong1991@gmail.com>
Signed-off-by: Wang Shilong <wangshilong1991@gmail.com>
---
i didn't find a way to remove filefrag here, but let us
use macro firstly...
---
tests/btrfs/004 | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/btrfs/004 b/tests/btrfs/004
index 1d5b816..1f59963 100755
--- a/tests/btrfs/004
+++ b/tests/btrfs/004
@@ -53,7 +53,6 @@ _supported_os Linux
_require_scratch
_require_no_large_scratch_dev
_require_btrfs inspect-internal
-_require_command "/usr/sbin/filefrag"
rm -f $seqres.full
@@ -82,7 +81,7 @@ _filter_extents()
_check_file_extents()
{
- cmd="filefrag -v $1"
+ cmd="$FILEFRAG_PROG -v $1"
echo "# $cmd" >> $seqres.full
out=`$cmd | _filter_extents`
if [ -z "$out" ]; then
--
1.8.3.1
next prev parent reply other threads:[~2014-10-08 2:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-08 10:35 [PATCH 1/2] xfstests,btrfs/010: use _extent_count() helper Wang Shilong
2014-10-08 10:35 ` Wang Shilong [this message]
2014-10-08 4:20 ` [PATCH 2/2] xfstests,btrfs/004: use FILEFRAG_PROG macro Dave Chinner
[not found] ` <773629AA-9F58-4A1A-A5D0-6CC0B5121233@gmail.com>
2014-10-08 5:31 ` Wang Shilong
2014-10-08 5:54 ` 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=1412764522-15754-2-git-send-email-wangshilong1991@gmail.com \
--to=wangshilong1991@gmail.com \
--cc=david@fromorbit.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).