]> www.infradead.org Git - users/hch/xfsprogs.git/commit
mkfs/repair: pin inodes that would otherwise overflow link count
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:02 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:06 +0000 (17:01 -0700)
commitebf05a446c09336c08865dc29a6332be6ff8223c
tree5d872a5c145e6398d6c41e655a494995c027fabd
parenta100cb413393cab246c29b77afbc14e807096dfa
mkfs/repair: pin inodes that would otherwise overflow link count

Update userspace utilities not to allow integer overflows of inode link
counts to result in a file that is referenced by parent directories but
has zero link count.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/util.c
repair/incore_ino.c