Skip to content
Commit 1d749ac8 authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Kishor PK
Browse files

dm-verity: Add modes and emit uevent on corrupted blocks



Git-commit: Add a device specific mode to dm-verity for
handling corrupted blocks:

  DM_VERITY_MODE_EIO is the default behavior, where reading a
  corrupted block results in -EIO.

  DM_VERITY_MODE_LOGGING only logs corrupted blocks, but does
  not block the read.

  DM_VERITY_MODE_RESTART calls kernel_restart when a corrupted
  block is discovered.

Each mode sends a uevent to notify userspace of corruption and
allow further recovery actions.

Defaults to previous behavior, other modes can be enabled with
an optional parameter added to the verity table.

CRs-Fixed: 977826
Change-Id: Ib72ae6ccb865594d28f3553bdcc5a40b1d7af390
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
Signed-off-by: default avatarAjay Dudani <adudani@codeaurora.org>
(cherry picked from commit f9bd567a0ee9f33b1e6a982251760e4148b4c916)
parent 10d82c0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment