From: Liu Bo <bo.li.liu@oracle.com>
To: Filipe David Manana <fdmanana@gmail.com>
Cc: fstests@vger.kernel.org,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] xfstests: make "BTRFS_UTIL_PROG filesystem defragment" work
Date: Tue, 14 Apr 2015 17:29:02 +0800 [thread overview]
Message-ID: <20150414092902.GA1784@localhost.localdomain> (raw)
In-Reply-To: <CAL3q7H4kacnDiQLpBr0ZMKCPY7dK=uO-PPrNmhUqiWutMY5k=g@mail.gmail.com>
On Tue, Apr 14, 2015 at 10:14:59AM +0100, Filipe David Manana wrote:
> On Tue, Apr 14, 2015 at 10:01 AM, Liu Bo <bo.li.liu@oracle.com> wrote:
> > _require_defrag() needs to check if the command is executable, but btrfs has
> > its subcommand "filesystem defragment", which makes this checking fail.
> >
> > This workarounds it and now we can run case generic/324, generic/018, btrfs/005.
>
> There's already a patch from Zhao to fix the regression:
>
> https://patchwork.kernel.org/patch/6205031/
Got it, thanks for pointing it out.
Thanks,
-liubo
>
> thanks
>
> >
> > Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
> > ---
> > common/defrag | 6 +++++-
> > 1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/common/defrag b/common/defrag
> > index f923dc0..f36a68b 100644
> > --- a/common/defrag
> > +++ b/common/defrag
> > @@ -37,7 +37,11 @@ _require_defrag()
> > ;;
> > esac
> >
> > - _require_command "$DEFRAG_PROG" defragment
> > + if [ "$FSTYP" == "btrfs" ]; then
> > + _require_command "$BTRFS_UTIL_PROG" defragment
> > + else
> > + _require_command "$DEFRAG_PROG" defragment
> > + fi
> > _require_xfs_io_command "fiemap"
> > }
> >
> > --
> > 1.8.2.1
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe fstests" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
> --
> Filipe David Manana,
>
> "Reasonable men adapt themselves to the world.
> Unreasonable men adapt the world to themselves.
> That's why all progress depends on unreasonable men."
prev parent reply other threads:[~2015-04-14 9:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-14 9:01 [PATCH] xfstests: make "BTRFS_UTIL_PROG filesystem defragment" work Liu Bo
2015-04-14 9:14 ` Filipe David Manana
2015-04-14 9:29 ` Liu Bo [this message]
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=20150414092902.GA1784@localhost.localdomain \
--to=bo.li.liu@oracle.com \
--cc=fdmanana@gmail.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 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.