fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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 14:38:27 +0100 (CET)	[thread overview]
Message-ID: <alpine.LFD.2.00.1502261436470.25704@localhost.localdomain> (raw)
In-Reply-To: <alpine.LFD.2.00.1502261144090.25704@localhost.localdomain>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1787 bytes --]

On Thu, 26 Feb 2015, Lukáš Czerner wrote:

> Date: Thu, 26 Feb 2015 11:45:12 +0100 (CET)
> 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()
> 
> 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>

Based on the discussion around the second patch you need to use
proper quotes

	if [ "`_is_block_dev "$1"`" == "" ]; then

-Lukas

> 
> > 
> > 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
> >  }
> > 
> --
> 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
> 

  reply	other threads:[~2015-02-26 13:38 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 ` [PATCH v2 1/2] xfstests: fix a typo in _require_block_device() Lukáš Czerner
2015-02-26 13:38   ` Lukáš Czerner [this message]
  -- 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.1502261436470.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;
as well as URLs for NNTP newsgroup(s).