]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
remove rbd-enable-cacheoption.patch
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 28 Aug 2012 05:02:21 +0000 (07:02 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 28 Aug 2012 05:02:21 +0000 (07:02 +0200)
debian/patches/rbd-enable-cacheoption.patch [deleted file]
debian/patches/series

diff --git a/debian/patches/rbd-enable-cacheoption.patch b/debian/patches/rbd-enable-cacheoption.patch
deleted file mode 100644 (file)
index 864b134..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-Signed-off-by: Josh Durgin <address@hidden>
----
- block/rbd.c |   19 +++++++++++++++++++
- 1 files changed, 19 insertions(+), 0 deletions(-)
-
-diff --git a/block/rbd.c b/block/rbd.c
-index 1280d66..eebc334 100644
---- a/block/rbd.c
-+++ b/block/rbd.c
-@@ -476,6 +476,25 @@ static int qemu_rbd_open(BlockDriverState *bs, const char *filename, int flags)
-         s->snap = g_strdup(snap_buf);
-     }
-+    /*
-+     * Fallback to more conservative semantics if setting cache
-+     * options fails. Ignore errors from setting rbd_cache because the
-+     * only possible error is that the option does not exist, and
-+     * librbd defaults to no caching. If write through caching cannot
-+     * be set up, fall back to no caching.
-+     */
-+    if (flags & BDRV_O_NOCACHE) {
-+        rados_conf_set(s->cluster, "rbd_cache", "false");
-+    } else {
-+        rados_conf_set(s->cluster, "rbd_cache", "true");
-+        if (!(flags & BDRV_O_CACHE_WB)) {
-+            r = rados_conf_set(s->cluster, "rbd_cache_max_dirty", "0");
-+            if (r < 0) {
-+                rados_conf_set(s->cluster, "rbd_cache", "false");
-+            }
-+        }
-+    }
-+
-     if (strstr(conf, "conf=") == NULL) {
-         /* try default location, but ignore failure */
-         rados_conf_read_file(s->cluster, NULL);
--- 
-1.7.5.4
index d20745b19034b2f60cc364392c3de773d155b288..b1d04ba44d04e7fc13c0aa90c04256dbee826c82 100644 (file)
@@ -5,5 +5,4 @@ keymap.diff
 set-max-nics.patch
 pve-auth.patch
 update-cpus-x86_64.conf-to-rhel6.2-version.patch
-rbd-enable-cacheoption.patch
 vencrypt-auth-plain.patch