From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHdwP-0004gY-K9 for qemu-devel@nongnu.org; Mon, 07 Dec 2009 08:47:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHdwF-0004SP-AE for qemu-devel@nongnu.org; Mon, 07 Dec 2009 08:47:48 -0500 Received: from [199.232.76.173] (port=40432 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHdwF-0004S4-3L for qemu-devel@nongnu.org; Mon, 07 Dec 2009 08:47:43 -0500 Received: from mail-yx0-f188.google.com ([209.85.210.188]:32962) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHdwE-0006qG-Qq for qemu-devel@nongnu.org; Mon, 07 Dec 2009 08:47:43 -0500 Received: by yxe26 with SMTP id 26so4123400yxe.4 for ; Mon, 07 Dec 2009 05:47:41 -0800 (PST) Message-ID: <4B1D077B.4080300@codemonkey.ws> Date: Mon, 07 Dec 2009 07:47:39 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Disk image shared and exclusive locks. References: <20091204165301.GA4167@amd.home.annexia.org> <20091207103908.GI2271@arachsys.com> <4B1D03E0.5080006@codemonkey.ws> <20091207133842.GL2271@arachsys.com> In-Reply-To: <20091207133842.GL2271@arachsys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Webb Cc: "Richard W.M. Jones" , qemu-devel@nongnu.org Chris Webb wrote: > Anthony Liguori writes: > > >> I've resisted this because I'm concerned that if we delay the >> opening of the file on the destination, it could fail. That's a >> very late failure and that makes me uncomfortable as just a work >> around for NFS. >> > > I don't know much about NFS's semantics with cache-coherency, but I take it > there isn't some sort of synchronisation operation that works on a file > descriptor and could be done instead as the vm starts and stops to avoid > having to delay the open itself? I agree with you that failing this late > could make for some rather nasty behaviour compared to the current version. > I think this is a case of spec vs. in practice. By the NFS spec, coherence is only guaranteed as close-after-open. Let me poke around and see if I can find anyone with better info. Regards, Anthony Liguori > Cheers, > > Chris. >