diff options
author | JeongHyeon Lee <jhs2.lee@samsung.com> | 2020-06-18 15:56:50 +0900 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-07-13 11:47:33 -0400 |
commit | e1fef0b08e06dcce275bd585bc6a900dff395096 (patch) | |
tree | 761336e1a822cf7f88504cb527eba34ef762c8a8 /drivers/md/dm-verity.h | |
parent | 374117ad4736c5a4f8012cfe59fc07d9d58191d5 (diff) | |
download | lwn-e1fef0b08e06dcce275bd585bc6a900dff395096.tar.gz lwn-e1fef0b08e06dcce275bd585bc6a900dff395096.zip |
dm verity: add "panic_on_corruption" error handling mode
Samsung smart phones may need the ability to panic on corruption. Not
all devices provide the bootloader support needed to use the existing
"restart_on_corruption" mode. Additional details for why Samsung needs
this new mode can be found here:
https://www.redhat.com/archives/dm-devel/2020-June/msg00235.html
Signed-off-by: jhs2.lee <jhs2.lee@samsung.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-verity.h')
-rw-r--r-- | drivers/md/dm-verity.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-verity.h b/drivers/md/dm-verity.h index 641b9e3a399b..4e769d13473a 100644 --- a/drivers/md/dm-verity.h +++ b/drivers/md/dm-verity.h @@ -20,7 +20,8 @@ enum verity_mode { DM_VERITY_MODE_EIO, DM_VERITY_MODE_LOGGING, - DM_VERITY_MODE_RESTART + DM_VERITY_MODE_RESTART, + DM_VERITY_MODE_PANIC }; enum verity_block_type { |