diff options
author | Milan Broz <mbroz@redhat.com> | 2011-08-02 12:32:08 +0100 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-01-05 18:20:39 +0100 |
commit | ff9cae7bcd7a091cf2939efb58ba0cd2bcd8c3dd (patch) | |
tree | b0decfdab45f476aebcd5d53feb8f18ebbf0a5a1 /usr | |
parent | 4b7a30c50497649060ed7e2099637038d8b056e5 (diff) | |
download | kernel_samsung_tuna-ff9cae7bcd7a091cf2939efb58ba0cd2bcd8c3dd.zip kernel_samsung_tuna-ff9cae7bcd7a091cf2939efb58ba0cd2bcd8c3dd.tar.gz kernel_samsung_tuna-ff9cae7bcd7a091cf2939efb58ba0cd2bcd8c3dd.tar.bz2 |
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>
(cherry picked from commit 772ae5f54d69c38a5e3c4352c5fdbdaff141af21:
the parser change is required by the CAF branch of system/vold as
used in CyanogenMod 12+, which passes #opt_params = 0)
Bug: https://jira.cyanogenmod.org/browse/NIGHTLIES-1746
Bug: http://forum.xda-developers.com/showpost.php?p=62554113&postcount=3140
Change-Id: Id1761b91861a854982a61609d9705c1da9e7e2c0
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions