Commit a674d0cd authored by Mikulas Patocka's avatar Mikulas Patocka
Browse files

dm-verity: don't crash if panic_on_corruption is not selected



If the user sets panic_on_error and doesn't set panic_on_corruption,
dm-verity should not panic on data mismatch. But, currently it panics,
because it treats data mismatch as I/O error.

This commit fixes the logic so that if there is data mismatch and
panic_on_corruption or restart_on_corruption is not selected, the system
won't restart or panic.

Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Reviewed-by: default avatarSami Tolvanen <samitolvanen@google.com>
Fixes: f811b838 ("dm-verity: introduce the options restart_on_error and panic_on_error")
parent 5a4510c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment