kernel - dm - Reorganize the crypt code and implement B_HASBOGUS
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 15 Aug 2010 00:51:42 +0000 (17:51 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 15 Aug 2010 00:51:42 +0000 (17:51 -0700)
commitf6221ad16ba48c758e3a4b1e90e6c92e8e9b3162
tree6cada3a7b61b9fb99a9daf158af58280425e3b9b
parent6730d2b77cc5836905b4223617713f95696f682f
kernel - dm - Reorganize the crypt code and implement B_HASBOGUS

* Implement B_HASBOGUS data copying for read decryption.  When a buffer
  contains bogus pages we may or may not be able to safely decrypt data
  in-place, add some code to deal with it.

* Reorganize the crypt code.  Separate the read and write paths and
  organize the procedures in the same order as the execution stages.
  Also move some of the buffer manipulation around a little to make
  it more clear.

Submitted-by: alexh (B_HASBOGUS handling)
sys/dev/disk/dm/device-mapper.c
sys/dev/disk/dm/dm_target_crypt.c
sys/dev/disk/dm/dm_target_stripe.c