linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Btrfs progs pre-release 4.10-rc1
Date: Wed, 8 Mar 2017 12:59:40 +0100	[thread overview]
Message-ID: <20170308115939.GZ4662@suse.cz> (raw)
In-Reply-To: <0c346a54-9ed3-826a-8a98-adcc33df0527@jp.fujitsu.com>

On Wed, Mar 08, 2017 at 09:11:37AM +0900, Tsutomu Itoh wrote:
> >>>
> >>> Benedikt Morbach (1):
> >>>       btrfs-progs: send-dump: add missing newlines
> >>>
> >>> David Sterba (102):
> >>
> >>>       btrfs-progs: rework option parser to use getopt for global options
> >>
> >> I think that btrfs/{008,016,019,...} of xfstests has failed due to the
> >> above patch.
> >>
> >> btrfs/008 1s ... [failed, exit status 1] - output mismatch (see /xfstests/results//btrfs/008.out.bad)
> >>     --- tests/btrfs/008.out     2015-08-04 16:09:38.000000000 +0900
> >>     +++ /xfstests/results//btrfs/008.out.bad    2017-03-07 09:00:50.581906234 +0900
> >>     @@ -1,2 +1,3 @@
> >>      QA output created by 008
> >>     -Silence is golden
> >>     +send failed
> >>     +(see /xfstests/results//btrfs/008.full for details)
> > 
> > What's in the .full report?
> 
> $ cat 008.full
> Create subvolume '/test5/send_temp_008/send'
> Create a readonly snapshot of '/test5/send_temp_008/send' in '/test5/send_temp_008/send/snapshots/backup2'
> Create a readonly snapshot of '/test5/send_temp_008/send' in '/test5/send_temp_008/send/snapshots/backup3'
> ERROR: unable to resolve -f
> send failed

So it's because the newly added global options make option parsing more
strict and the fstests do not follow the order where options come first:

eg. from 008:

 80 $BTRFS_UTIL_PROG send $work_dir/snapshots/backup3/ -f $TEST_DIR/$tmp_dir/blah \
 81         >> $seqres.full 2>&1 || _fail "send failed"

ie "$work_dir/snapshots/backup3/" is non-option argument but "-f" is an
option. This is normally accepted by getopt as it reorders the arguments
so that options are always first.

I will delay the patch so that the fstests won't fail but this needs to
be fixed soon as the newly added global options are building block for
other enhancements.

      reply	other threads:[~2017-03-08 12:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-02 14:59 Btrfs progs pre-release 4.10-rc1 David Sterba
2017-03-07  2:03 ` Tsutomu Itoh
2017-03-07 11:54   ` David Sterba
2017-03-08  0:11     ` Tsutomu Itoh
2017-03-08 11:59       ` David Sterba [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=20170308115939.GZ4662@suse.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=t-itoh@jp.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).