From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49634 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuU9A-0000Pp-Dy for qemu-devel@nongnu.org; Sat, 11 Sep 2010 13:45:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuU99-0006Ki-7i for qemu-devel@nongnu.org; Sat, 11 Sep 2010 13:45:52 -0400 Received: from mail-gy0-f173.google.com ([209.85.160.173]:52856) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuU99-0006Kd-2j for qemu-devel@nongnu.org; Sat, 11 Sep 2010 13:45:51 -0400 Received: by gya1 with SMTP id 1so1901189gya.4 for ; Sat, 11 Sep 2010 10:45:50 -0700 (PDT) Message-ID: <4C8BC04C.8060405@codemonkey.ws> Date: Sat, 11 Sep 2010 12:45:48 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/3] block-nbd: fix use of protocols in backing files and nbd probing References: <1284213896-12705-1-git-send-email-aliguori@us.ibm.com> <1284213896-12705-3-git-send-email-aliguori@us.ibm.com> <4C8BBC0F.2010309@codemonkey.ws> In-Reply-To: <4C8BBC0F.2010309@codemonkey.ws> 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: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi , Juan Quintela On 09/11/2010 12:27 PM, Anthony Liguori wrote: > I think the better solution is to explicitly specific raw with nbd. > IOW, I think -drive file=nbd:localhost:1026,format=raw should work the > same way. I still feel slightly weird about probing happening with > nbd. It seems like it could only result in badness. Yeah, w/o this patch, 'qemu-img create -f qcow2 -b nbd:localhost:1026 -o backing_fmt=raw foo.img' doesn't generate any reads although if you drop -o backing_fmt, it will. Not sure I agree it's the most useful thing, but I'm not going to claim it's never useful so this patch is not a good idea. Regards, Anthony Liguori > > The specific scenario is migration. I'm using a copy-on-read file on > the destination and I want to be sure that I don't read any blocks > (since they're copied) until the source stops execution. > > Regards, > > Anthony Liguori > >> Stefan >> >