From: "Lukáš Czerner" <lczerner@redhat.com>
To: Zhaolei <zhaolei@cn.fujitsu.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH v2 1/2] xfstests: fix a typo in _require_block_device()
Date: Thu, 26 Feb 2015 11:45:12 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.00.1502261144090.25704@localhost.localdomain> (raw)
In-Reply-To: <196cc72cb39e1a338339fa09c73f6334af63a2d6.1424946979.git.zhaolei@cn.fujitsu.com>
On Thu, 26 Feb 2015, Zhaolei wrote:
> Date: Thu, 26 Feb 2015 18:38:47 +0800
> From: Zhaolei <zhaolei@cn.fujitsu.com>
> To: fstests@vger.kernel.org
> Cc: Zhao Lei <zhaolei@cn.fujitsu.com>
> Subject: [PATCH v2 1/2] xfstests: fix a typo in _require_block_device()
>
> From: Zhao Lei <zhaolei@cn.fujitsu.com>
>
> We need to check "$1" instead "$SCRATCH_DEV" in this function.
>
> Changelog v1->v2:
> Use tab instead of space to fit new code style.
> Suggested by: Dave Chinner <david@fromorbit.com>
Looks good, thanks.
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
>
> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
> ---
> common/rc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/rc b/common/rc
> index 1ed9df5..5a8c74d 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -1288,7 +1288,7 @@ _require_block_device()
> echo "Usage: _require_block_device <dev>" 1>&2
> exit 1
> fi
> - if [ "`_is_block_dev $SCRATCH_DEV`" == "" ]; then
> + if [ "`_is_block_dev $1`" == "" ]; then
> _notrun "require $1 to be valid block disk"
> fi
> }
>
next prev parent reply other threads:[~2015-02-26 10:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 10:38 [PATCH v2 1/2] xfstests: fix a typo in _require_block_device() Zhaolei
2015-02-26 10:38 ` [PATCH v3 2/2] Fix warning of "Usage: _is_block_dev dev" Zhaolei
2015-02-26 11:29 ` Lukáš Czerner
2015-02-26 12:26 ` Zhao Lei
2015-02-26 13:36 ` Lukáš Czerner
2015-02-27 1:51 ` Zhao Lei
2015-02-27 9:45 ` Lukáš Czerner
2015-02-26 10:45 ` Lukáš Czerner [this message]
2015-02-26 13:38 ` [PATCH v2 1/2] xfstests: fix a typo in _require_block_device() Lukáš Czerner
-- strict thread matches above, loose matches on Subject: below --
2015-02-27 3:30 Zhaolei
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=alpine.LFD.2.00.1502261144090.25704@localhost.localdomain \
--to=lczerner@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=zhaolei@cn.fujitsu.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