]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: detect infinite loops when scanning inodes
authorDarrick J. Wong <djwong@kernel.org>
Fri, 12 Feb 2021 22:23:05 +0000 (17:23 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 12 Feb 2021 22:23:05 +0000 (17:23 -0500)
commit4f546267d1c044162f68f963edacf04e504d5c39
tree57123cc99a969eb77f1df18b8f9a4c5186d1b2ee
parentbbfbf5ddfed8f9c8b0cd0389750d044faa9d7895
xfs_scrub: detect infinite loops when scanning inodes

During an inode scan (aka phase 3) when we're scanning the inode btree
to find files to check, make sure that each invocation of inumbers
actually gives us an inobt record with a startino that's at least as
large as what we asked for so that we always make forward progress.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/inodes.c