public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <eguan@redhat.com>
To: Dave Chinner <david@fromorbit.com>
Cc: fstests@vger.kernel.org, Dave Chinner <dchinner@redhat.com>
Subject: Re: [GIT PULL] fstests: updates on 2016-08-20
Date: Fri, 26 Aug 2016 15:13:40 +0800	[thread overview]
Message-ID: <20160826071340.GZ27776@eguan.usersys.redhat.com> (raw)
In-Reply-To: <20160826045115.GP22388@dastard>

On Fri, Aug 26, 2016 at 02:51:15PM +1000, Dave Chinner wrote:
> On Sat, Aug 20, 2016 at 10:44:01PM +0800, Eryu Guan wrote:
> > Eric Sandeen (2):
> >       xfs: test xfs_quota "state" command
> 
> This test hard codes inode numbers in the golden output. Fails the
> moment you change the mkfs parameters away from the default. e.g.
> enable rmapbt=1:
> 
> xfs/263  - output mismatch (see /home/dave/src/xfstests-dev/results//xfs_1k/xfs/263.out.bad)
>     --- tests/xfs/263.out       2016-08-23 16:55:38.026707187 +1000
>     +++ /home/dave/src/xfstests-dev/results//xfs_1k/xfs/263.out.bad     2016-08-26 11:13:06.533209472 +1000
>     @@ -5,15 +5,15 @@
>      User quota state on SCRATCH_MNT (SCRATCH_DEV)
>        Accounting: ON
>        Enforcement: ON
>     -  Inode: #131 (1 blocks, 1 extents)
>     +  Inode: #195 (1 blocks, 1 extents)
>      Group quota state on SCRATCH_MNT (SCRATCH_DEV)
>        Accounting: OFF
>     ...
>     (Run 'diff -u tests/xfs/263.out /home/dave/src/xfstests-dev/results//xfs_1k/xfs/263.out.bad'  to see the entire diff)

I noticed the hard-coded inode numbers too at review time, but I saw
that the mkfs options were hard-coded as well, so I think the inode
numbers wouldn't change too.

As stated in the commit log, xfs/263 requires patches to the upstream
kernel ("quota: fill in Q_XGETQSTAT inode information for inactive
quotas") and to xfsprogs ("xfs_quota: wire up XFS_GETQSTATV") to pass.

I just tested xfs/263 with rmapbt enabled, with latest xfsprogs you just
updated (which contains commit bb92709 "xfs_quota: wire up
XFS_GETQSTATV") and 4.8-rc3 kernel + kernel patch "quota: fill in
Q_XGETQSTAT inode information for inactive quotas" from Eric, and test
passed without problems. Perhaps you need that kernel patch to make it
pass?

But I agree that it'd better to filter the inode numbers to avoid future
changes to golden image. Should I drop it for now or we can fix it later
with a follow-up patch?

Thanks,
Eryu

      reply	other threads:[~2016-08-26  7:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-20 14:44 [GIT PULL] fstests: updates on 2016-08-20 Eryu Guan
2016-08-23  6:54 ` Dave Chinner
2016-08-23  7:16   ` Eryu Guan
2016-08-23 15:10     ` Darrick J. Wong
2016-08-23 15:23       ` Eryu Guan
2016-08-23 22:18       ` Dave Chinner
2016-08-26  4:51 ` Dave Chinner
2016-08-26  7:13   ` 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=20160826071340.GZ27776@eguan.usersys.redhat.com \
    --to=eguan@redhat.com \
    --cc=david@fromorbit.com \
    --cc=dchinner@redhat.com \
    --cc=fstests@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