CHROMIUM: md: dm-verity fixed setting error_behavior
authorPaul Taysom <taysom@chromium.org>
Wed, 10 Apr 2013 17:03:40 +0000 (10:03 -0700)
committerChromeBot <chrome-bot@google.com>
Wed, 10 Apr 2013 18:19:36 +0000 (11:19 -0700)
commit371b7f79fe7cc9590a8e1c4112ebcb3e690d9733
tree17cb92b9aa6e5d866d16d8fd01038851ae6d4244
parent4e854c28f71db0c5191d751d3b24ae77355fcaed
CHROMIUM: md: dm-verity fixed setting error_behavior

Need to be able to set the error behavior from either the device table
or from the linux command line.

The code only handled setting from the linux command line which
broke the platform_DMVetiryCorruption test. This was not noticed
earlier because of another bug in error handling that was just
recently was fixed which exposed this problem.

Now the code defaults to the command line but overrides from
the device table.

BUG=chromium:229621
TEST=platform_DMVerityCorruption
Signed-off-by: Paul Taysom <taysom@chromium.org>
Change-Id: I32a516deb2bd564b599e73177e479cddec789dfb
Reviewed-on: https://gerrit.chromium.org/gerrit/47744
Tested-by: Paul Taysom <taysom@chromium.org>
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
Commit-Queue: Paul Taysom <taysom@chromium.org>
drivers/md/dm-verity.c