]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm integrity: add recovery mode
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 17 Mar 2017 16:40:51 +0000 (12:40 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 24 Mar 2017 19:54:23 +0000 (15:54 -0400)
commitc2bcb2b702e4684e566d295d687228498184e0c4
treed68dcd1dff76ca211a50caac235c36d8f333c8d2
parent1aa0efd4210df1c57764b77040a6615bc9b3ac0f
dm integrity: add recovery mode

In recovery mode, we don't:
- replay the journal
- check checksums
- allow writes to the device

This mode can be used as a last resort for data recovery.  The
motivation for recovery mode is that when there is a single error in the
journal, the user should not lose access to the whole device.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/dm-integrity.txt
drivers/md/dm-integrity.c