qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host block device
Date: Thu, 10 Jun 2010 17:32:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4

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.

+    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?

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]