util-linux/libblkid
Mauricio Faria de Oliveira 38aa4e64b8 [PATCH] libblkid: (xfs) external log: check for regular xfs on more sectors
The xfs external log probe only checks for regular xfs on sector zero,
but then checks for valid log record headers on all first 512 sectors.

This can incorrectly detect an xfs external log if a regular xfs (i.e.
with internal log) is shifted by up to 512 sectors; it may happen with
bcache and LVM1 for example, as the regular xfs is found later in disk.

This results in ambivalent filesystem detection, thus no UUID for udev.

Fix this problem by checking for regular xfs on all sectors considered
by the xfs external log probe.

Test-case with bcache:

Gbp-Pq: Name libblkid-xfs-log-check-for-reg-xfs-on-more-sectors.patch
2022-05-14 03:14:50 +08:00
..
docs Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
samples Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
src [PATCH] libblkid: (xfs) external log: check for regular xfs on more sectors 2022-05-14 03:14:50 +08:00
COPYING Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
Makemodule.am Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
blkid.pc.in Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
libblkid.3 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00