]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: fix the variable-width nlink array
authorChristoph Hellwig <hch@lst.de>
Fri, 2 Mar 2012 08:35:19 +0000 (08:35 +0000)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Mar 2012 08:35:19 +0000 (08:35 +0000)
commitedfb350c7ae6c7e9e678b646f37bd8657669bb64
tree698e4824b68808046c7fa6e2363a0fa3edcce79a
parentc98f31a5a3186adf9b02214914a1b511f5529fd9
repair: fix the variable-width nlink array

It looks like we currently never grow the variable-width nlink array
if only the on-disk nlink size overflows 8 bits.  This leads to a major
mess in nlink counting, and eventually an assert in phase7.

Replace the indirect all mess with a union that allows doing proper
array arithmetics while we're at it.

Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
repair/incore.h
repair/incore_ino.c