File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,7 @@ struct xfs_bulkstat {
411
411
#define XFS_BS_SICK_XATTR (1 << 5) /* extended attributes */
412
412
#define XFS_BS_SICK_SYMLINK (1 << 6) /* symbolic link remote target */
413
413
#define XFS_BS_SICK_PARENT (1 << 7) /* parent pointers */
414
+ #define XFS_BS_SICK_DIRTREE (1 << 8) /* directory tree structure */
414
415
415
416
/*
416
417
* Project quota id helpers (previously projid was 16bit only
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ struct xfs_da_args;
95
95
96
96
/* Don't propagate sick status to ag health summary during inactivation */
97
97
#define XFS_SICK_INO_FORGET (1 << 12)
98
+ #define XFS_SICK_INO_DIRTREE (1 << 13) /* directory tree structure */
98
99
99
100
/* Primary evidence of health problems in a given group. */
100
101
#define XFS_SICK_FS_PRIMARY (XFS_SICK_FS_COUNTERS | \
@@ -125,7 +126,8 @@ struct xfs_da_args;
125
126
XFS_SICK_INO_DIR | \
126
127
XFS_SICK_INO_XATTR | \
127
128
XFS_SICK_INO_SYMLINK | \
128
- XFS_SICK_INO_PARENT)
129
+ XFS_SICK_INO_PARENT | \
130
+ XFS_SICK_INO_DIRTREE)
129
131
130
132
#define XFS_SICK_INO_ZAPPED (XFS_SICK_INO_BMBTD_ZAPPED | \
131
133
XFS_SICK_INO_BMBTA_ZAPPED | \
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ static const struct xchk_health_map type_to_health_flag[XFS_SCRUB_TYPE_NR] = {
108
108
[XFS_SCRUB_TYPE_FSCOUNTERS ] = { XHG_FS , XFS_SICK_FS_COUNTERS },
109
109
[XFS_SCRUB_TYPE_QUOTACHECK ] = { XHG_FS , XFS_SICK_FS_QUOTACHECK },
110
110
[XFS_SCRUB_TYPE_NLINKS ] = { XHG_FS , XFS_SICK_FS_NLINKS },
111
+ [XFS_SCRUB_TYPE_DIRTREE ] = { XHG_INO , XFS_SICK_INO_DIRTREE },
111
112
};
112
113
113
114
/* Return the health status mask for this scrub type. */
Original file line number Diff line number Diff line change @@ -470,6 +470,7 @@ static const struct ioctl_sick_map ino_map[] = {
470
470
{ XFS_SICK_INO_BMBTA_ZAPPED , XFS_BS_SICK_BMBTA },
471
471
{ XFS_SICK_INO_DIR_ZAPPED , XFS_BS_SICK_DIR },
472
472
{ XFS_SICK_INO_SYMLINK_ZAPPED , XFS_BS_SICK_SYMLINK },
473
+ { XFS_SICK_INO_DIRTREE , XFS_BS_SICK_DIRTREE },
473
474
{ 0 , 0 },
474
475
};
475
476
You can’t perform that action at this time.
0 commit comments