]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/pve/0026-glusterfs-daemonize.patch
bump version to 2.6.2-2
[pve-qemu-kvm.git] / debian / patches / pve / 0026-glusterfs-daemonize.patch
CommitLineData
6fb04df7 1From 577243992461100d840e90b6018df958ee165a34 Mon Sep 17 00:00:00 2001
ca0fe5f5
WB
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Wed, 9 Dec 2015 16:33:10 +0100
6fb04df7 4Subject: [PATCH 26/55] glusterfs: daemonize
ca0fe5f5
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
6fb04df7 11index a8aaacf..9cf33e9 100644
ca0fe5f5
WB
12--- a/block/gluster.c
13+++ b/block/gluster.c
6fb04df7 14@@ -198,9 +198,11 @@ static struct glfs *qemu_gluster_init(GlusterConf *gconf, const char *filename,
ca0fe5f5
WB
15 * TODO: Use GF_LOG_ERROR instead of hard code value of 4 here when
16 * GlusterFS makes GF_LOG_* macros available to libgfapi users.
17 */
18- ret = glfs_set_logging(glfs, "-", 4);
19- if (ret < 0) {
20- goto out;
21+ if (!is_daemonized()) {
22+ ret = glfs_set_logging(glfs, "-", 4);
23+ if (ret < 0) {
24+ goto out;
25+ }
26 }
27
28 ret = glfs_init(glfs);
29--
302.1.4
31