]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: report health of inode link counts
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:00:53 +0000 (10:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:36 +0000 (11:37 -0700)
Source kernel commit: 93687ee2e3748a4a6b541ff0d83d1480815b00a9

Report on the health of the inode link counts.

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

index 07acbed9235c57c5852210905bdc8898186e00d7..f10d0aa0e337f3fa79c56bbb12b95fb56afdeebe 100644 (file)
@@ -196,6 +196,7 @@ struct xfs_fsop_geom {
 #define XFS_FSOP_GEOM_SICK_RT_BITMAP   (1 << 4)  /* realtime bitmap */
 #define XFS_FSOP_GEOM_SICK_RT_SUMMARY  (1 << 5)  /* realtime summary */
 #define XFS_FSOP_GEOM_SICK_QUOTACHECK  (1 << 6)  /* quota counts */
+#define XFS_FSOP_GEOM_SICK_NLINKS      (1 << 7)  /* inode link counts */
 
 /* Output for XFS_FS_COUNTS */
 typedef struct xfs_fsop_counts {
index 5626e53b3f0feedb55cc860634cce856758d52e7..2bfe2dc404a19335e611d2c4db954be67a2bb413 100644 (file)
@@ -42,6 +42,7 @@ struct xfs_fsop_geom;
 #define XFS_SICK_FS_GQUOTA     (1 << 2)  /* group quota */
 #define XFS_SICK_FS_PQUOTA     (1 << 3)  /* project quota */
 #define XFS_SICK_FS_QUOTACHECK (1 << 4)  /* quota counts */
+#define XFS_SICK_FS_NLINKS     (1 << 5)  /* inode link counts */
 
 /* Observable health issues for realtime volume metadata. */
 #define XFS_SICK_RT_BITMAP     (1 << 0)  /* realtime bitmap */
@@ -79,7 +80,8 @@ struct xfs_fsop_geom;
                                 XFS_SICK_FS_UQUOTA | \
                                 XFS_SICK_FS_GQUOTA | \
                                 XFS_SICK_FS_PQUOTA | \
-                                XFS_SICK_FS_QUOTACHECK)
+                                XFS_SICK_FS_QUOTACHECK | \
+                                XFS_SICK_FS_NLINKS)
 
 #define XFS_SICK_RT_PRIMARY    (XFS_SICK_RT_BITMAP | \
                                 XFS_SICK_RT_SUMMARY)