]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_spaceman: report directory tree corruption in the health information
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:28 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:45:39 +0000 (18:45 -0700)
Report directories that are the source of corruption in the directory
tree.  While we're at it, add the documentation updates for the new
reporting flags and scrub type.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
man/man2/ioctl_xfs_bulkstat.2
man/man2/ioctl_xfs_fsbulkstat.2
spaceman/health.c

index 3203ca0c5d27b776d69e99663963a9d0f77cdf8e..b6d51aa438111dab32945b7690fb637c00d70b2f 100644 (file)
@@ -326,6 +326,9 @@ Symbolic link target.
 .TP
 .B XFS_BS_SICK_PARENT
 Parent pointers.
+.TP
+.B XFS_BS_SICK_DIRTREE
+Directory is the source of corruption in the directory tree.
 .RE
 .SH ERRORS
 Error codes can be one of, but are not limited to, the following:
index 3f059942a219cf05b94e287725e8f2f29250a9e1..cd38d2fd6f268ab9099e817eb3af1acf463a5250 100644 (file)
@@ -239,6 +239,9 @@ Symbolic link target.
 .TP
 .B XFS_BS_SICK_PARENT
 Parent pointers.
+.TP
+.B XFS_BS_SICK_DIRTREE
+Directory is the source of corruption in the directory tree.
 .RE
 .SH RETURN VALUE
 On error, \-1 is returned, and
index 6722babf5888bc1735d07cfc91e254f43073841c..d88a7f6c6e53f2966a4b9d461cd1f2f1d63be062 100644 (file)
@@ -165,6 +165,10 @@ static const struct flag_map inode_flags[] = {
                .mask = XFS_BS_SICK_PARENT,
                .descr = "parent pointers",
        },
+       {
+               .mask = XFS_BS_SICK_DIRTREE,
+               .descr = "directory tree structure",
+       },
        {0},
 };