]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/pve/0044-glusterfs-daemonize.patch
Fix #1178: bring back glusterfs-daemonize patch
[pve-qemu-kvm.git] / debian / patches / pve / 0044-glusterfs-daemonize.patch
CommitLineData
db645044
WB
1From f9f68037d7138efd078dba7c23c4c9066c5ddacc Mon Sep 17 00:00:00 2001
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Mon, 24 Oct 2016 09:32:36 +0200
4Subject: [PATCH 44/44] glusterfs: daemonize
5
6---
7 block/gluster.c | 8 +++++---
8 1 file changed, 5 insertions(+), 3 deletions(-)
9
10diff --git a/block/gluster.c b/block/gluster.c
11index 01b479f..6dcf926 100644
12--- a/block/gluster.c
13+++ b/block/gluster.c
14@@ -341,9 +341,11 @@ static struct glfs *qemu_gluster_glfs_init(BlockdevOptionsGluster *gconf,
15 }
16 }
17
18- ret = glfs_set_logging(glfs, "-", gconf->debug_level);
19- if (ret < 0) {
20- goto out;
21+ if (!is_daemonized()) {
22+ ret = glfs_set_logging(glfs, "-", gconf->debug_level);
23+ if (ret < 0) {
24+ goto out;
25+ }
26 }
27
28 ret = glfs_init(glfs);
29--
302.1.4
31