]> git.proxmox.com Git - pve-qemu-kvm.git/blame - 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
CommitLineData
9c3bec39 1From a7613eb93e702d5de5b40d17c4d4e95e8e5a010d Mon Sep 17 00:00:00 2001
db645044
WB
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Mon, 24 Oct 2016 09:32:36 +0200
9c3bec39 4Subject: [PATCH 44/47] glusterfs: daemonize
db645044
WB
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