]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck: use BLKID_SUBLKS_BADCSUM
authorKarel Zak <kzak@redhat.com>
Tue, 9 May 2023 11:25:09 +0000 (13:25 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 May 2023 11:25:09 +0000 (13:25 +0200)
commit10d477ac7849eee1ce6ac82b73d6f02ff6db701c
treea1ac0b6b5dffecdb15e162baee2e2f47b438bc0b
parent128c416d5c6c28e31ab5c3e831662ec8ab5f8e69
fsck: use BLKID_SUBLKS_BADCSUM

We need to be a little bit more promiscuou in fsck to see also
inconsistent superblocks.

It would be possible to do not use libmount to ask for filesystem type
and ask directly libblkid, but libmount is also used to parse fstab
and search in the file and in this case it caches FS tags. It seems
better to continue with libmount to reduce overhead and keep the code
simple.

Addresses: https://github.com/util-linux/util-linux/issues/2214
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.c