From: Darrick J. Wong Date: Mon, 29 Jul 2024 23:23:28 +0000 (-0700) Subject: xfs_spaceman: report directory tree corruption in the health information X-Git-Tag: v6.10.0~5^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9eea3288aed85b06d13a682f8f79e1fa6e2ce71c;p=thirdparty%2Fxfsprogs-dev.git xfs_spaceman: report directory tree corruption in the health information 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 Reviewed-by: Christoph Hellwig --- diff --git a/man/man2/ioctl_xfs_bulkstat.2 b/man/man2/ioctl_xfs_bulkstat.2 index 3203ca0c..b6d51aa4 100644 --- a/man/man2/ioctl_xfs_bulkstat.2 +++ b/man/man2/ioctl_xfs_bulkstat.2 @@ -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: diff --git a/man/man2/ioctl_xfs_fsbulkstat.2 b/man/man2/ioctl_xfs_fsbulkstat.2 index 3f059942..cd38d2fd 100644 --- a/man/man2/ioctl_xfs_fsbulkstat.2 +++ b/man/man2/ioctl_xfs_fsbulkstat.2 @@ -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 diff --git a/spaceman/health.c b/spaceman/health.c index 6722babf..d88a7f6c 100644 --- a/spaceman/health.c +++ b/spaceman/health.c @@ -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}, };