From: Milan Broz Date: Sun, 25 Sep 2011 22:26:21 +0000 (+0100) Subject: dm crypt: always disable discard_zeroes_data X-Git-Tag: v3.1-rc10~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=983c7db347db8ce2d8453fd1d89b7a4bb6920d56;p=pandora-kernel.git dm crypt: always disable discard_zeroes_data If optional discard support in dm-crypt is enabled, discards requests bypass the crypt queue and blocks of the underlying device are discarded. For the read path, discarded blocks are handled the same as normal ciphertext blocks, thus decrypted. So if the underlying device announces discarded regions return zeroes, dm-crypt must disable this flag because after decryption there is just random noise instead of zeroes. Signed-off-by: Milan Broz Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed