]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: (bcachefs) fix not detecting large superblocks
authorColin Gillespie <colin@cgillespie.xyz>
Wed, 9 Aug 2023 08:28:07 +0000 (18:28 +1000)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 18:47:02 +0000 (20:47 +0200)
commit1ec71634aa4ef5ddca23d65c8a296f3614231e8a
tree8dfaeea898ae40730807e0de42a82fa16b630ae5
parent68564ebb50f8afab5a9527c534417e247cca0b27
libblkid: (bcachefs) fix not detecting large superblocks

Probing does not detect bcachefs filesystems with a superblock larger
than 4KiB. Bcachefs superblocks grow in size and can become much larger
than this.

Increase the superblock maximum size limit to 1MiB.

Validate the superblock isn't larger than the maximum size defined in
the superblocks layout section.

(cherry picked from commit 48d573797797650d96456979797c0155d58f61cb)
libblkid/src/superblocks/bcache.c