From: Brian Foster <bfoster@redhat.com>
To: Geert Hendrickx <geert@hendrickx.be>
Cc: "Darrick J. Wong" <djwong@kernel.org>,
Eric Sandeen <sandeen@sandeen.net>,
xfs <linux-xfs@vger.kernel.org>
Subject: Re: xfs_admin -O feature upgrade feedback
Date: Wed, 3 Mar 2021 06:50:04 -0500 [thread overview]
Message-ID: <YD937HTr5Lq/YErv@bfoster> (raw)
In-Reply-To: <YD7C0v5rKopCJvk2@vera.ghen.be>
On Tue, Mar 02, 2021 at 11:57:22PM +0100, Geert Hendrickx wrote:
> On Tue, Mar 02, 2021 at 07:19:37 -0500, Brian Foster wrote:
> > It's not clear to me if you're reporting that feature upgrades spuriously
> > report this "Conversion failed ..." message (i.e., feature upgrade
> > succeeded, but repair found and fixed things expected to be problems due
> > to the feature upgrade), or that this error is reported if there is
> > something independently wrong with the fs. If the former, that seems like
> > a bug. If the latter, I think that's reasonable/expected behavior.
>
>
>
> There are sillier scenarios, like simply incorrect arguments. For example
> "xfs_admin -O bigtypo=1 /dev/foo" responds with: "Conversion failed, is the
> filesystem unmounted?"
>
> (where /dev/foo is the correct blockdevice, properly unmounted etc, but the
> options argument contains a typo)
>
> The proper xfs_repair error "unknown option -c bigtypo=1" gets thrown away.
>
>
> Other examples include "-O bigtime" => "bigtime requires a parameter" (with
> Darrick's patch for the other issue applied), or "bigtime=0" => "bigtime
> only supports upgrades", all dropped on the floor by xfs_admin and replaced
> with the one generic message that gives no indication of the actual problem.
> (the user keeps verifying whether the filesystem is unmounted and clean...)
>
Ok. I suppose in the scenario where xfs_repair runs on behalf of
xfs_admin and then fails immediately due to a usage error, it might be
more appropriate to dump whatever error xfs_repair exits with. I'm not
sure how best to filter that and/or deal with the issues Darrick points
out, but fair point...
Maybe a simple compromise is a verbose option for xfs_admin itself..?
I.e., the normal use case operates as it does now, but the failure case
would print something like:
"Feature conversion failed. Retry with -v for detailed error output."
... and then 'xfs_admin -v ...' would just pass through xfs_repair
output. Eh?
Brian
>
>
> Geert
>
>
next prev parent reply other threads:[~2021-03-04 0:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <YDy+OmsVCkTfiMPp@vera.ghen.be>
2021-03-01 19:18 ` xfs_admin -O feature upgrade feedback Darrick J. Wong
2021-03-01 22:31 ` Geert Hendrickx
2021-03-02 12:19 ` Brian Foster
2021-03-02 22:57 ` Geert Hendrickx
2021-03-03 11:50 ` Brian Foster [this message]
2021-03-03 13:20 ` Geert Hendrickx
2021-03-03 17:00 ` Darrick J. Wong
2021-03-04 2:07 ` Dave Chinner
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=YD937HTr5Lq/YErv@bfoster \
--to=bfoster@redhat.com \
--cc=djwong@kernel.org \
--cc=geert@hendrickx.be \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@sandeen.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.