]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Add optional parameter field to dmcrypt table and support
authorMilan Broz <mbroz@redhat.com>
Wed, 3 Aug 2011 00:43:43 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Aug 2011 00:43:43 +0000 (10:43 +1000)
commit3318dee955a4e7fadd8ffd28fcb18d91b873551c
tree2488c3d907d7e25756810f9d42e39054f0dcd6d4
parent1e1fd386d23a55fdc767e1aff48731d96f1988fe
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