]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: update health status if we get a clean bill of health
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:00:56 +0000 (10:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:36 +0000 (11:37 -0700)
Source kernel commit: a1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c

If scrub finds that everything is ok with the filesystem, we need a way
to tell the health tracking that it can let go of indirect health flags,
since indirect flags only mean that at some point in the past we lost
some context.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_fs.h

index b5c8da7e6aa99ad5d8fb6cdd911f457ec3969a9c..ca1b17d014377389ae45d7c96a00420f357d669e 100644 (file)
@@ -714,9 +714,10 @@ struct xfs_scrub_metadata {
 #define XFS_SCRUB_TYPE_FSCOUNTERS 24   /* fs summary counters */
 #define XFS_SCRUB_TYPE_QUOTACHECK 25   /* quota counters */
 #define XFS_SCRUB_TYPE_NLINKS  26      /* inode link counts */
+#define XFS_SCRUB_TYPE_HEALTHY 27      /* everything checked out ok */
 
 /* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR      27
+#define XFS_SCRUB_TYPE_NR      28
 
 /* i: Repair this metadata. */
 #define XFS_SCRUB_IFLAG_REPAIR         (1u << 0)