]> 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)
committerColin Gillespie <colin@cgillespie.xyz>
Thu, 10 Aug 2023 05:52:23 +0000 (15:52 +1000)
commit48d573797797650d96456979797c0155d58f61cb
treeb4b245e21afe5d413e3030835a57d916536de65e
parentb8bed37a1493b913bf5bda938487ae0c06c11ce7
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.
libblkid/src/superblocks/bcache.c