]> git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/patches/pve/0044-glusterfs-daemonize.patch
bump version to 2.7.1-501
[pve-qemu-kvm.git] / debian / patches / pve / 0044-glusterfs-daemonize.patch
1 From a7613eb93e702d5de5b40d17c4d4e95e8e5a010d 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/47] glusterfs: daemonize
5
6 ---
7 block/gluster.c | 8 +++++---
8 1 file changed, 5 insertions(+), 3 deletions(-)
9
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,
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 --
30 2.1.4
31