]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
Fix #1178: bring back glusterfs-daemonize patch
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 24 Oct 2016 07:33:39 +0000 (09:33 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 24 Oct 2016 07:41:06 +0000 (09:41 +0200)
debian/patches/pve/0044-glusterfs-daemonize.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/pve/0044-glusterfs-daemonize.patch b/debian/patches/pve/0044-glusterfs-daemonize.patch
new file mode 100644 (file)
index 0000000..a19fca7
--- /dev/null
@@ -0,0 +1,31 @@
+From f9f68037d7138efd078dba7c23c4c9066c5ddacc Mon Sep 17 00:00:00 2001
+From: Wolfgang Bumiller <w.bumiller@proxmox.com>
+Date: Mon, 24 Oct 2016 09:32:36 +0200
+Subject: [PATCH 44/44] glusterfs: daemonize
+
+---
+ block/gluster.c | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/block/gluster.c b/block/gluster.c
+index 01b479f..6dcf926 100644
+--- a/block/gluster.c
++++ b/block/gluster.c
+@@ -341,9 +341,11 @@ static struct glfs *qemu_gluster_glfs_init(BlockdevOptionsGluster *gconf,
+         }
+     }
+-    ret = glfs_set_logging(glfs, "-", gconf->debug_level);
+-    if (ret < 0) {
+-        goto out;
++    if (!is_daemonized()) {
++        ret = glfs_set_logging(glfs, "-", gconf->debug_level);
++        if (ret < 0) {
++            goto out;
++        }
+     }
+     ret = glfs_init(glfs);
+-- 
+2.1.4
+
index 2821c4cea628c567054c512e57d956d3625f2f83..d025009029d53c6023b812a4e190fb535a87f9bb 100644 (file)
@@ -41,6 +41,7 @@ pve/0040-enable-cache-unsafe-for-vma-extract_content-and-qmp_.patch
 pve/0041-savevm-async-updates.patch
 pve/0042-qmp_snapshot_drive-add-aiocontext.patch
 pve/0043-vma-sizes-passed-to-blk_co_preadv-should-be-bytes-no.patch
+pve/0044-glusterfs-daemonize.patch
 #see https://bugs.launchpad.net/qemu/+bug/1488363?comments=all
 extra/x86-lapic-Load-LAPIC-state-at-post_load.patch
 extra/0001-Revert-target-i386-disable-LINT0-after-reset.patch