]> git.baikalelectronics.ru Git - kernel.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)
commit52918c28a9606e0a6013872eb8831e3bdb467d26
tree727b6dc7596b8250d644214695f09e3d6c7e43d1
parent5f28cd5347f33c15dfb15086bb037a13eb063e80
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