From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXVD8-0006ig-6H for qemu-devel@nongnu.org; Fri, 17 Jun 2011 05:19:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXVD7-0003c8-86 for qemu-devel@nongnu.org; Fri, 17 Jun 2011 05:19:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXVD6-0003c0-TZ for qemu-devel@nongnu.org; Fri, 17 Jun 2011 05:19:29 -0400 Message-ID: <4DFB1CC4.6050903@redhat.com> Date: Fri, 17 Jun 2011 11:22:12 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1308075511-4745-1-git-send-email-stefanha@linux.vnet.ibm.com> <4DF9F899.5050301@redhat.com> <4DF9FBE4.9080300@redhat.com> <4DFA004E.9010001@redhat.com> <20110616145243.GB12173@amt.cnet> <4DFB1205.9040408@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Image streaming and live block copy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Anthony Liguori , Dor Laor , Stefan Hajnoczi , jes sorensen , Marcelo Tosatti , qemu-devel@nongnu.org, Avi Kivity , Adam Litke Am 17.06.2011 10:57, schrieb Stefan Hajnoczi: > On Fri, Jun 17, 2011 at 9:36 AM, Kevin Wolf wrote: >> By the way, we'll get problems with the colon syntax. Without -blockdev >> we'll have to invent a new syntax, maybe with brackets: >> >> blkstream:[nbd:localhost]:out.qcow2 > > Embedding block driver options in filenames is getting worse as time > goes on. Well, yes. We need -blockdev for a sane way to express complex relations between BlockDriverStates. But then, we'll also want to have convenient shortcuts for manual use, and that may be something like the existing colon syntax. I really don't feel like typing three full -blockdev parameters for qcow2 on blockdbg on raw. > I recently tried to refactor and eliminate > QEMUOptionParameter so that we only use QemuOpts instead of two > different option APIs. Part of that involves keeping separate > per-block driver (i.e. -blockdev) options lists, which would allow us > to pass proper options to block drivers instead of embedding them in > the filename. Aren't these completely independent things? QEMUOptionParameter is used for image creation, whereas filenames are used for opening images. I think you can change one without changing the other. Kevin