summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2018-03-30 00:14:19 +0200
committerKaleb KEITHLEY <kkeithle@redhat.com>2018-04-02 12:59:12 +0000
commit9b8de6421e550f7dc106953d43e0af60fca9be89 (patch)
tree28a479b2a63c66ac6d51b85998c079bf9c4624ad
parent3e3ca8307ee773e0348549a3204478cac3c46f70 (diff)
ocf: use glusterd-workdir for finding volume status files
The volume status files are located in the glusterd-workdir, not under /etc (sysconfdir). BUG: 1234873 Change-Id: Id7f7c83261bb4b5ac2fc104dcd6cb198d6a930aa Signed-off-by: Niels de Vos <ndevos@redhat.com>
-rwxr-xr-xextras/ocf/volume.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/ocf/volume.in b/extras/ocf/volume.in
index de05373b9e3..46dd20b8ced 100755
--- a/extras/ocf/volume.in
+++ b/extras/ocf/volume.in
@@ -70,7 +70,7 @@ EOF
volume_getdir() {
local voldir
- voldir="@sysconfdir@/glusterd/vols/${OCF_RESKEY_volname}"
+ voldir="@GLUSTERD_WORKDIR@/vols/${OCF_RESKEY_volname}"
[ -d ${voldir} ] || return 1