|
|
50dc83 |
From 144f2eb56d1bbecc9c455065755f41ec81974e3e Mon Sep 17 00:00:00 2001
|
|
|
50dc83 |
From: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
50dc83 |
Date: Sun, 7 Apr 2019 21:54:07 +0530
|
|
|
50dc83 |
Subject: [PATCH 087/124] ganesha : fixing minor issues after the backport from
|
|
|
50dc83 |
3.4
|
|
|
50dc83 |
|
|
|
50dc83 |
label : DOWNSTREAM ONLY
|
|
|
50dc83 |
|
|
|
50dc83 |
Change-Id: Ib0f6d8728d2e33da63ed4baab0bb981a0b06a8e0
|
|
|
50dc83 |
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
50dc83 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/167168
|
|
|
50dc83 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
50dc83 |
Reviewed-by: Kaleb Keithley <kkeithle@redhat.com>
|
|
|
50dc83 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
50dc83 |
---
|
|
|
50dc83 |
glusterfs.spec.in | 20 +++++++++++++++++---
|
|
|
50dc83 |
xlators/mgmt/glusterd/src/glusterd-ganesha.c | 2 +-
|
|
|
50dc83 |
2 files changed, 18 insertions(+), 4 deletions(-)
|
|
|
50dc83 |
|
|
|
50dc83 |
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
|
|
|
50dc83 |
index e0607ba..f6b823d 100644
|
|
|
50dc83 |
--- a/glusterfs.spec.in
|
|
|
50dc83 |
+++ b/glusterfs.spec.in
|
|
|
50dc83 |
@@ -883,6 +883,15 @@ sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sha
|
|
|
50dc83 |
install -D -p -m 0644 extras/glusterfs-logrotate \
|
|
|
50dc83 |
%{buildroot}%{_sysconfdir}/logrotate.d/glusterfs
|
|
|
50dc83 |
|
|
|
50dc83 |
+# ganesha ghosts
|
|
|
50dc83 |
+%if ( 0%{!?_without_server:1} )
|
|
|
50dc83 |
+mkdir -p %{buildroot}%{_sysconfdir}/ganesha
|
|
|
50dc83 |
+touch %{buildroot}%{_sysconfdir}/ganesha/ganesha-ha.conf
|
|
|
50dc83 |
+mkdir -p %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/
|
|
|
50dc83 |
+touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
|
|
|
50dc83 |
+touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
|
|
|
50dc83 |
+%endif
|
|
|
50dc83 |
+
|
|
|
50dc83 |
%if ( 0%{!?_without_georeplication:1} )
|
|
|
50dc83 |
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
|
|
|
50dc83 |
touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
|
|
|
50dc83 |
@@ -1197,7 +1206,7 @@ exit 0
|
|
|
50dc83 |
|
|
|
50dc83 |
%if ( 0%{?_without_server:1} )
|
|
|
50dc83 |
#exclude ganesha related files
|
|
|
50dc83 |
-%exclude %{_sysconfdir}/ganesha/*
|
|
|
50dc83 |
+%exclude %{_sysconfdir}/ganesha/ganesha-ha.conf.sample
|
|
|
50dc83 |
%exclude %{_libexecdir}/ganesha/*
|
|
|
50dc83 |
%exclude %{_prefix}/lib/ocf/resource.d/heartbeat/*
|
|
|
50dc83 |
%endif
|
|
|
50dc83 |
@@ -1376,9 +1385,15 @@ exit 0
|
|
|
50dc83 |
|
|
|
50dc83 |
%if ( 0%{!?_without_server:1} )
|
|
|
50dc83 |
%files ganesha
|
|
|
50dc83 |
-%{_sysconfdir}/ganesha/*
|
|
|
50dc83 |
+%dir %{_libexecdir}/ganesha
|
|
|
50dc83 |
+%{_sysconfdir}/ganesha/ganesha-ha.conf.sample
|
|
|
50dc83 |
%{_libexecdir}/ganesha/*
|
|
|
50dc83 |
%{_prefix}/lib/ocf/resource.d/heartbeat/*
|
|
|
50dc83 |
+%{_sharedstatedir}/glusterd/hooks/1/start/post/S31ganesha-start.sh
|
|
|
50dc83 |
+%ghost %attr(0644,-,-) %config(noreplace) %{_sysconfdir}/ganesha/ganesha-ha.conf
|
|
|
50dc83 |
+%ghost %dir %attr(0755,-,-) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha
|
|
|
50dc83 |
+%ghost %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
|
|
|
50dc83 |
+%ghost %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
|
|
|
50dc83 |
%endif
|
|
|
50dc83 |
|
|
|
50dc83 |
%if ( 0%{!?_without_ocf:1} )
|
|
|
50dc83 |
@@ -1508,7 +1523,6 @@ exit 0
|
|
|
50dc83 |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post
|
|
|
50dc83 |
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S29CTDBsetup.sh
|
|
|
50dc83 |
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S30samba-start.sh
|
|
|
50dc83 |
- %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S31ganesha-start.sh
|
|
|
50dc83 |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/pre
|
|
|
50dc83 |
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop
|
|
|
50dc83 |
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/post
|
|
|
50dc83 |
diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
|
|
|
50dc83 |
index d882105..0a16925 100644
|
|
|
50dc83 |
--- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c
|
|
|
50dc83 |
+++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
|
|
|
50dc83 |
@@ -278,7 +278,7 @@ glusterd_op_stage_set_ganesha(dict_t *dict, char **op_errstr)
|
|
|
50dc83 |
goto out;
|
|
|
50dc83 |
}
|
|
|
50dc83 |
|
|
|
50dc83 |
- if (strcmp(value, "enable")) {
|
|
|
50dc83 |
+ if (strcmp(value, "enable") == 0) {
|
|
|
50dc83 |
ret = start_ganesha(op_errstr);
|
|
|
50dc83 |
if (ret) {
|
|
|
50dc83 |
gf_msg(THIS->name, GF_LOG_ERROR, 0, GD_MSG_NFS_GNS_START_FAIL,
|
|
|
50dc83 |
--
|
|
|
50dc83 |
1.8.3.1
|
|
|
50dc83 |
|