From: "Darrick J. Wong" <djwong@kernel.org>
To: djwong@kernel.org, cem@kernel.org
Cc: linux-xfs@vger.kernel.org, hch@lst.de
Subject: [PATCH 03/10] xfs_io: support vectored scrub
Date: Mon, 01 Jul 2024 18:22:41 -0700 [thread overview]
Message-ID: <171988123180.2012546.8535944367157322296.stgit@frogsfrogsfrogs> (raw)
In-Reply-To: <171988123120.2012546.17403096510880884928.stgit@frogsfrogsfrogs>
From: Darrick J. Wong <djwong@kernel.org>
Create a new scrubv command to xfs_io to support the vectored scrub
ioctl.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
io/scrub.c | 368 +++++++++++++++++++++++++++++++++++++++++++++++------
man/man8/xfs_io.8 | 51 +++++++
2 files changed, 379 insertions(+), 40 deletions(-)
diff --git a/io/scrub.c b/io/scrub.c
index a77cd872fede..e03c1d0eaf1d 100644
--- a/io/scrub.c
+++ b/io/scrub.c
@@ -12,10 +12,13 @@
#include "libfrog/paths.h"
#include "libfrog/fsgeom.h"
#include "libfrog/scrub.h"
+#include "libfrog/logging.h"
#include "io.h"
+#include "list.h"
static struct cmdinfo scrub_cmd;
static struct cmdinfo repair_cmd;
+static const struct cmdinfo scrubv_cmd;
static void
scrub_help(void)
@@ -197,31 +200,38 @@ parse_args(
return 0;
}
-static int
-scrub_f(
- int argc,
- char **argv)
+static void
+report_scrub_outcome(
+ uint32_t flags)
{
- struct xfs_scrub_metadata meta;
- int error;
-
- error = parse_args(argc, argv, &scrub_cmd, &meta);
- if (error)
- return error;
-
- error = ioctl(file->fd, XFS_IOC_SCRUB_METADATA, &meta);
- if (error)
- perror("scrub");
- if (meta.sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
+ if (flags & XFS_SCRUB_OFLAG_CORRUPT)
printf(_("Corruption detected.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_PREEN)
+ if (flags & XFS_SCRUB_OFLAG_PREEN)
printf(_("Optimization possible.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_XFAIL)
+ if (flags & XFS_SCRUB_OFLAG_XFAIL)
printf(_("Cross-referencing failed.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_XCORRUPT)
+ if (flags & XFS_SCRUB_OFLAG_XCORRUPT)
printf(_("Corruption detected during cross-referencing.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_INCOMPLETE)
+ if (flags & XFS_SCRUB_OFLAG_INCOMPLETE)
printf(_("Scan was not complete.\n"));
+}
+
+static int
+scrub_f(
+ int argc,
+ char **argv)
+{
+ struct xfs_scrub_metadata meta;
+ int error;
+
+ error = parse_args(argc, argv, &scrub_cmd, &meta);
+ if (error)
+ return error;
+
+ error = ioctl(file->fd, XFS_IOC_SCRUB_METADATA, &meta);
+ if (error)
+ perror("scrub");
+ report_scrub_outcome(meta.sm_flags);
return 0;
}
@@ -239,6 +249,7 @@ scrub_init(void)
scrub_cmd.help = scrub_help;
add_command(&scrub_cmd);
+ add_command(&scrubv_cmd);
}
static void
@@ -267,34 +278,41 @@ repair_help(void)
printf("\n");
}
-static int
-repair_f(
- int argc,
- char **argv)
+static void
+report_repair_outcome(
+ uint32_t flags)
{
- struct xfs_scrub_metadata meta;
- int error;
-
- error = parse_args(argc, argv, &repair_cmd, &meta);
- if (error)
- return error;
- meta.sm_flags |= XFS_SCRUB_IFLAG_REPAIR;
-
- error = ioctl(file->fd, XFS_IOC_SCRUB_METADATA, &meta);
- if (error)
- perror("repair");
- if (meta.sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
+ if (flags & XFS_SCRUB_OFLAG_CORRUPT)
printf(_("Corruption remains.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_PREEN)
+ if (flags & XFS_SCRUB_OFLAG_PREEN)
printf(_("Optimization possible.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_XFAIL)
+ if (flags & XFS_SCRUB_OFLAG_XFAIL)
printf(_("Cross-referencing failed.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_XCORRUPT)
+ if (flags & XFS_SCRUB_OFLAG_XCORRUPT)
printf(_("Corruption still detected during cross-referencing.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_INCOMPLETE)
+ if (flags & XFS_SCRUB_OFLAG_INCOMPLETE)
printf(_("Repair was not complete.\n"));
- if (meta.sm_flags & XFS_SCRUB_OFLAG_NO_REPAIR_NEEDED)
+ if (flags & XFS_SCRUB_OFLAG_NO_REPAIR_NEEDED)
printf(_("Metadata did not need repair or optimization.\n"));
+}
+
+static int
+repair_f(
+ int argc,
+ char **argv)
+{
+ struct xfs_scrub_metadata meta;
+ int error;
+
+ error = parse_args(argc, argv, &repair_cmd, &meta);
+ if (error)
+ return error;
+ meta.sm_flags |= XFS_SCRUB_IFLAG_REPAIR;
+
+ error = ioctl(file->fd, XFS_IOC_SCRUB_METADATA, &meta);
+ if (error)
+ perror("repair");
+ report_repair_outcome(meta.sm_flags);
return 0;
}
@@ -315,3 +333,273 @@ repair_init(void)
add_command(&repair_cmd);
}
+
+static void
+scrubv_help(void)
+{
+ printf(_(
+"\n"
+" Scrubs pieces of XFS filesystem metadata. The first argument is the group\n"
+" of metadata to examine. If the group is 'ag', the second parameter should\n"
+" be the AG number. If the group is 'inode', the second and third parameters\n"
+" should be the inode number and generation number to act upon; if these are\n"
+" omitted, the scrub is performed on the open file. If the group is 'fs',\n"
+" 'summary', or 'probe', there are no other parameters.\n"
+"\n"
+" Flags are -d for debug, and -r to allow repairs.\n"
+" -b NN will insert a scrub barrier after every NN scrubs, and -m sets the\n"
+" desired corruption mask in all barriers. -w pauses for some microseconds\n"
+" after each scrub call.\n"
+"\n"
+" Example:\n"
+" 'scrubv ag 3' - scrub all metadata in AG 3.\n"
+" 'scrubv ag 3 -b 2 -m 0x4' - scrub all metadata in AG 3, and use barriers\n"
+" every third scrub to exit early if there are optimizations.\n"
+" 'scrubv fs' - scrub all non-AG non-file metadata.\n"
+" 'scrubv inode' - scrub all metadata for the open file.\n"
+" 'scrubv inode 128 13525' - scrub all metadata for inode 128 gen 13525.\n"
+" 'scrubv probe' - check for presence of online scrub.\n"
+" 'scrubv summary' - scrub all summary metadata.\n"));
+}
+
+/* Fill out the scrub vectors for a group of scrubber (ag, ino, fs, summary) */
+static void
+scrubv_fill_group(
+ struct xfrog_scrubv *scrubv,
+ int barrier_interval,
+ __u32 barrier_mask,
+ enum xfrog_scrub_group group)
+{
+ const struct xfrog_scrub_descr *d;
+ struct xfs_scrub_vec *v;
+ unsigned int i;
+
+ for (i = 0, d = xfrog_scrubbers; i < XFS_SCRUB_TYPE_NR; i++, d++) {
+ if (d->group != group)
+ continue;
+
+ v = xfrog_scrubv_next_vector(scrubv);
+ v->sv_type = i;
+
+ if (barrier_interval &&
+ scrubv->head.svh_nr % (barrier_interval + 1) == 0) {
+ v = xfrog_scrubv_next_vector(scrubv);
+ v->sv_flags = barrier_mask;
+ v->sv_type = XFS_SCRUB_TYPE_BARRIER;
+ }
+ }
+}
+
+static int
+scrubv_f(
+ int argc,
+ char **argv)
+{
+ struct xfrog_scrubv scrubv = { };
+ struct xfs_fd xfd = XFS_FD_INIT(file->fd);
+ struct xfs_scrub_vec *v;
+ uint32_t flags = 0;
+ __u32 barrier_mask = XFS_SCRUB_OFLAG_CORRUPT;
+ enum xfrog_scrub_group group;
+ bool debug = false;
+ int version = -1;
+ int barrier_interval = 0;
+ int rest_us = 0;
+ int c;
+ int error;
+
+ xfrog_scrubv_init(&scrubv);
+
+ while ((c = getopt(argc, argv, "b:dm:rv:w:")) != EOF) {
+ switch (c) {
+ case 'b':
+ barrier_interval = atoi(optarg);
+ if (barrier_interval < 0) {
+ fprintf(stderr,
+ _("Negative barrier interval makes no sense.\n"));
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+ break;
+ case 'd':
+ debug = true;
+ break;
+ case 'm':
+ barrier_mask = strtoul(optarg, NULL, 0);
+ break;
+ case 'r':
+ flags |= XFS_SCRUB_IFLAG_REPAIR;
+ break;
+ case 'v':
+ if (!strcmp("single", optarg)) {
+ version = 0;
+ } else if (!strcmp("vector", optarg)) {
+ version = 1;
+ } else {
+ fprintf(stderr,
+ _("API version must be 'single' or 'vector'.\n"));
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+ break;
+ case 'w':
+ rest_us = atoi(optarg);
+ if (rest_us < 0) {
+ fprintf(stderr,
+ _("Rest time must be positive.\n"));
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+ break;
+ default:
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+ }
+ if (optind > argc - 1) {
+ fprintf(stderr,
+ _("Must have at least one positional argument.\n"));
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+
+ if ((flags & XFS_SCRUB_IFLAG_REPAIR) && !expert) {
+ printf(_("Repair flag requires expert mode.\n"));
+ return 1;
+ }
+
+ scrubv.head.svh_rest_us = rest_us;
+ foreach_xfrog_scrubv_vec(&scrubv, c, v)
+ v->sv_flags = flags;
+
+ /* Extract group and domain information from cmdline. */
+ if (!strcmp(argv[optind], "probe"))
+ group = XFROG_SCRUB_GROUP_NONE;
+ else if (!strcmp(argv[optind], "agheader"))
+ group = XFROG_SCRUB_GROUP_AGHEADER;
+ else if (!strcmp(argv[optind], "ag"))
+ group = XFROG_SCRUB_GROUP_PERAG;
+ else if (!strcmp(argv[optind], "fs"))
+ group = XFROG_SCRUB_GROUP_FS;
+ else if (!strcmp(argv[optind], "inode"))
+ group = XFROG_SCRUB_GROUP_INODE;
+ else if (!strcmp(argv[optind], "iscan"))
+ group = XFROG_SCRUB_GROUP_ISCAN;
+ else if (!strcmp(argv[optind], "summary"))
+ group = XFROG_SCRUB_GROUP_SUMMARY;
+ else {
+ printf(_("Unknown group '%s'.\n"), argv[optind]);
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+ optind++;
+
+ switch (group) {
+ case XFROG_SCRUB_GROUP_INODE:
+ if (!parse_inode(argc, argv, optind, &scrubv.head.svh_ino,
+ &scrubv.head.svh_gen)) {
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+ break;
+ case XFROG_SCRUB_GROUP_AGHEADER:
+ case XFROG_SCRUB_GROUP_PERAG:
+ if (!parse_agno(argc, argv, optind, &scrubv.head.svh_agno)) {
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+ break;
+ case XFROG_SCRUB_GROUP_FS:
+ case XFROG_SCRUB_GROUP_SUMMARY:
+ case XFROG_SCRUB_GROUP_ISCAN:
+ case XFROG_SCRUB_GROUP_NONE:
+ if (!parse_none(argc, optind)) {
+ exitcode = 1;
+ return command_usage(&scrubv_cmd);
+ }
+ break;
+ default:
+ ASSERT(0);
+ break;
+ }
+ scrubv_fill_group(&scrubv, barrier_interval, barrier_mask, group);
+ assert(scrubv.head.svh_nr <= XFROG_SCRUBV_MAX_VECTORS);
+
+ error = -xfd_prepare_geometry(&xfd);
+ if (error) {
+ xfrog_perror(error, "xfd_prepare_geometry");
+ exitcode = 1;
+ return 0;
+ }
+
+ switch (version) {
+ case 0:
+ xfd.flags |= XFROG_FLAG_SCRUB_FORCE_SINGLE;
+ break;
+ case 1:
+ xfd.flags |= XFROG_FLAG_SCRUB_FORCE_VECTOR;
+ break;
+ default:
+ break;
+ }
+
+ error = -xfrog_scrubv_metadata(&xfd, &scrubv);
+ if (error) {
+ xfrog_perror(error, "xfrog_scrub_many");
+ exitcode = 1;
+ return 0;
+ }
+
+ /* Dump what happened. */
+ if (debug) {
+ foreach_xfrog_scrubv_vec(&scrubv, c, v) {
+ const char *type;
+
+ if (v->sv_type == XFS_SCRUB_TYPE_BARRIER)
+ type = _("barrier");
+ else
+ type = _(xfrog_scrubbers[v->sv_type].descr);
+ printf(_("[%02u] %-25s: flags 0x%x ret %d\n"), c, type,
+ v->sv_flags, v->sv_ret);
+ }
+ }
+
+ /* Figure out what happened. */
+ foreach_xfrog_scrubv_vec(&scrubv, c, v) {
+ /* Report barrier failures. */
+ if (v->sv_type == XFS_SCRUB_TYPE_BARRIER) {
+ if (v->sv_ret) {
+ printf(_("barrier: FAILED\n"));
+ break;
+ }
+ continue;
+ }
+
+ printf("%s: ", _(xfrog_scrubbers[v->sv_type].descr));
+ switch (v->sv_ret) {
+ case 0:
+ break;
+ default:
+ printf("%s\n", strerror(-v->sv_ret));
+ continue;
+ }
+ if (!(v->sv_flags & XFS_SCRUB_FLAGS_OUT))
+ printf(_("OK.\n"));
+ else if (v->sv_flags & XFS_SCRUB_IFLAG_REPAIR)
+ report_repair_outcome(v->sv_flags);
+ else
+ report_scrub_outcome(v->sv_flags);
+ }
+
+ return 0;
+}
+
+static const struct cmdinfo scrubv_cmd = {
+ .name = "scrubv",
+ .cfunc = scrubv_f,
+ .argmin = 1,
+ .argmax = -1,
+ .flags = CMD_NOMAP_OK,
+ .oneline = N_("vectored metadata scrub"),
+ .help = scrubv_help,
+};
diff --git a/man/man8/xfs_io.8 b/man/man8/xfs_io.8
index 02036e3d093b..657bdaec4381 100644
--- a/man/man8/xfs_io.8
+++ b/man/man8/xfs_io.8
@@ -1392,6 +1392,57 @@ inode number and generation number are specified.
.RE
.PD
.TP
+.BI "scrubv [ \-b NN ] [ \-d ] [ \-m oflags ] [ \-r ] [ \-v NN ] [ \-w ms ] " group " [ " agnumber " | " "ino" " " "gen" " ]"
+Scrub a bunch of internal XFS filesystem metadata.
+The
+.BI group
+parameter specifies which group of metadata to scrub.
+Valid groups are
+.IR ag ", " agheader ", " inode ", " iscan ", " fs ", " probe ", " rtgroup ", or " summary .
+
+For
+.BR ag " and " agheader
+metadata, one AG number must be specified.
+For
+.B inode
+metadata, the scrub is applied to the open file unless the
+inode number and generation number are specified.
+For
+.B rtgroup
+metadata, one rt group number must be specified.
+
+.RS 1.0i
+.PD 0
+.TP
+.BI "\-b " NN
+Inject scrub barriers into the vector stream at the given interval.
+Barriers abort vector processing if any previous scrub function found
+corruption.
+.TP
+.BI \-d
+Enables debug mode.
+.TP
+.BI \-m
+Fail scrub barriers if any of these scrub output flags are seen.
+.TP
+.BI \-r
+Repair metadata if corruptions are found.
+This option requires expert mode.
+.TP
+.BI "\-v " NN
+Force a particular API version.
+.B single
+selects XFS_SCRUB_METADATA (one-by-one).
+.B vector
+selects XFS_SCRUBV_METADATA (vectored).
+If no option is specified, vector mode will be used, with a fallback to single
+mode if the kernel doesn't recognize the vector mode ioctl.
+.TP
+.BI "\-w " us
+Wait the given number of microseconds between each scrub function.
+.RE
+.PD
+.TP
.BI "repair " type " [ " agnumber " | " "ino" " " "gen" " ]"
Repair internal XFS filesystem metadata. The
.BI type
next prev parent reply other threads:[~2024-07-02 1:22 UTC|newest]
Thread overview: 297+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-02 0:43 [PATCHBOMB] xfsprogs: program changes (mostly xfs_scrub) for 6.10 Darrick J. Wong
2024-07-02 0:49 ` [PATCHSET v30.7 01/16] xfsprogs: atomic file updates Darrick J. Wong
2024-07-02 0:53 ` [PATCH 01/12] man: document the exchange-range ioctl Darrick J. Wong
2024-07-02 5:08 ` Christoph Hellwig
2024-07-02 0:54 ` [PATCH 02/12] man: document XFS_FSOP_GEOM_FLAGS_EXCHRANGE Darrick J. Wong
2024-07-02 5:08 ` Christoph Hellwig
2024-07-02 0:54 ` [PATCH 03/12] libhandle: add support for bulkstat v5 Darrick J. Wong
2024-07-02 5:09 ` Christoph Hellwig
2024-07-02 19:48 ` Darrick J. Wong
2024-07-02 0:54 ` [PATCH 04/12] libfrog: add support for exchange range ioctl family Darrick J. Wong
2024-07-02 5:09 ` Christoph Hellwig
2024-07-02 0:54 ` [PATCH 05/12] xfs_db: advertise exchange-range in the version command Darrick J. Wong
2024-07-02 5:10 ` Christoph Hellwig
2024-07-02 0:55 ` [PATCH 06/12] xfs_logprint: support dumping exchmaps log items Darrick J. Wong
2024-07-02 5:11 ` Christoph Hellwig
2024-07-02 19:49 ` Darrick J. Wong
2024-07-02 0:55 ` [PATCH 07/12] xfs_fsr: convert to bulkstat v5 ioctls Darrick J. Wong
2024-07-02 5:13 ` Christoph Hellwig
2024-07-02 19:51 ` Darrick J. Wong
2024-07-02 0:55 ` [PATCH 08/12] xfs_fsr: skip the xattr/forkoff levering with the newer swapext implementations Darrick J. Wong
2024-07-02 5:14 ` Christoph Hellwig
2024-07-02 0:55 ` [PATCH 09/12] xfs_io: create exchangerange command to test file range exchange ioctl Darrick J. Wong
2024-07-02 5:15 ` Christoph Hellwig
2024-07-02 19:53 ` Darrick J. Wong
2024-07-02 0:56 ` [PATCH 10/12] libfrog: advertise exchange-range support Darrick J. Wong
2024-07-02 5:15 ` Christoph Hellwig
2024-07-02 0:56 ` [PATCH 11/12] xfs_repair: add exchange-range to file systems Darrick J. Wong
2024-07-02 5:15 ` Christoph Hellwig
2024-07-02 0:56 ` [PATCH 12/12] mkfs: add a formatting option for exchange-range Darrick J. Wong
2024-07-02 5:16 ` Christoph Hellwig
2024-07-02 0:49 ` [PATCHSET v30.7 02/16] xfsprogs: inode-related repair fixes Darrick J. Wong
2024-07-02 0:56 ` [PATCH 1/3] xfs_{db,repair}: add an explicit owner field to xfs_da_args Darrick J. Wong
2024-07-02 5:16 ` Christoph Hellwig
2024-07-02 0:57 ` [PATCH 2/3] libxfs: port the bumplink function from the kernel Darrick J. Wong
2024-07-02 5:16 ` Christoph Hellwig
2024-07-02 0:57 ` [PATCH 3/3] mkfs/repair: pin inodes that would otherwise overflow link count Darrick J. Wong
2024-07-02 5:17 ` Christoph Hellwig
2024-07-02 0:50 ` [PATCHSET v30.7 03/16] xfs_scrub: detect deceptive filename extensions Darrick J. Wong
2024-07-02 0:57 ` [PATCH 01/13] xfs_scrub: use proper UChar string iterators Darrick J. Wong
2024-07-02 5:18 ` Christoph Hellwig
2024-07-02 0:57 ` [PATCH 02/13] xfs_scrub: hoist code that removes ignorable characters Darrick J. Wong
2024-07-02 5:21 ` Christoph Hellwig
2024-07-02 0:58 ` [PATCH 03/13] xfs_scrub: add a couple of omitted invisible code points Darrick J. Wong
2024-07-02 5:22 ` Christoph Hellwig
2024-07-03 1:59 ` Darrick J. Wong
2024-07-03 4:27 ` Christoph Hellwig
2024-07-03 5:02 ` Darrick J. Wong
2024-07-03 18:35 ` Darrick J. Wong
2024-07-04 7:22 ` Christoph Hellwig
2024-07-02 0:58 ` [PATCH 04/13] xfs_scrub: avoid potential UAF after freeing a duplicate name entry Darrick J. Wong
2024-07-02 5:22 ` Christoph Hellwig
2024-07-02 0:58 ` [PATCH 05/13] xfs_scrub: guard against libicu returning negative buffer lengths Darrick J. Wong
2024-07-02 5:22 ` Christoph Hellwig
2024-07-02 0:58 ` [PATCH 06/13] xfs_scrub: hoist non-rendering character predicate Darrick J. Wong
2024-07-02 5:23 ` Christoph Hellwig
2024-07-02 0:59 ` [PATCH 07/13] xfs_scrub: store bad flags with the name entry Darrick J. Wong
2024-07-02 5:23 ` Christoph Hellwig
2024-07-02 0:59 ` [PATCH 08/13] xfs_scrub: rename UNICRASH_ZERO_WIDTH to UNICRASH_INVISIBLE Darrick J. Wong
2024-07-02 5:23 ` Christoph Hellwig
2024-07-02 0:59 ` [PATCH 09/13] xfs_scrub: type-coerce the UNICRASH_* flags Darrick J. Wong
2024-07-02 5:24 ` Christoph Hellwig
2024-07-02 0:59 ` [PATCH 10/13] xfs_scrub: reduce size of struct name_entry Darrick J. Wong
2024-07-02 5:24 ` Christoph Hellwig
2024-07-02 1:00 ` [PATCH 11/13] xfs_scrub: rename struct unicrash.normalizer Darrick J. Wong
2024-07-02 5:24 ` Christoph Hellwig
2024-07-02 1:00 ` [PATCH 12/13] xfs_scrub: report deceptive file extensions Darrick J. Wong
2024-07-02 5:25 ` Christoph Hellwig
2024-07-02 1:00 ` [PATCH 13/13] xfs_scrub: dump unicode points Darrick J. Wong
2024-07-02 5:25 ` Christoph Hellwig
2024-07-02 0:50 ` [PATCHSET v30.7 04/16] xfs_scrub: move fstrim to a separate phase Darrick J. Wong
2024-07-02 1:01 ` [PATCH 1/8] xfs_scrub: move FITRIM to phase 8 Darrick J. Wong
2024-07-02 5:27 ` Christoph Hellwig
2024-07-02 1:01 ` [PATCH 2/8] xfs_scrub: ignore phase 8 if the user disabled fstrim Darrick J. Wong
2024-07-02 5:27 ` Christoph Hellwig
2024-07-02 1:01 ` [PATCH 3/8] xfs_scrub: collapse trim_filesystem Darrick J. Wong
2024-07-02 5:27 ` Christoph Hellwig
2024-07-02 1:01 ` [PATCH 4/8] xfs_scrub: fix the work estimation for phase 8 Darrick J. Wong
2024-07-02 5:27 ` Christoph Hellwig
2024-07-02 1:02 ` [PATCH 5/8] xfs_scrub: report FITRIM errors properly Darrick J. Wong
2024-07-02 5:28 ` Christoph Hellwig
2024-07-02 1:02 ` [PATCH 6/8] xfs_scrub: don't call FITRIM after runtime errors Darrick J. Wong
2024-07-02 5:28 ` Christoph Hellwig
2024-07-02 1:02 ` [PATCH 7/8] xfs_scrub: don't trim the first agbno of each AG for better performance Darrick J. Wong
2024-07-02 5:30 ` Christoph Hellwig
2024-07-03 3:45 ` Darrick J. Wong
2024-07-03 3:52 ` [PATCH v30.7.1 7/8] xfs_scrub: improve responsiveness while trimming the filesystem Darrick J. Wong
2024-07-03 4:33 ` Christoph Hellwig
2024-07-03 4:50 ` Darrick J. Wong
2024-07-02 1:02 ` [PATCH 8/8] xfs_scrub: improve progress meter for phase 8 fstrimming Darrick J. Wong
2024-07-02 0:50 ` [PATCHSET v30.7 05/16] xfs_scrub: use free space histograms to reduce fstrim runtime Darrick J. Wong
2024-07-02 1:03 ` [PATCH 1/7] libfrog: hoist free space histogram code Darrick J. Wong
2024-07-02 5:32 ` Christoph Hellwig
2024-07-03 2:47 ` Darrick J. Wong
2024-07-03 4:30 ` Christoph Hellwig
2024-07-03 4:55 ` Darrick J. Wong
2024-07-02 1:03 ` [PATCH 2/7] libfrog: print wider columns for free space histogram Darrick J. Wong
2024-07-02 5:33 ` Christoph Hellwig
2024-07-02 1:03 ` [PATCH 3/7] libfrog: print cdf of free space buckets Darrick J. Wong
2024-07-02 5:33 ` Christoph Hellwig
2024-07-02 1:03 ` [PATCH 4/7] xfs_scrub: don't close stdout when closing the progress bar Darrick J. Wong
2024-07-02 5:33 ` Christoph Hellwig
2024-07-02 1:04 ` [PATCH 5/7] xfs_scrub: remove pointless spacemap.c arguments Darrick J. Wong
2024-07-02 5:33 ` Christoph Hellwig
2024-07-02 1:04 ` [PATCH 6/7] xfs_scrub: collect free space histograms during phase 7 Darrick J. Wong
2024-07-02 5:34 ` Christoph Hellwig
2024-07-02 1:04 ` [PATCH 7/7] xfs_scrub: tune fstrim minlen parameter based on free space histograms Darrick J. Wong
2024-07-02 5:36 ` Christoph Hellwig
2024-07-03 2:29 ` Darrick J. Wong
2024-07-03 4:29 ` Christoph Hellwig
2024-07-03 4:55 ` Darrick J. Wong
2024-07-03 4:58 ` Christoph Hellwig
2024-07-03 5:04 ` Darrick J. Wong
2024-07-03 5:11 ` Christoph Hellwig
2024-07-03 5:17 ` Darrick J. Wong
2024-07-02 0:50 ` [PATCHSET v30.7 06/16] xfs_scrub: tighten security of systemd services Darrick J. Wong
2024-07-02 1:04 ` [PATCH 1/6] xfs_scrub: allow auxiliary pathnames for sandboxing Darrick J. Wong
2024-07-02 5:37 ` Christoph Hellwig
2024-07-02 1:05 ` [PATCH 2/6] xfs_scrub.service: reduce background CPU usage to less than one core if possible Darrick J. Wong
2024-07-02 1:05 ` [PATCH 3/6] xfs_scrub: use dynamic users when running as a systemd service Darrick J. Wong
2024-07-02 1:05 ` [PATCH 4/6] xfs_scrub: tighten up the security on the background " Darrick J. Wong
2024-07-02 1:06 ` [PATCH 5/6] xfs_scrub_fail: " Darrick J. Wong
2024-07-02 5:37 ` Christoph Hellwig
2024-07-02 1:06 ` [PATCH 6/6] xfs_scrub_all: " Darrick J. Wong
2024-07-02 5:37 ` Christoph Hellwig
2024-07-02 0:51 ` [PATCHSET v30.7 07/16] xfs_scrub_all: automatic media scan service Darrick J. Wong
2024-07-02 1:06 ` [PATCH 1/6] xfs_scrub_all: only use the xfs_scrub@ systemd services in service mode Darrick J. Wong
2024-07-02 5:38 ` Christoph Hellwig
2024-07-02 1:06 ` [PATCH 2/6] xfs_scrub_all: remove journalctl background process Darrick J. Wong
2024-07-02 5:38 ` Christoph Hellwig
2024-07-02 1:07 ` [PATCH 3/6] xfs_scrub_all: support metadata+media scans of all filesystems Darrick J. Wong
2024-07-02 5:39 ` Christoph Hellwig
2024-07-02 1:07 ` [PATCH 4/6] xfs_scrub_all: enable periodic file data scrubs automatically Darrick J. Wong
2024-07-02 5:39 ` Christoph Hellwig
2024-07-02 1:07 ` [PATCH 5/6] xfs_scrub_all: trigger automatic media scans once per month Darrick J. Wong
2024-07-02 5:39 ` Christoph Hellwig
2024-07-02 1:07 ` [PATCH 6/6] xfs_scrub_all: failure reporting for the xfs_scrub_all job Darrick J. Wong
2024-07-02 5:39 ` Christoph Hellwig
2024-07-02 0:51 ` [PATCHSET v30.7 08/16] xfs_scrub_all: improve systemd handling Darrick J. Wong
2024-07-02 1:08 ` [PATCH 1/5] xfs_scrub_all: encapsulate all the subprocess code in an object Darrick J. Wong
2024-07-02 5:40 ` Christoph Hellwig
2024-07-02 1:08 ` [PATCH 2/5] xfs_scrub_all: encapsulate all the systemctl " Darrick J. Wong
2024-07-02 5:41 ` Christoph Hellwig
2024-07-02 1:08 ` [PATCH 3/5] xfs_scrub_all: add CLI option for easier debugging Darrick J. Wong
2024-07-02 5:42 ` Christoph Hellwig
2024-07-02 1:08 ` [PATCH 4/5] xfs_scrub_all: convert systemctl calls to dbus Darrick J. Wong
2024-07-02 5:42 ` Christoph Hellwig
2024-07-02 1:09 ` [PATCH 5/5] xfs_scrub_all: implement retry and backoff for dbus calls Darrick J. Wong
2024-07-02 5:42 ` Christoph Hellwig
2024-07-02 0:51 ` [PATCHSET v30.7 09/16] xfs_scrub: automatic optimization by default Darrick J. Wong
2024-07-02 1:09 ` [PATCH 1/3] xfs_scrub: automatic downgrades to dry-run mode in service mode Darrick J. Wong
2024-07-02 5:43 ` Christoph Hellwig
2024-07-02 1:09 ` [PATCH 2/3] xfs_scrub: add an optimization-only mode Darrick J. Wong
2024-07-02 5:43 ` Christoph Hellwig
2024-07-02 1:09 ` [PATCH 3/3] debian: enable xfs_scrub_all systemd timer services by default Darrick J. Wong
2024-07-02 5:44 ` Christoph Hellwig
2024-07-03 2:59 ` Darrick J. Wong
2024-07-03 4:31 ` Christoph Hellwig
2024-07-03 5:01 ` Darrick J. Wong
2024-07-09 22:53 ` Darrick J. Wong
2024-07-10 6:18 ` Christoph Hellwig
2024-07-16 16:46 ` Darrick J. Wong
2024-07-17 4:59 ` Christoph Hellwig
2024-07-17 16:15 ` Darrick J. Wong
2024-07-17 16:45 ` Christoph Hellwig
2024-07-22 4:12 ` Darrick J. Wong
2024-07-22 12:34 ` Christoph Hellwig
2024-07-23 23:29 ` Darrick J. Wong
2024-07-24 13:18 ` Christoph Hellwig
2024-07-16 16:47 ` [RFC PATCH 1/2] misc: shift install targets Darrick J. Wong
2024-07-16 16:49 ` [RFC PATCH 2/2] debian: create a new package for automatic self-healing Darrick J. Wong
2024-07-17 5:00 ` [RFC PATCH 1/2] misc: shift install targets Christoph Hellwig
2024-07-17 16:19 ` Darrick J. Wong
2024-07-17 16:43 ` Christoph Hellwig
2024-07-02 0:51 ` [PATCHSET v13.7 10/16] xfsprogs: improve extended attribute validation Darrick J. Wong
2024-07-02 1:10 ` [PATCH 1/3] xfs_repair: check free space requirements before allowing upgrades Darrick J. Wong
2024-07-02 5:44 ` Christoph Hellwig
2024-07-02 1:10 ` [PATCH 2/3] xfs_repair: enforce one namespace bit per extended attribute Darrick J. Wong
2024-07-02 5:44 ` Christoph Hellwig
2024-07-02 1:10 ` [PATCH 3/3] xfs_repair: check for unknown flags in attr entries Darrick J. Wong
2024-07-02 5:45 ` Christoph Hellwig
2024-07-02 0:52 ` [PATCHSET v13.7 11/16] xfsprogs: Parent Pointers Darrick J. Wong
2024-07-02 1:10 ` [PATCH 01/24] libxfs: create attr log item opcodes and formats for parent pointers Darrick J. Wong
2024-07-02 6:24 ` Christoph Hellwig
2024-07-02 1:11 ` [PATCH 02/24] xfs_{db,repair}: implement new attr hash value function Darrick J. Wong
2024-07-02 6:24 ` Christoph Hellwig
2024-07-02 1:11 ` [PATCH 03/24] xfs_logprint: dump new attr log item fields Darrick J. Wong
2024-07-02 6:25 ` Christoph Hellwig
2024-07-02 20:02 ` Darrick J. Wong
2024-07-02 1:11 ` [PATCH 04/24] man: document the XFS_IOC_GETPARENTS ioctl Darrick J. Wong
2024-07-02 6:25 ` Christoph Hellwig
2024-07-02 1:11 ` [PATCH 05/24] libfrog: report parent pointers to userspace Darrick J. Wong
2024-07-02 6:25 ` Christoph Hellwig
2024-07-02 1:12 ` [PATCH 06/24] libfrog: add parent pointer support code Darrick J. Wong
2024-07-02 6:26 ` Christoph Hellwig
2024-07-02 1:12 ` [PATCH 07/24] xfs_io: adapt parent command to new parent pointer ioctls Darrick J. Wong
2024-07-02 6:26 ` Christoph Hellwig
2024-07-02 1:12 ` [PATCH 08/24] xfs_io: Add i, n and f flags to parent command Darrick J. Wong
2024-07-02 6:26 ` Christoph Hellwig
2024-07-02 1:13 ` [PATCH 09/24] xfs_logprint: decode parent pointers in ATTRI items fully Darrick J. Wong
2024-07-02 6:27 ` Christoph Hellwig
2024-07-02 1:13 ` [PATCH 10/24] xfs_spaceman: report file paths Darrick J. Wong
2024-07-02 6:27 ` Christoph Hellwig
2024-07-02 1:13 ` [PATCH 11/24] xfs_scrub: use parent pointers when possible to report file operations Darrick J. Wong
2024-07-02 6:27 ` Christoph Hellwig
2024-07-02 1:13 ` [PATCH 12/24] xfs_scrub: use parent pointers to report lost file data Darrick J. Wong
2024-07-02 6:28 ` Christoph Hellwig
2024-07-02 1:14 ` [PATCH 13/24] xfs_db: report parent pointers in version command Darrick J. Wong
2024-07-02 6:28 ` Christoph Hellwig
2024-07-02 1:14 ` [PATCH 14/24] xfs_db: report parent bit on xattrs Darrick J. Wong
2024-07-02 6:28 ` Christoph Hellwig
2024-07-02 1:14 ` [PATCH 15/24] xfs_db: report parent pointers embedded in xattrs Darrick J. Wong
2024-07-02 6:28 ` Christoph Hellwig
2024-07-02 1:14 ` [PATCH 16/24] xfs_db: obfuscate dirent and parent pointer names consistently Darrick J. Wong
2024-07-02 6:33 ` Christoph Hellwig
2024-07-02 1:15 ` [PATCH 17/24] libxfs: export attr3_leaf_hdr_from_disk via libxfs_api_defs.h Darrick J. Wong
2024-07-02 6:35 ` Christoph Hellwig
2024-07-02 1:15 ` [PATCH 18/24] xfs_db: add a parents command to list the parents of a file Darrick J. Wong
2024-07-02 6:35 ` Christoph Hellwig
2024-07-02 1:15 ` [PATCH 19/24] xfs_db: make attr_set and attr_remove handle parent pointers Darrick J. Wong
2024-07-02 6:36 ` Christoph Hellwig
2024-07-02 1:15 ` [PATCH 20/24] xfs_db: add link and unlink expert commands Darrick J. Wong
2024-07-02 6:36 ` Christoph Hellwig
2024-07-02 1:16 ` [PATCH 21/24] xfs_db: compute hashes of parent pointers Darrick J. Wong
2024-07-02 6:37 ` Christoph Hellwig
2024-07-02 1:16 ` [PATCH 22/24] libxfs: create new files with attr forks if necessary Darrick J. Wong
2024-07-02 6:37 ` Christoph Hellwig
2024-07-02 1:16 ` [PATCH 23/24] mkfs: Add parent pointers during protofile creation Darrick J. Wong
2024-07-02 6:37 ` Christoph Hellwig
2024-07-02 1:16 ` [PATCH 24/24] mkfs: enable formatting with parent pointers Darrick J. Wong
2024-07-02 6:38 ` Christoph Hellwig
2024-07-02 0:52 ` [PATCHSET v13.7 12/16] xfsprogs: scrubbing for " Darrick J. Wong
2024-07-02 1:17 ` [PATCH 1/2] xfs: create a blob array data structure Darrick J. Wong
2024-07-02 6:41 ` Christoph Hellwig
2024-07-02 1:17 ` [PATCH 2/2] man2: update ioctl_xfs_scrub_metadata.2 for parent pointers Darrick J. Wong
2024-07-02 6:41 ` Christoph Hellwig
2024-07-02 0:52 ` [PATCHSET v13.7 13/16] xfsprogs: offline repair " Darrick J. Wong
2024-07-02 1:17 ` [PATCH 01/12] xfs_db: remove some boilerplate from xfs_attr_set Darrick J. Wong
2024-07-02 6:41 ` Christoph Hellwig
2024-07-02 1:17 ` [PATCH 02/12] xfs_db: actually report errors from libxfs_attr_set Darrick J. Wong
2024-07-02 6:41 ` Christoph Hellwig
2024-07-02 1:18 ` [PATCH 03/12] xfs_repair: junk parent pointer attributes when filesystem doesn't support them Darrick J. Wong
2024-07-02 6:42 ` Christoph Hellwig
2024-07-02 1:18 ` [PATCH 04/12] xfs_repair: add parent pointers when messing with /lost+found Darrick J. Wong
2024-07-02 6:42 ` Christoph Hellwig
2024-07-02 1:18 ` [PATCH 05/12] xfs_repair: junk duplicate hashtab entries when processing sf dirents Darrick J. Wong
2024-07-02 6:43 ` Christoph Hellwig
2024-07-02 1:19 ` [PATCH 06/12] xfs_repair: build a parent pointer index Darrick J. Wong
2024-07-02 6:45 ` Christoph Hellwig
2024-07-02 1:19 ` [PATCH 07/12] xfs_repair: move the global dirent name store to a separate object Darrick J. Wong
2024-07-02 6:45 ` Christoph Hellwig
2024-07-02 1:19 ` [PATCH 08/12] xfs_repair: deduplicate strings stored in string blob Darrick J. Wong
2024-07-02 6:46 ` Christoph Hellwig
2024-07-02 1:19 ` [PATCH 09/12] xfs_repair: check parent pointers Darrick J. Wong
2024-07-02 6:47 ` Christoph Hellwig
2024-07-02 1:20 ` [PATCH 10/12] xfs_repair: dump garbage parent pointer attributes Darrick J. Wong
2024-07-02 6:47 ` Christoph Hellwig
2024-07-02 1:20 ` [PATCH 11/12] xfs_repair: update ondisk parent pointer records Darrick J. Wong
2024-07-02 6:47 ` Christoph Hellwig
2024-07-02 1:20 ` [PATCH 12/12] xfs_repair: wipe ondisk parent pointers when there are none Darrick J. Wong
2024-07-02 6:47 ` Christoph Hellwig
2024-07-02 0:52 ` [PATCHSET v13.7 14/16] xfsprogs: detect and correct directory tree problems Darrick J. Wong
2024-07-02 1:20 ` [PATCH 1/5] libfrog: add directory tree structure scrubber to scrub library Darrick J. Wong
2024-07-02 6:48 ` Christoph Hellwig
2024-07-02 1:21 ` [PATCH 2/5] xfs_spaceman: report directory tree corruption in the health information Darrick J. Wong
2024-07-02 6:48 ` Christoph Hellwig
2024-07-02 1:21 ` [PATCH 3/5] xfs_scrub: fix erroring out of check_inode_names Darrick J. Wong
2024-07-02 6:48 ` Christoph Hellwig
2024-07-02 1:21 ` [PATCH 4/5] xfs_scrub: detect and repair directory tree corruptions Darrick J. Wong
2024-07-02 6:49 ` Christoph Hellwig
2024-07-02 1:21 ` [PATCH 5/5] xfs_scrub: defer phase5 file scans if dirloop fails Darrick J. Wong
2024-07-02 6:49 ` Christoph Hellwig
2024-07-02 0:53 ` [PATCHSET v30.7 15/16] xfs_scrub: vectorize kernel calls Darrick J. Wong
2024-07-02 1:22 ` [PATCH 01/10] man: document vectored scrub mode Darrick J. Wong
2024-07-02 6:56 ` Christoph Hellwig
2024-07-02 1:22 ` [PATCH 02/10] libfrog: support vectored scrub Darrick J. Wong
2024-07-02 6:56 ` Christoph Hellwig
2024-07-02 1:22 ` Darrick J. Wong [this message]
2024-07-02 6:57 ` [PATCH 03/10] xfs_io: " Christoph Hellwig
2024-07-02 1:22 ` [PATCH 04/10] xfs_scrub: split the scrub epilogue code into a separate function Darrick J. Wong
2024-07-02 6:57 ` Christoph Hellwig
2024-07-02 1:23 ` [PATCH 05/10] xfs_scrub: split the repair " Darrick J. Wong
2024-07-02 6:57 ` Christoph Hellwig
2024-07-02 1:23 ` [PATCH 06/10] xfs_scrub: convert scrub and repair epilogues to use xfs_scrub_vec Darrick J. Wong
2024-07-02 6:57 ` Christoph Hellwig
2024-07-02 1:23 ` [PATCH 07/10] xfs_scrub: vectorize scrub calls Darrick J. Wong
2024-07-02 6:58 ` Christoph Hellwig
2024-07-02 1:23 ` [PATCH 08/10] xfs_scrub: vectorize repair calls Darrick J. Wong
2024-07-02 6:58 ` Christoph Hellwig
2024-07-02 1:24 ` [PATCH 09/10] xfs_scrub: use scrub barriers to reduce kernel calls Darrick J. Wong
2024-07-02 6:58 ` Christoph Hellwig
2024-07-02 1:24 ` [PATCH 10/10] xfs_scrub: try spot repairs of metadata items to make scrub progress Darrick J. Wong
2024-07-02 6:59 ` Christoph Hellwig
2024-07-02 0:53 ` [PATCHSET v30.7 16/16] xfs_repair: small remote symlinks are ok Darrick J. Wong
2024-07-02 1:24 ` [PATCH 1/1] xfs_repair: allow symlinks with short remote targets Darrick J. Wong
2024-07-02 6:59 ` Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2024-07-30 0:22 [PATCHSET v30.9 22/23] xfs_scrub: vectorize kernel calls Darrick J. Wong
2024-07-30 1:30 ` [PATCH 03/10] xfs_io: support vectored scrub Darrick J. Wong
2023-12-31 19:51 [PATCHSET 6/6] xfs_scrub: vectorize kernel calls Darrick J. Wong
2023-12-31 23:20 ` [PATCH 03/10] xfs_io: support vectored scrub 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=171988123180.2012546.8535944367157322296.stgit@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=cem@kernel.org \
--cc=hch@lst.de \
--cc=linux-xfs@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