From: Herton Ronaldo Krzesinski Subject: Re: [3.0.y, 3.2.y, 3.4.y] Re: ecryptfs: corrupted files on a disk full event Date: Mon, 12 Nov 2012 17:56:07 -0200 Message-ID: <20121112195606.GF3342@herton-Z68MA-D2H-B3> References: <20121009173522.5563.81022.reportbug@klapprechner> <20121009193342.GA3993@elie.Belkin> <1349874250.6874.6.camel@klapprechner> <20121010213203.GC4517@elie.Belkin> Mime-Version: 1.0 Return-path: Received: from youngberry.canonical.com ([91.189.89.112]:44997 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888Ab2KLT4O (ORCPT ); Mon, 12 Nov 2012 14:56:14 -0500 Content-Disposition: inline In-Reply-To: <20121010213203.GC4517@elie.Belkin> Sender: ecryptfs-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jonathan Nieder Cc: stable@vger.kernel.org, Sebastian Heinlein , Tyler Hicks , Colin King , ecryptfs@vger.kernel.org On Wed, Oct 10, 2012 at 02:32:03PM -0700, Jonathan Nieder wrote: > Hi Ben and Greg, > > Please consider > > 8bc2d3cf6129 eCryptfs: Unlink lower inode when ecryptfs_create() fails > e3ccaa976120 eCryptfs: Initialize empty lower files when opening them > 821f7494a776 eCryptfs: Revert to a writethrough cache model > 7149f2558d5b eCryptfs: Write out all dirty pages just before releasing the > lower file > 64e6651dcc10 eCryptfs: Call lower ->flush() from ecryptfs_flush() What about also picking the following two for stables? 069ddcda37b2cf5bb4b6031a944c0e9359213262 eCryptfs: Copy up POSIX ACL and read-only flags from lower mount 5f5b331d5c21228a6519dcb793fc1629646c51a6 eCryptfs: check for eCryptfs cipher support at mount > > for application to the 3.0.y, 3.2.y, and 3.4.y trees. (These fixes were > all applied to mainline during the 3.6 cycle.) > > The patches apply cleanly to 3.2.y. The backport to 3.0.y would take more > work since it lacks, for example, b59db43ad443 (eCryptfs: Prevent file > create race condition, 2011-11-21). > > Patches 1-4 improve error handling and recovery. The fifth ensures > flushes get propagated to the underlying filesystem, which would be > important to avoid data loss from power loss or crashes. > [...] > Thoughts welcome, as always. > > Thanks, > Jonathan > > [1] http://bugs.debian.org/690071 -- []'s Herton