From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9dTg-0001DW-TF for qemu-devel@nongnu.org; Wed, 14 Aug 2013 11:59:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9dTa-0002ix-Jt for qemu-devel@nongnu.org; Wed, 14 Aug 2013 11:59:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9dTa-0002hL-5A for qemu-devel@nongnu.org; Wed, 14 Aug 2013 11:59:10 -0400 Date: Wed, 14 Aug 2013 16:58:55 +0100 From: "Richard W.M. Jones" Message-ID: <20130814155855.GA5784@redhat.com> References: <1376413436-5424-1-git-send-email-kaveh@cs.vu.nl> <8737CB0DA803476059F56AF5@nimrod.local> <520B69D5.3070505@cs.vu.nl> <20130814115248.GA22291@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] Introduce cache images for the QCOW2 format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Bligh Cc: Kevin Wolf , Kaveh Razavi , famz@redhat.com, qemu-devel@nongnu.org, Stefan Hajnoczi On Wed, Aug 14, 2013 at 01:03:48PM +0100, Alex Bligh wrote: > > On 14 Aug 2013, at 12:52, Fam Zheng wrote: > > > Yes, this one sounds good to have. VMDK and VHDX have this kind of > > backing file status validation. > > ... though I'd prefer something safer than looking at mtime, for > instance a sequence number that is incremented prior to any > bdrv_close if a write has been done since bdrv_open. Yes, please not mtime. User-mode Linux COW files use mtime to check this, and it causes no end of problems (eg. if the backing file is copied from one place to another without using the magic incantations to preserve file times). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW