Received: from [140.186.70.92] (port=38972 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMl2a-0007lb-5B for qemu-devel@nongnu.org; Thu, 10 Jun 2010 12:55:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMl2Y-0002vy-Qs for qemu-devel@nongnu.org; Thu, 10 Jun 2010 12:55:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8336) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl2Y-0002vi-Ir for qemu-devel@nongnu.org; Thu, 10 Jun 2010 12:55:38 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5AGtQjI017786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 10 Jun 2010 12:55:37 -0400 From: Markus Armbruster References: <1275497729-13120-1-git-send-email-armbru@redhat.com> <1275497729-13120-14-git-send-email-armbru@redhat.com> <4C110579.2040208@redhat.com> Date: Thu, 10 Jun 2010 18:32:14 +0200 In-Reply-To: <4C110579.2040208@redhat.com> (Paolo Bonzini's message of "Thu, 10 Jun 2010 17:32:09 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host block device List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, qemu-devel@nongnu.org, kraxel@redhat.com Paolo Bonzini writes: > On 06/02/2010 06:55 PM, Markus Armbruster wrote: >> * Like -drive, -blockdev ignores cache= silently when snapshot=on. Do >> we really want that? > > Yes, the changes are throw-away by definition. Might as well use > cache=unsafe. I understand why that's the most sensible cache setting. But if the user explicitly asks for something else, I think we better give it to him, or tell him no. Ignoring him silently isn't nice. >> + if (snapshot) { >> + /* always use write-back with snapshot */ >> + /* FIXME ignores explicit cache= *silently*; really want that? */ >> + flags &= ~BDRV_O_CACHE_MASK; >> + flags |= (BDRV_O_SNAPSHOT | BDRV_O_CACHE_WB); >> + flags |= BDRV_O_SNAPSHOT; > > Cut and paste? Pasto indeed, will fix. Thanks!