]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs: report directory tree corruption in the health information
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:52 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:04 +0000 (17:01 -0700)
Source kernel commit: 37056912d5721324ac28787a4f903798f7361099

Report directories that are the source of corruption in the directory
tree.

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

index 85f2a7e20ac00175ed7b3ea33a5688bed1218648..7ae1912cdbfc24054bc382c90e3f45841d601fae 100644 (file)
@@ -411,6 +411,7 @@ struct xfs_bulkstat {
 #define XFS_BS_SICK_XATTR      (1 << 5)  /* extended attributes */
 #define XFS_BS_SICK_SYMLINK    (1 << 6)  /* symbolic link remote target */
 #define XFS_BS_SICK_PARENT     (1 << 7)  /* parent pointers */
+#define XFS_BS_SICK_DIRTREE    (1 << 8)  /* directory tree structure */
 
 /*
  * Project quota id helpers (previously projid was 16bit only
index 3c64b5f9bd6817af320d86e6839d2933293e7dea..b0edb4288e59297ea5a6a54c67da1d70ea471d0c 100644 (file)
@@ -95,6 +95,7 @@ struct xfs_da_args;
 
 /* Don't propagate sick status to ag health summary during inactivation */
 #define XFS_SICK_INO_FORGET    (1 << 12)
+#define XFS_SICK_INO_DIRTREE   (1 << 13)  /* directory tree structure */
 
 /* Primary evidence of health problems in a given group. */
 #define XFS_SICK_FS_PRIMARY    (XFS_SICK_FS_COUNTERS | \
@@ -125,7 +126,8 @@ struct xfs_da_args;
                                 XFS_SICK_INO_DIR | \
                                 XFS_SICK_INO_XATTR | \
                                 XFS_SICK_INO_SYMLINK | \
-                                XFS_SICK_INO_PARENT)
+                                XFS_SICK_INO_PARENT | \
+                                XFS_SICK_INO_DIRTREE)
 
 #define XFS_SICK_INO_ZAPPED    (XFS_SICK_INO_BMBTD_ZAPPED | \
                                 XFS_SICK_INO_BMBTA_ZAPPED | \