This is a replacement for Andrey's patchset "generic/577: fix hash check and add metadata cleaning". It handles some other things that were overlooked. Eric Biggers (3): common/verity: fix _fsv_have_hash_algorithm() with required signatures generic/577: add missing file removal before empty file test tests: fix some tests for systems with fs.verity.require_signatures=1 common/verity | 69 +++++++++++++++++++++++++++++++---------------- tests/btrfs/290 | 9 +++++++ tests/btrfs/291 | 2 ++ tests/generic/577 | 1 + tests/generic/624 | 8 ++++++ tests/generic/692 | 8 ++++++ 6 files changed, 74 insertions(+), 23 deletions(-) base-commit: a75c5f50584e03ca7862ad51f48efd2d524d1dc5 -- 2.38.1