]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: handle filesystems with the log in allocation group 0
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2012 18:52:21 +0000 (18:52 +0000)
committerChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2012 18:52:21 +0000 (18:52 +0000)
commit649bfa9af35b3f23efc358aa9e517a24d9dd8878
tree5c78d60170f4a904038ec9df1b467417cccc1469
parent3724f6745435a4c54fe420f86bb97343d6095fd8
repair: handle filesystems with the log in allocation group 0

Sindre Skogen reported that repair chokes on a very small filesystem created
by mkfs.xfs from xfsprogs 2.9.4.  It turned out that for some reason this
filesystem had the log in allocation group 0 and thus repairs validation
of the root inode number was off.  Fix this by adding the log blocks if
the log is allocated in allocation group 0.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reported-by: Sindre Skogen <sindre@workzone.no>
Signed-off-by: Christoph Hellwig <hch@lst.de>
repair/xfs_repair.c