Comment 100 for bug 509180

Revision history for this message
Tyler Hicks (tyhicks) wrote : Re: [Bug 509180] Re: ecryptfs sometimes seems to add trailing garbage to encrypted files

On Fri Jul 15, 2011 at 05:15:08PM -0000, Tim Gardner <email address hidden> wrote:
> Tyler - please review this backport to 2.6.38 (natty). The only thing
> I had to think about was the value to assign
> ECRYPTFS_I_SIZE_INITIALIZED. I chose to simply increment the mask by
> <<1.

Ack - looks good to me.

FYI, this trivial patch is why you had to use different flag values:
http://git.kernel.org/linus/fed8859b3ab94274c986cbdf7d27130e0545f02c

Those flags never hit the disk (only live in memory), so there is no
harm in the patch that you applied.