• Darrick J. Wong's avatar
    xfs: teach scrub to check file nlinks · f1184081
    Darrick J. Wong authored
    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: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    f1184081
health.c 8.56 KB