]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix btree block magic number mapping
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:26:08 +0000 (10:26 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 21:09:08 +0000 (16:09 -0500)
commit4e503735fd407e2e61295e6af6ec47af4693bc95
tree4d4f9e146b801a0811236a1b82916b3b9adba838
parent3cafd8753f07bfd8a47d780d588e2f1fbe6dbf9d
xfs_repair: fix btree block magic number mapping

The magic numbers for generic btree blocks were modified some time
ago (before the kernel code was committed) but the xfs_repair
mapping code was not updated to match. It's no longer a simple
mapping, so just make the code a dense array and use the magic
number as the search key.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
db/btblock.c