]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
enable cache=unsafe for vma extract_content and qmp_savevm_start
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 1 Aug 2016 06:51:02 +0000 (08:51 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 1 Aug 2016 08:29:49 +0000 (10:29 +0200)
We don't send any flush here, so we need to open with cache=unsafe.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
debian/patches/pve/0048-BDRV_O_CACHE_WB-was-removed.patch

index 9ec94f424c832d303ae8c995da8377ae5f013847..047c203a3337e9f5fadf06ec6827382f8c584394 100644 (file)
@@ -32,7 +32,7 @@ index 4d73e66..2c41b17 100644
      Error *local_err = NULL;
  
 -    int bdrv_oflags = BDRV_O_CACHE_WB | BDRV_O_RDWR;
-+    int bdrv_oflags = BDRV_O_RDWR;
++    int bdrv_oflags = BDRV_O_RDWR | BDRV_O_NO_FLUSH;
      int ret;
  
      if (snap_state.state != SAVE_STATE_DONE) {
@@ -54,7 +54,7 @@ index c3db633..c1407d3 100644
              char *devfn = NULL;
              const char *format = NULL;
 -            int flags = BDRV_O_RDWR|BDRV_O_CACHE_WB;
-+            int flags = BDRV_O_RDWR;
++            int flags = BDRV_O_RDWR|BDRV_O_NO_FLUSH;
              bool write_zero = true;
  
              if (readmap) {