Fix #1178: bring back glusterfs-daemonize patch
[pve-qemu-kvm.git] / debian / patches / pve / 0044-glusterfs-daemonize.patch
bloba19fca70032b9002fd3c4e18b2044b277c3d88a0
1 From f9f68037d7138efd078dba7c23c4c9066c5ddacc Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Mon, 24 Oct 2016 09:32:36 +0200
4 Subject: [PATCH 44/44] glusterfs: daemonize
6 ---
7 block/gluster.c | 8 +++++---
8 1 file changed, 5 insertions(+), 3 deletions(-)
10 diff --git a/block/gluster.c b/block/gluster.c
11 index 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,
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 + }
28 ret = glfs_init(glfs);
29 --
30 2.1.4