From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: sandeen@redhat.com, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 31/29] xfs_scrub: handle scrub-only kernels more helpfully
Date: Thu, 1 Feb 2018 13:11:44 -0800 [thread overview]
Message-ID: <20180201211144.GS4849@magnolia> (raw)
In-Reply-To: <313224b9-67b0-cd94-fca5-a862761b2b02@sandeen.net>
On Thu, Feb 01, 2018 at 02:33:30PM -0600, Eric Sandeen wrote:
> If xfs_scrub is run today against a 4.15 kernel, it fails with
>
> EXPERIMENTAL xfs_scrub program in use! Use at your own risk!
> Error: /home: Kernel metadata optimization facility is required.
> Info: /home: Scrub aborted after phase 1.
> /home: 2 errors found.
>
> Be a bit kinder to the user and suggest a path forward. By the
> time we fail for missing preen or repair functionality, we do
> know that scrub is available, so suggest it.
>
> Further, rather than stating what is required, state what was not
> found ... we're failing, so state what was missing, vs. what is
> required - seems a bit more definitive.
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
> ---
>
> diff --git a/scrub/phase1.c b/scrub/phase1.c
> index 547767b..e78ac7d 100644
> --- a/scrub/phase1.c
> +++ b/scrub/phase1.c
> @@ -175,7 +175,7 @@ _("Does not appear to be an XFS filesystem!"));
> !xfs_can_scrub_attr(ctx) || !xfs_can_scrub_symlink(ctx) ||
> !xfs_can_scrub_parent(ctx)) {
> str_error(ctx, ctx->mntpoint,
> -_("Kernel metadata scrubbing facility is required."));
> +_("Kernel metadata scrubbing facility not available."));
"is not available"?
> return false;
> }
>
> @@ -183,10 +183,10 @@ _("Kernel metadata scrubbing facility is required."));
> if (ctx->mode != SCRUB_MODE_DRY_RUN && !xfs_can_repair(ctx)) {
> if (ctx->mode == SCRUB_MODE_PREEN)
> str_error(ctx, ctx->mntpoint,
> -_("Kernel metadata optimization facility is required."));
> +_("Kernel metadata optimization facility not available. Please use -n."));
I approve of s/is required/is not available/, but I have trouble with
the bare suggestion of running with -n. We're telling users that the
strategy they asked for (e.g. -y) is not available, so the only
realistic option is to choose a different strategy (i.e. -n). I don't
want them to get the impression that -n is some magic fixit for -y not
working (but maybe sysadmins are smarter than that?)
"Kernel metadata repair faciility not available. You can request a
metadata check with -n."
> else
> str_error(ctx, ctx->mntpoint,
> -_("Kernel metadata repair facility is required."));
> +_("Kernel metadata repair facility not not available. Please use -n."));
not not available? So it is? :)
--D
> return false;
> }
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2018-02-01 21:11 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-31 3:06 [PATCH v11.2 00/29] xfsprogs: online scrub/repair support Darrick J. Wong
2018-01-31 3:06 ` [PATCH 01/29] xfs_scrub: create online filesystem scrub program Darrick J. Wong
2018-01-31 3:06 ` [PATCH 02/29] xfs_scrub: common error handling Darrick J. Wong
2018-01-31 3:06 ` [PATCH 03/29] xfs_scrub: set up command line argument parsing Darrick J. Wong
2018-01-31 3:06 ` [PATCH 04/29] xfs_scrub: dispatch the various phases of the scrub program Darrick J. Wong
2018-01-31 3:07 ` [PATCH 05/29] xfs_scrub: figure out how many threads we're going to need Darrick J. Wong
2018-01-31 3:07 ` [PATCH 06/29] xfs_scrub: create an abstraction for a block device Darrick J. Wong
2018-01-31 3:07 ` [PATCH 07/29] xfs_scrub: find XFS filesystem geometry Darrick J. Wong
2018-01-31 3:07 ` [PATCH 08/29] xfs_scrub: add inode iteration functions Darrick J. Wong
2018-01-31 3:07 ` [PATCH 09/29] xfs_scrub: add space map " Darrick J. Wong
2018-01-31 3:07 ` [PATCH 10/29] xfs_scrub: add file " Darrick J. Wong
2018-01-31 3:07 ` [PATCH 11/29] xfs_scrub: filesystem counter collection functions Darrick J. Wong
2018-01-31 3:07 ` [PATCH 12/29] xfs_scrub: wrap the scrub ioctl Darrick J. Wong
2018-01-31 3:07 ` [PATCH 13/29] xfs_scrub: scan filesystem and AG metadata Darrick J. Wong
2018-01-31 3:08 ` [PATCH 14/29] xfs_scrub: thread-safe stats counter Darrick J. Wong
2018-01-31 3:08 ` [PATCH 15/29] xfs_scrub: scan inodes Darrick J. Wong
2018-01-31 3:08 ` [PATCH 16/29] xfs_scrub: check directory connectivity Darrick J. Wong
2018-01-31 3:08 ` [PATCH 17/29] xfs_scrub: warn about suspicious characters in directory/xattr names Darrick J. Wong
2018-01-31 3:08 ` [PATCH 18/29] xfs_scrub: warn about normalized Unicode name collisions Darrick J. Wong
2018-01-31 3:08 ` [PATCH 19/29] xfs_scrub: create a bitmap data structure Darrick J. Wong
2018-01-31 3:08 ` [PATCH 20/29] xfs_scrub: create infrastructure to read verify data blocks Darrick J. Wong
2018-01-31 3:08 ` [PATCH 21/29] xfs_scrub: scrub file " Darrick J. Wong
2018-01-31 3:09 ` [PATCH 22/29] xfs_scrub: optionally use SCSI READ VERIFY commands to scrub data blocks on disk Darrick J. Wong
2018-01-31 3:09 ` [PATCH 23/29] xfs_scrub: check summary counters Darrick J. Wong
2018-01-31 3:09 ` [PATCH 24/29] xfs_scrub: fstrim the free areas if there are no errors on the filesystem Darrick J. Wong
2018-01-31 3:09 ` [PATCH 25/29] xfs_scrub: progress indicator Darrick J. Wong
2018-01-31 3:09 ` [PATCH 26/29] xfs_scrub: create a script to scrub all xfs filesystems Darrick J. Wong
2018-01-31 6:40 ` [PATCH v2 " Darrick J. Wong
2018-01-31 3:09 ` [PATCH 27/29] xfs_scrub: integrate services with systemd Darrick J. Wong
2018-01-31 6:41 ` [PATCH v2 " Darrick J. Wong
2018-01-31 20:30 ` Eric Sandeen
2018-01-31 20:52 ` Darrick J. Wong
2018-01-31 20:54 ` [PATCH v3 " Darrick J. Wong
2018-01-31 3:09 ` [PATCH 28/29] xfs_scrub: wire up repair ioctl Darrick J. Wong
2018-01-31 3:09 ` [PATCH 29/29] xfs_scrub: schedule and manage optimizations/repairs to the filesystem Darrick J. Wong
2018-01-31 17:30 ` [PATCH 30/29] debian/control: remove nonexistent libreadline5-dev build dependency Darrick J. Wong
2018-02-01 20:33 ` [PATCH 31/29] xfs_scrub: handle scrub-only kernels more helpfully Eric Sandeen
2018-02-01 21:11 ` Darrick J. Wong [this message]
2018-02-01 21:46 ` [PATCH 31/29 v2] " Eric Sandeen
2018-02-01 21:49 ` Bill O'Donnell
2018-02-01 22:17 ` Darrick J. Wong
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=20180201211144.GS4849@magnolia \
--to=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox