Files
scoutfs/utils
Auke Kok 9d68c8bba7 Generic block header checks: crc, magic.
Generally as we call block_get() we should validate that if the block
has a hdr, at a minimum the crc is correct and the magic value is
the expected value passed, and the fsid matches the superblock. This
function implements just that. Returns -EINVAL, up to the caller to
report a problem() and handle the outcome. For now the code just hard
fails, which incedentally makes it fail the clobber-repair.sh tests
I wrote.

Signed-off-by: Auke Kok <auke.kok@versity.com>
2025-05-27 14:26:08 -07:00
..
2024-06-28 15:09:05 -07:00
2018-06-29 14:42:08 -07:00
2025-05-27 14:26:08 -07:00