public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <eguan@redhat.com>
To: Zhaolei <zhaolei@cn.fujitsu.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH v4] fstests: Make generic/081 and 108 run in old version of lvm
Date: Thu, 19 Nov 2015 20:26:25 +0800	[thread overview]
Message-ID: <20151119122625.GP2535@eguan.usersys.redhat.com> (raw)
In-Reply-To: <988846ee74aa4045c43465d954d05a385f02f683.1447922281.git.zhaolei@cn.fujitsu.com>

On Thu, Nov 19, 2015 at 04:38:08PM +0800, Zhaolei wrote:
> From: Zhao Lei <zhaolei@cn.fujitsu.com>
> 
> generic/081 and 108 fails in RHEL 6.3, like:
>  # ./check generic/081
>  FSTYP         -- btrfs
>  PLATFORM      -- Linux/x86_64 kerneldev 4.2.0-rc5_HEAD_d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754_+
>  MKFS_OPTIONS  -- /dev/vdd
>  MOUNT_OPTIONS -- /dev/vdd /var/ltf/tester/scratch_mnt
> 
>  generic/081
>  [failed, exit status 1] - output mismatch (see /var/lib/xfstests/results//generic/081.out.bad)
>     --- tests/generic/081.out   2015-07-13 17:07:03.000000000 +0800
>     +++ /var/lib/xfstests/results//generic/081.out.bad  2015-10-28 12:20:49.000000000 +0800
>     @@ -1,2 +1,3 @@
>      QA output created by 081
>      Silence is golden
>     +ERROR: checking status of /dev/mapper/vg_081-base_081: No such file or directory
>  Ran: generic/081
>  Failures: generic/081
>  Failed 1 of 1 tests
> 
> Reason:
>  Command of "lvm lvcreate --yes" failed because lvm in RHEL 6.3
>  don't support '--yes' option.
> 
>  RHEL 6.3(without --yes option):
>  # lvm version
>    LVM version:     2.02.95(2)-RHEL6 (2012-05-16)
>    Library version: 1.02.74-RHEL6 (2012-05-16)
>    Driver version:  4.32.0
>  # lvm lvcreate --yes --version
>  lvcreate: unrecognized option '--yes'
>    Error during parsing of command line.
>  # echo $?
>  3
>  #
> 
>  RHEL 7.1(with --yes option):
>  # lvm version
>    LVM version:     2.02.115(2)-RHEL7 (2015-01-28)
>    Library version: 1.02.93-RHEL7 (2015-01-28)
>    Driver version:  4.33.0
>  # lvm lvcreate --yes --version
>    LVM version:     2.02.115(2)-RHEL7 (2015-01-28)
>    Library version: 1.02.93-RHEL7 (2015-01-28)
>    Driver version:  4.33.0
>  # echo $?
>  0
>  #
> 
>  Fedora release 20(with --yes option):
>  (Support --yes like RHEL 7.1, omit logs)
>  lvm version: 2.02.106(2) (2014-04-10)
> 
> Fix:
>  Use yes pipe instead '--yes' option for lvm, to make the command
>  support both new and old version of lvm.
> 
> Changelog v3->v4:
>  1: Update description of "Fix:" in patch comment.
>     suggested by: Eryu Guan <eguan@redhat.com>
>  2: Add fix of generic/108
>     suggested by: Eryu Guan <eguan@redhat.com>
>  3: Add comment of why using yes pipe in code.
> 
> Changelog v2->v3:
>  Use unique way for old and new version of lvm, suggested-by:
>  Dave Chinner <david@fromorbit.com>
> 
> Changelog v1->v2:
>  Use yes pipe, suggested by: Eryu Guan <eguan@redhat.com>
> 
> Suggested-by: Dave Chinner <david@fromorbit.com>
> Suggested-by: Eryu Guan <eguan@redhat.com>
> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>

Thanks!

Reviewed-by: Eryu Guan <eguan@redhat.com>

      reply	other threads:[~2015-11-19 12:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19  8:38 [PATCH v4] fstests: Make generic/081 and 108 run in old version of lvm Zhaolei
2015-11-19 12:26 ` Eryu Guan [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=20151119122625.GP2535@eguan.usersys.redhat.com \
    --to=eguan@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