git: kernel - dm - Reorganize the crypt code and implement B_HASBOGUS
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Aug 14 17:55:37 PDT 2010
commit f6221ad16ba48c758e3a4b1e90e6c92e8e9b3162
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sat Aug 14 17:51:42 2010 -0700
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)
Summary of changes:
sys/dev/disk/dm/device-mapper.c | 3 +
sys/dev/disk/dm/dm_target_crypt.c | 673 +++++++++++++++++++++++-------------
sys/dev/disk/dm/dm_target_stripe.c | 2 +
3 files changed, 430 insertions(+), 248 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f6221ad16ba48c758e3a4b1e90e6c92e8e9b3162
--
DragonFly BSD source repository
More information about the Commits
mailing list