From: Tyler Hicks Date: Mon, 13 Apr 2009 20:29:27 +0000 (-0500) Subject: eCryptfs: Fix data corruption when using ecryptfs_passthrough X-Git-Tag: v2.6.30-rc4~55^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a791b4e63eb0537a7f804a340d6527485983b4;p=pandora-kernel.git eCryptfs: Fix data corruption when using ecryptfs_passthrough ecryptfs_passthrough is a mount option that allows eCryptfs to allow data to be written to non-eCryptfs files in the lower filesystem. The passthrough option was causing data corruption due to it not always being treated as a non-eCryptfs file. The first 8 bytes of an eCryptfs file contains the decrypted file size. This value was being written to the non-eCryptfs files, too. Also, extra 0x00 characters were being written to make the file size a multiple of PAGE_CACHE_SIZE. Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed