From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jordi Pujol Subject: Re: overlayfs patches for ovl_copy_up & ovl_rename Date: Thu, 19 May 2011 11:24:19 +0200 Message-ID: <201105191124.19859.jordipujolp@gmail.com> References: <201105041659.38427.jordipujolp@gmail.com> <201105190947.17303.jordipujolp@gmail.com> <87zkmjxeg4.fsf@tucsk.pomaz.szeredi.hu> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org To: Miklos Szeredi Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:45529 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932789Ab1ESJYY (ORCPT ); Thu, 19 May 2011 05:24:24 -0400 Received: by wya21 with SMTP id 21so1814671wya.19 for ; Thu, 19 May 2011 02:24:23 -0700 (PDT) In-Reply-To: <87zkmjxeg4.fsf@tucsk.pomaz.szeredi.hu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: A Dijous 19 Maig 2011 10:49:31, Miklos Szeredi va escriure: > This file, which modifications are lost, is this on the upper > filesystem, the lower filesystem or both, before the modification? And > after the modification? > > > or when doing a big > > upgrade of the system packages, some files are lost. > > How are they lost? They don't exist when they should? What's the > contents of the upper and lower filesystems? in the sed case, the file exists in the lower filesystem and is copied to tmpfs, removed and moved from tmpfs to the original file; several times the same operations are done. in the package upgrade, the file does not exists, it is created on tmpfs and moved to the final overlayfs directory; after we can check that it does not exist there. As I thinked previously, the common operation that appears in both processes and maybe the cause of the problem is move from another filesystem to overlayfs. Thanks, Jordi Pujol Live never ending Tale GNU/Linux Live forever! http://livenet.selfip.com