]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: (lvm2) read complete superblock
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 1 Oct 2023 09:48:01 +0000 (11:48 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 1 Oct 2023 12:02:34 +0000 (14:02 +0200)
commitc4dad3d846bb715dbf0fb177ae3ca196139eb60e
tree233d1d5299ed34490c90e13c8022c2b89257c06f
parentd3278188954e1b710ede9541395e0abf3f6b2a14
libblkid: (lvm2) read complete superblock

The lvm2_calc_crc() will create a checksum over LVM2_LABEL_SIZE bytes,
which all need to be read.

Currently this works because the superblock is cached by
blkid_probe_get_idmag() which always reads 1024 bytes.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/superblocks/lvm.c