]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm crypt: optionally support discard requests
authorMilan Broz <mbroz@redhat.com>
Tue, 2 Aug 2011 11:32:08 +0000 (12:32 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:08 +0000 (12:32 +0100)
commit772ae5f54d69c38a5e3c4352c5fdbdaff141af21
tree727b6dc7596b8250d644214695f09e3d6c7e43d1
parent327372797c88b24953f454cd51a3734c02697bdd
dm crypt: optionally support discard requests

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