public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Felix Janda <felix.janda@posteo.de>,
	Christoph Hellwig <hch@infradead.org>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCHv2 xfsprogs 00/14] Convert from off64_t to off_t
Date: Fri, 26 Aug 2016 08:01:28 +1000	[thread overview]
Message-ID: <20160825220128.GE19025@dastard> (raw)
In-Reply-To: <20160825080402.GA28747@infradead.org> <20160824204746.GA25162@nyan>

On Wed, Aug 24, 2016 at 10:47:46PM +0200, Felix Janda wrote:
> Dave Chinner wrote:
> > So, the patches are fine, and everything works. Problem is, it
> > screws up xfstests because it changes all the error messages
> > that are output to stderr and captured by the test harness.
> > There are quite a few tests that this causes failures for,
> > and because it's stderr, it's not as simple as just adding a new
> > filter to do 'sed -e "s/^\(.*\)64\(: .*$\)/\1\2/"' on stderr.
> 
> Thanks for testing!
> 
> I can rework the patches to leave stderr unchanged. I guess that this
> is preferable as opposed to updating the output expected by xfstests
> since xfstests should be usable with both old and new xfsprogs.

Well, normally the thing that needs to change is xfstests. We have
to handle all sorts of issues like this (core-utils people seem to
change error messge format at least once a year). it just more
complex for xfs_io because we've got to filter both stdout and
stderr separately and not cross the streams.

> > Further, errors returned change, which further screws up xfstests.
> > e.g. old code gives EFBIG when we try to use offsets beyond the
> > supported range, this patchset returns EINVAL.  That further
> > complicates any sort of error filtering we'll need to do.
> 
> I am very surprised that something apart from the error messages has
> changed. I would be interested to know on what architecture and for
> which test(s) (where) this happened, if you still remember.

Turns out this was a false detection - the test captures EINVAL
error message and turns it into a EFBIG error message, probably
because at one stage it was EFBIG. So the errno didn't change, just
the error filter didn't match and convert....

On Thu, Aug 25, 2016 at 01:04:02AM -0700, Christoph Hellwig wrote:
> On Wed, Aug 24, 2016 at 10:47:46PM +0200, Felix Janda wrote:
> > > screws up xfstests because it changes all the error messages
> > > that are output to stderr and captured by the test harness.
> > > There are quite a few tests that this causes failures for,
> > > and because it's stderr, it's not as simple as just adding a new
> > > filter to do 'sed -e "s/^\(.*\)64\(: .*$\)/\1\2/"' on stderr.
> > 
> > Thanks for testing!
> > 
> > I can rework the patches to leave stderr unchanged. I guess that this
> > is preferable as opposed to updating the output expected by xfstests
> > since xfstests should be usable with both old and new xfsprogs.
> 
> I would prefer to change the output if we can find a good way to
> filter it.  I suspect the issues are things like perror lines
> which would look odd if we leave the 64 back in.

right, it's pwrite64 -> pwrite that is the main issue. And yes, I
would prefer to filter it, too.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      parent reply	other threads:[~2016-08-25 22:02 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-13 17:04 [PATCHv2 xfsprogs 00/14] Convert from off64_t to off_t Felix Janda
2016-08-06 10:45 ` [PATCHv2 xfsprogs 04/14] replace [fl]stat64 by equivalent [fl]stat Felix Janda
2016-08-18 17:38   ` Christoph Hellwig
2016-08-06 10:45 ` [PATCHv2 xfsprogs 05/14] replace ftruncate64 by equivalent ftruncate Felix Janda
2016-08-18 17:38   ` Christoph Hellwig
2016-08-06 10:45 ` [PATCHv2 xfsprogs 06/14] replace lseek64 by equivalent lseek Felix Janda
2016-08-18 17:38   ` Christoph Hellwig
2016-08-06 10:45 ` [PATCHv2 xfsprogs 07/14] replace pread64/pwrite64 by equivalent pread/pwrite Felix Janda
2016-08-18 17:39   ` Christoph Hellwig
2016-08-06 11:03 ` [PATCHv2 xfsprogs 08/14] replace sendfile64 by equivalent sendfile Felix Janda
2016-08-18 17:39   ` Christoph Hellwig
2016-08-07  5:21 ` [PATCHv2 xfsprogs 01/14] configure: use AC_SYS_LARGEFILE Felix Janda
2016-08-18 17:37   ` Christoph Hellwig
2016-08-07  5:28 ` [PATCHv2 xfsprogs 03/14] remove unecessary definitions of _FILE_OFFSET_BITS Felix Janda
2016-08-18 17:38   ` Christoph Hellwig
2016-08-07  5:52 ` [PATCHv2 xfsprogs 14/14] platform: remove use of off64_t Felix Janda
2016-08-18 17:45   ` Christoph Hellwig
2016-08-13 16:03 ` [PATCHv2 xfsprogs 13/14] xfs.h: require transparent LFS for all users Felix Janda
2016-08-18 17:45   ` Christoph Hellwig
2016-08-13 16:03 ` [PATCHv2 xfsprogs 09/14] fadvise.c: replace posix_fadvise64 by equivalent posix_fadvise Felix Janda
2016-08-18 17:42   ` Christoph Hellwig
2016-08-13 16:17 ` [PATCHv2 xfsprogs 10/14] Makefile: disable fsr for Mac OS X Felix Janda
2016-08-18 17:43   ` Christoph Hellwig
2016-08-13 16:20 ` [PATCHv2 xfsprogs 11/14] fsr: remove workaround for statvfs on " Felix Janda
2016-08-18 17:44   ` Christoph Hellwig
2016-08-13 16:22 ` [PATCHv2 xfsprogs 12/14] replace statvfs64 by equivalent statvfs Felix Janda
2016-08-18 17:44   ` Christoph Hellwig
2016-08-13 16:50 ` [PATCHv2 xfsprogs 02/14] configure: error out when LFS does not work Felix Janda
2016-08-18 17:37   ` Christoph Hellwig
2016-08-22  3:09 ` [PATCHv2 xfsprogs 00/14] Convert from off64_t to off_t Dave Chinner
2016-08-22  7:06   ` Felix Janda
2016-08-22 11:51     ` Dave Chinner
2016-08-22 19:16       ` Felix Janda
2016-08-24  1:19 ` Dave Chinner
2016-08-24 20:47   ` Felix Janda
2016-08-25  8:04     ` Christoph Hellwig
2016-08-25 22:01     ` Dave Chinner [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=20160825220128.GE19025@dastard \
    --to=david@fromorbit.com \
    --cc=felix.janda@posteo.de \
    --cc=hch@infradead.org \
    --cc=xfs@oss.sgi.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