]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: teach scrub to check file nlinks
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)
commit7b11e9aed621827b4a57b411399b07cb4d302602
tree831fd8129d75a87fe76fa9958bf8a0f2b570fe5f
parent06748533df76a0958318c4fb2768bab31bd8982e
xfs: teach scrub to check file nlinks

Source kernel commit: f1184081ac97625d30c59851944f4c59ae7ddc2b

Create the necessary scrub code to walk the filesystem's directory tree
so that we can compute file link counts.  Similar to quotacheck, we
create an incore shadow array of link count information and then we walk
the filesystem a second time to compare the link counts.  We need live
updates to keep the information up to date during the lengthy scan, so
this scrubber remains disabled until the next patch.

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