mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
xfs: report directory tree corruption in the health information
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>
This commit is contained in:
parent
d54c5ac80f
commit
37056912d5
@ -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
|
||||
|
@ -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 | \
|
||||
|
@ -108,6 +108,7 @@ static const struct xchk_health_map type_to_health_flag[XFS_SCRUB_TYPE_NR] = {
|
||||
[XFS_SCRUB_TYPE_FSCOUNTERS] = { XHG_FS, XFS_SICK_FS_COUNTERS },
|
||||
[XFS_SCRUB_TYPE_QUOTACHECK] = { XHG_FS, XFS_SICK_FS_QUOTACHECK },
|
||||
[XFS_SCRUB_TYPE_NLINKS] = { XHG_FS, XFS_SICK_FS_NLINKS },
|
||||
[XFS_SCRUB_TYPE_DIRTREE] = { XHG_INO, XFS_SICK_INO_DIRTREE },
|
||||
};
|
||||
|
||||
/* Return the health status mask for this scrub type. */
|
||||
|
@ -470,6 +470,7 @@ static const struct ioctl_sick_map ino_map[] = {
|
||||
{ XFS_SICK_INO_BMBTA_ZAPPED, XFS_BS_SICK_BMBTA },
|
||||
{ XFS_SICK_INO_DIR_ZAPPED, XFS_BS_SICK_DIR },
|
||||
{ XFS_SICK_INO_SYMLINK_ZAPPED, XFS_BS_SICK_SYMLINK },
|
||||
{ XFS_SICK_INO_DIRTREE, XFS_BS_SICK_DIRTREE },
|
||||
{ 0, 0 },
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user