diff options
author | 2024-10-29 12:17:13 +0100 | |
---|---|---|
committer | 2024-11-04 17:39:23 +0100 | |
commit | a674d0cd56f47628e8057232833cd0654c85d50b (patch) | |
tree | 4ff2f7e14c67a17c4bb8fca8714aaf505fb31c83 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dm-unstriped: cast an operand to sector_t to prevent potential uint32_t overflow (diff) | |
download | wireguard-linux-a674d0cd56f47628e8057232833cd0654c85d50b.tar.xz wireguard-linux-a674d0cd56f47628e8057232833cd0654c85d50b.zip |
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: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Fixes: f811b83879fb ("dm-verity: introduce the options restart_on_error and panic_on_error")
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions