]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Add optional parameter field to dmcrypt table and support
authorMilan Broz <mbroz@redhat.com>
Mon, 25 Jul 2011 00:49:59 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 25 Jul 2011 00:49:59 +0000 (10:49 +1000)
commitaf8dbfe6c97539cbaa555e05a094c97e52e0126d
treeef84775009b1b1346664c73cc8b9e96ebc301be7
parent7054a5906e1591d8ef7fdf1cd899fbc5c43f5d38
Add optional parameter field to dmcrypt table and support
"allow_discards" option.

Discard requests bypass crypt queue processing. Bio is simple remapped
to underlying device.

Note that discard will be never enabled by default because of security
consequences.  It is up to the administrator to enable it for encrypted
devices.

(Note that userspace cryptsetup does not understand new optional
parameters yet.  Support for this will come later.  Until then, you
should use 'dmsetup' to enable and disable this.)

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Documentation/device-mapper/dm-crypt.txt
drivers/md/dm-crypt.c