]> git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/patches/pve/0055-enable-cache-unsafe-for-vma-extract_content-and-qmp_.patch
bump version to 2.6.2-2
[pve-qemu-kvm.git] / debian / patches / pve / 0055-enable-cache-unsafe-for-vma-extract_content-and-qmp_.patch
1 From 6775cc94517696abe12bbae601395b7a16e06ba0 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Mon, 1 Aug 2016 10:52:46 +0200
4 Subject: [PATCH 55/55] enable cache=unsafe for vma extract_content and
5 qmp_savevm_start
6
7 We don't send any flush here, so we need to open with cache=unsafe.
8
9 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 For-patch: BDRV_O_CACHE_WB was removed
11 ---
12 savevm-async.c | 2 +-
13 vma.c | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/savevm-async.c b/savevm-async.c
17 index 2c41b17..6a2266c 100644
18 --- a/savevm-async.c
19 +++ b/savevm-async.c
20 @@ -253,7 +253,7 @@ void qmp_savevm_start(bool has_statefile, const char *statefile, Error **errp)
21 {
22 Error *local_err = NULL;
23
24 - int bdrv_oflags = BDRV_O_RDWR;
25 + int bdrv_oflags = BDRV_O_RDWR | BDRV_O_NO_FLUSH;
26 int ret;
27
28 if (snap_state.state != SAVE_STATE_DONE) {
29 diff --git a/vma.c b/vma.c
30 index 0716a45..4d2d5ad 100644
31 --- a/vma.c
32 +++ b/vma.c
33 @@ -280,7 +280,7 @@ static int extract_content(int argc, char **argv)
34 } else if (di) {
35 char *devfn = NULL;
36 const char *format = NULL;
37 - int flags = BDRV_O_RDWR;
38 + int flags = BDRV_O_RDWR | BDRV_O_NO_FLUSH;
39 bool write_zero = true;
40
41 if (readmap) {
42 --
43 2.1.4
44