e1d1f9
%global _hardened_build 1
e1d1f9
e1d1f9
%global _for_fedora_koji_builds 0
e1d1f9
e1d1f9
# uncomment and add '%' to use the prereltag for pre-releases
473043
# %%global prereltag qa3
473043
473043
##-----------------------------------------------------------------------------
473043
## All argument definitions should be placed here and keep them sorted
473043
##
e1d1f9
3604df
# if you wish to compile an rpm with debugging...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --with debug
3604df
%{?_with_debug:%global _with_debug --enable-debug}
3604df
d1681e
# if you wish to compile an rpm to run all processes under valgrind...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --with valgrind
d1681e
%{?_with_valgrind:%global _with_valgrind --enable-valgrind}
d1681e
cb8e9e
# if you wish to compile an rpm with cmocka unit testing...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --with cmocka
cb8e9e
%{?_with_cmocka:%global _with_cmocka --enable-cmocka}
cb8e9e
e1d1f9
# if you wish to compile an rpm without rdma support, compile like this...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --without rdma
e1d1f9
%{?_without_rdma:%global _without_rdma --disable-ibverbs}
e1d1f9
e1d1f9
# No RDMA Support on s390(x)
d1681e
%ifarch s390 s390x armv7hl
e1d1f9
%global _without_rdma --disable-ibverbs
e1d1f9
%endif
e1d1f9
e1d1f9
# if you wish to compile an rpm without epoll...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --without epoll
e1d1f9
%{?_without_epoll:%global _without_epoll --disable-epoll}
e1d1f9
e1d1f9
# if you wish to compile an rpm without fusermount...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --without fusermount
e1d1f9
%{?_without_fusermount:%global _without_fusermount --disable-fusermount}
e1d1f9
e1d1f9
# if you wish to compile an rpm without geo-replication support, compile like this...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --without georeplication
473043
%{?_without_georeplication:%global _without_georeplication --disable-georeplication}
473043
473043
# Disable geo-replication on EL5, as its default Python is too old
473043
%if ( 0%{?rhel} && 0%{?rhel} < 6 )
473043
%global _without_georeplication --disable-georeplication
473043
%endif
e1d1f9
e1d1f9
# if you wish to compile an rpm without the OCF resource agents...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --without ocf
e1d1f9
%{?_without_ocf:%global _without_ocf --without-ocf}
e1d1f9
473043
# if you wish to build rpms without syslog logging, compile like this
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --without syslog
473043
%{?_without_syslog:%global _without_syslog --disable-syslog}
473043
473043
# disable syslog forcefully as rhel <= 6 doesn't have rsyslog or rsyslog-mmcount
12a457
# Fedora deprecated syslog, see
cb8e9e
#  https://fedoraproject.org/wiki/Changes/NoDefaultSyslog
cb8e9e
# (And what about RHEL7?)
cb8e9e
%if ( 0%{?fedora} && 0%{?fedora} >= 20 ) || ( 0%{?rhel} && 0%{?rhel} <= 6 )
473043
%global _without_syslog --disable-syslog
473043
%endif
e1d1f9
e1d1f9
# if you wish to compile an rpm without the BD map support...
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --without bd
e1d1f9
%{?_without_bd:%global _without_bd --disable-bd-xlator}
e1d1f9
473043
%if ( 0%{?rhel} && 0%{?rhel} < 6 || 0%{?sles_version} )
3604df
%global _without_bd --disable-bd-xlator
e1d1f9
%endif
e1d1f9
12a457
# Disable data-tiering on EL5, sqlite is too old
12a457
%if ( 0%{?rhel} && 0%{?rhel} < 6 )
12a457
%global _without_tiering --disable-tiering
12a457
%endif
12a457
473043
# if you wish not to build server rpms, compile like this.
d1681e
# rpmbuild -ta glusterfs-3.12.2.tar.gz --without server
e1d1f9
473043
%global _build_server 1
473043
%if "%{?_without_server}"
473043
%global _build_server 0
e1d1f9
%endif
e1d1f9
cb8e9e
%if ( "%{?dist}" == ".el6rhs" ) || ( "%{?dist}" == ".el7rhs" ) || ( "%{?dist}" == ".el7rhgs" )
473043
%global _build_server 1
473043
%else
473043
%global _build_server 0
cb8e9e
%global _without_georeplication --disable-georeplication
e1d1f9
%endif
e1d1f9
473043
%global _without_extra_xlators 1
473043
%global _without_regression_tests 1
473043
473043
##-----------------------------------------------------------------------------
12a457
## All %%global definitions should be placed here and keep them sorted
473043
##
473043
e1d1f9
%if ( 0%{?fedora} && 0%{?fedora} > 16 ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
473043
%global _with_systemd true
e1d1f9
%endif
e1d1f9
cb8e9e
%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 7 )
cb8e9e
%global _with_firewalld --enable-firewalld
cb8e9e
%endif
cb8e9e
cb8e9e
%if 0%{?_tmpfilesdir:1}
3604df
%global _with_tmpfilesdir --with-tmpfilesdir=%{_tmpfilesdir}
cb8e9e
%else
3604df
%global _with_tmpfilesdir --without-tmpfilesdir
cb8e9e
%endif
cb8e9e
3604df
# Eventing
3604df
%if ( 0%{?rhel} && 0%{?rhel} < 6 )
3604df
%global _without_events --disable-events
3604df
%endif
473043
79e268
# From https://fedoraproject.org/wiki/Packaging:Python#Macros
d1681e
%if ( 0%{?rhel} && 0%{?rhel} <= 6 )
d1681e
%{!?python2_sitelib: %global python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
d1681e
%{!?python2_sitearch: %global python2_sitearch %(python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
d1681e
%global _rundir %{_localstatedir}/run
473043
%endif
473043
473043
%if ( 0%{?_with_systemd:1} )
3604df
%global _init_enable()  /bin/systemctl enable %1.service ;
3604df
%global _init_disable() /bin/systemctl disable %1.service ;
3604df
%global _init_restart() /bin/systemctl try-restart %1.service ;
3604df
%global _init_start()   /bin/systemctl start %1.service ;
3604df
%global _init_stop()    /bin/systemctl stop %1.service ;
3604df
%global _init_install() install -D -p -m 0644 %1 %{buildroot}%{_unitdir}/%2.service ;
473043
# can't seem to make a generic macro that works
3604df
%global _init_glusterd   %{_unitdir}/glusterd.service
3604df
%global _init_glusterfsd %{_unitdir}/glusterfsd.service
3604df
%global _init_glustereventsd %{_unitdir}/glustereventsd.service
21ab4e
%global _init_glusterfssharedstorage %{_unitdir}/glusterfssharedstorage.service
473043
%else
3604df
%global _init_enable()  /sbin/chkconfig --add %1 ;
3604df
%global _init_disable() /sbin/chkconfig --del %1 ;
3604df
%global _init_restart() /sbin/service %1 condrestart &>/dev/null ;
3604df
%global _init_start()   /sbin/service %1 start &>/dev/null ;
3604df
%global _init_stop()    /sbin/service %1 stop &>/dev/null ;
3604df
%global _init_install() install -D -p -m 0755 %1 %{buildroot}%{_sysconfdir}/init.d/%2 ;
473043
# can't seem to make a generic macro that works
3604df
%global _init_glusterd   %{_sysconfdir}/init.d/glusterd
3604df
%global _init_glusterfsd %{_sysconfdir}/init.d/glusterfsd
3604df
%global _init_glustereventsd %{_sysconfdir}/init.d/glustereventsd
473043
%endif
473043
473043
%if ( 0%{_for_fedora_koji_builds} )
473043
%if ( 0%{?_with_systemd:1} )
473043
%global glusterfsd_service glusterfsd.service
473043
%else
473043
%global glusterfsd_service glusterfsd.init
473043
%endif
473043
%endif
473043
473043
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
473043
473043
%if ( 0%{?rhel} && 0%{?rhel} < 6 )
3604df
# _sharedstatedir is not provided by RHEL5
3604df
%global _sharedstatedir /var/lib
473043
%endif
473043
473043
# We do not want to generate useless provides and requires for xlator
473043
# .so files to be set for glusterfs packages.
473043
# Filter all generated:
473043
#
473043
# TODO: RHEL5 does not have a convenient solution
473043
%if ( 0%{?rhel} == 6 )
3604df
# filter_setup exists in RHEL6 only
3604df
%filter_provides_in %{_libdir}/glusterfs/%{version}/
3604df
%global __filter_from_req %{?__filter_from_req} | grep -v -P '^(?!lib).*\.so.*$'
3604df
%filter_setup
473043
%else
3604df
# modern rpm and current Fedora do not generate requires when the
3604df
# provides are filtered
3604df
%global __provides_exclude_from ^%{_libdir}/glusterfs/%{version}/.*$
79e268
%endif
79e268
473043
473043
##-----------------------------------------------------------------------------
12a457
## All package definitions should be placed here in alphabetical order
473043
##
cb8e9e
Summary:          Distributed File System
e1d1f9
%if ( 0%{_for_fedora_koji_builds} )
e1d1f9
Name:             glusterfs
3604df
Version:          3.8.0
473043
Release:          0.1%{?prereltag:.%{prereltag}}%{?dist}
e1d1f9
%else
e1d1f9
Name:             glusterfs
d1681e
Version:          3.12.2
d1681e
Release:          18%{?dist}
e1d1f9
%endif
e1d1f9
License:          GPLv2 or LGPLv3+
e1d1f9
Group:            System Environment/Base
d1681e
URL:              http://gluster.readthedocs.io/en/latest/
473043
%if ( 0%{_for_fedora_koji_builds} )
473043
Source0:          http://bits.gluster.org/pub/gluster/glusterfs/src/glusterfs-%{version}%{?prereltag}.tar.gz
473043
Source1:          glusterd.sysconfig
473043
Source2:          glusterfsd.sysconfig
473043
Source6:          rhel5-load-fuse-modules
473043
Source7:          glusterfsd.service
473043
Source8:          glusterfsd.init
473043
%else
d1681e
Source0:          glusterfs-3.12.2.tar.gz
473043
%endif
e1d1f9
e1d1f9
BuildRoot:        %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
e1d1f9
21ab4e
Requires(pre):    shadow-utils
473043
%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
473043
BuildRequires:    python-simplejson
e1d1f9
%endif
473043
%if ( 0%{?_with_systemd:1} )
3604df
BuildRequires:    systemd
e1d1f9
%endif
e1d1f9
12a457
Requires:         %{name}-libs%{?_isa} = %{version}-%{release}
3604df
%if ( 0%{?_with_systemd:1} )
3604df
%{?systemd_requires}
3604df
%endif
3604df
BuildRequires:    git
e1d1f9
BuildRequires:    bison flex
3604df
BuildRequires:    gcc make libtool
e1d1f9
BuildRequires:    ncurses-devel readline-devel
e1d1f9
BuildRequires:    libxml2-devel openssl-devel
cb8e9e
BuildRequires:    libaio-devel libacl-devel
d1681e
BuildRequires:    python2-devel
d1681e
%if ( 0%{?fedora} && 0%{?fedora} < 26 ) || ( 0%{?rhel} )
e1d1f9
BuildRequires:    python-ctypes
d1681e
%endif
cb8e9e
BuildRequires:    userspace-rcu-devel >= 0.7
3604df
%if ( 0%{?rhel} && 0%{?rhel} <= 6 )
3604df
BuildRequires:    automake
3604df
%endif
cb8e9e
%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
cb8e9e
BuildRequires:    e2fsprogs-devel
cb8e9e
%else
cb8e9e
BuildRequires:    libuuid-devel
cb8e9e
%endif
cb8e9e
%if ( 0%{?_with_cmocka:1} )
cb8e9e
BuildRequires:    libcmocka-devel >= 1.0.1
cb8e9e
%endif
cb8e9e
%if ( 0%{!?_without_tiering:1} )
cb8e9e
BuildRequires:    sqlite-devel
cb8e9e
%endif
e1d1f9
%if ( 0%{!?_without_bd:1} )
e1d1f9
BuildRequires:    lvm2-devel
e1d1f9
%endif
473043
%if ( 0%{!?_without_georeplication:1} )
473043
BuildRequires:    libattr-devel
e1d1f9
%endif
e1d1f9
cb8e9e
%if (0%{?_with_firewalld:1})
cb8e9e
BuildRequires:    firewalld
cb8e9e
%endif
cb8e9e
473043
Obsoletes:        hekafs
e1d1f9
Obsoletes:        %{name}-common < %{version}-%{release}
e1d1f9
Obsoletes:        %{name}-core < %{version}-%{release}
473043
Obsoletes:        %{name}-ufo
e1d1f9
Provides:         %{name}-common = %{version}-%{release}
e1d1f9
Provides:         %{name}-core = %{version}-%{release}
e1d1f9
d1681e
# Patch0001: 0001-Update-rfc.sh-to-rhgs-3.4.0.patch
12a457
Patch0002: 0002-glusterd-fix-op-versions-for-RHS-backwards-compatabi.patch
3604df
Patch0003: 0003-tier-ctr-sql-Dafault-values-for-sql-cache-and-wal-si.patch
3604df
Patch0004: 0004-rpc-set-bind-insecure-to-off-by-default.patch
3604df
Patch0005: 0005-glusterd-spec-fixing-autogen-issue.patch
3604df
Patch0006: 0006-libglusterfs-glusterd-Fix-compilation-errors.patch
3604df
Patch0007: 0007-build-remove-ghost-directory-entries.patch
3604df
Patch0008: 0008-build-add-RHGS-specific-changes.patch
3604df
Patch0009: 0009-secalert-remove-setuid-bit-for-fusermount-glusterfs.patch
3604df
Patch0010: 0010-build-packaging-corrections-for-RHEL-5.patch
3604df
Patch0011: 0011-build-introduce-security-hardening-flags-in-gluster.patch
3604df
Patch0012: 0012-spec-fix-add-pre-transaction-scripts-for-geo-rep-and.patch
3604df
Patch0013: 0013-rpm-glusterfs-devel-for-client-builds-should-not-dep.patch
3604df
Patch0014: 0014-build-add-pretrans-check.patch
3604df
Patch0015: 0015-build-exclude-libgfdb.pc-conditionally.patch
3604df
Patch0016: 0016-build-exclude-glusterfs.xml-on-rhel-7-client-build.patch
3604df
Patch0017: 0017-glusterd-fix-info-file-checksum-mismatch-during-upgr.patch
3604df
Patch0018: 0018-build-spec-file-conflict-resolution.patch
3604df
Patch0019: 0019-build-dependency-error-during-upgrade.patch
d1681e
Patch0020: 0020-eventsapi-Fix-eventtypes.h-header-generation-with-Py.patch
d1681e
Patch0021: 0021-syscall-remove-preadv-and-pwritev-sys-wrappers.patch
d1681e
Patch0022: 0022-build-ignore-sbindir-conf.py-for-RHEL-5.patch
d1681e
Patch0023: 0023-build-randomize-temp-file-names-in-pretrans-scriptle.patch
d1681e
Patch0024: 0024-glusterd-gNFS-On-post-upgrade-to-3.2-disable-gNFS-fo.patch
d1681e
Patch0025: 0025-build-Add-dependency-on-netstat-for-glusterfs-ganesh.patch
d1681e
Patch0026: 0026-glusterd-gNFS-explicitly-set-nfs.disable-to-off-afte.patch
d1681e
Patch0027: 0027-glusterd-spawn-nfs-daemon-in-op-version-bump-if-nfs..patch
d1681e
Patch0028: 0028-glusterd-parallel-readdir-Change-the-op-version-of-p.patch
d1681e
Patch0029: 0029-build-exclude-glusterfssharedstorage.service-and-mou.patch
d1681e
Patch0030: 0030-build-make-gf_attach-available-in-glusterfs-server.patch
d1681e
Patch0031: 0031-glusterd-Revert-op-version-for-cluster.max-brick-per.patch
d1681e
Patch0032: 0032-cli-Add-message-for-user-before-modifying-brick-mult.patch
d1681e
Patch0033: 0033-build-launch-glusterd-upgrade-after-all-new-bits-are.patch
d1681e
Patch0034: 0034-build-remove-pretrans-script-for-python-gluster.patch
d1681e
Patch0035: 0035-glusterd-regenerate-volfiles-on-op-version-bump-up.patch
d1681e
Patch0036: 0036-mount-fuse-Fix-parsing-of-vol_id-for-snapshot-volume.patch
d1681e
Patch0037: 0037-protocol-auth-use-the-proper-validation-method.patch
d1681e
Patch0038: 0038-protocol-server-fix-the-comparision-logic-in-case-of.patch
d1681e
Patch0039: 0039-protocol-client-handle-the-subdir-handshake-properly.patch
d1681e
Patch0040: 0040-glusterd-delete-source-brick-only-once-in-reset-bric.patch
d1681e
Patch0041: 0041-glusterd-persist-brickinfo-s-port-change-into-gluste.patch
d1681e
Patch0042: 0042-glusterd-restart-the-brick-if-qorum-status-is-NOT_AP.patch
d1681e
Patch0043: 0043-glusterd-clean-up-portmap-on-brick-disconnect.patch
d1681e
Patch0044: 0044-glusterd-fix-brick-restart-parallelism.patch
d1681e
Patch0045: 0045-glusterd-introduce-max-port-range.patch
d1681e
Patch0046: 0046-Revert-build-conditionally-build-legacy-gNFS-server-.patch
d1681e
Patch0047: 0047-Revert-glusterd-skip-nfs-svc-reconfigure-if-nfs-xlat.patch
d1681e
Patch0048: 0048-glusterd-introduce-timer-in-mgmt_v3_lock.patch
d1681e
Patch0049: 0049-Revert-packaging-ganesha-remove-glusterfs-ganesha-su.patch
d1681e
Patch0050: 0050-Revert-glusterd-storhaug-remove-ganesha.patch
d1681e
Patch0051: 0051-Revert-storhaug-HA-first-step-remove-resource-agents.patch
d1681e
Patch0052: 0052-common-ha-fixes-for-Debian-based-systems.patch
d1681e
Patch0053: 0053-ganesha-scripts-Remove-export-entries-from-ganesha.c.patch
d1681e
Patch0054: 0054-glusterd-ganesha-During-volume-delete-remove-the-gan.patch
d1681e
Patch0055: 0055-glusterd-ganesha-throw-proper-error-for-gluster-nfs-.patch
d1681e
Patch0056: 0056-ganesha-scripts-Stop-ganesha-process-on-all-nodes-if.patch
d1681e
Patch0057: 0057-ganesha-allow-refresh-config-and-volume-export-unexp.patch
d1681e
Patch0058: 0058-glusterd-ganesha-perform-removal-of-ganesha.conf-on-.patch
d1681e
Patch0059: 0059-glusterd-ganesha-update-cache-invalidation-properly-.patch
d1681e
Patch0060: 0060-glusterd-ganesha-return-proper-value-in-pre_setup.patch
d1681e
Patch0061: 0061-ganesha-scripts-remove-dependency-over-export-config.patch
d1681e
Patch0062: 0062-glusterd-ganesha-add-proper-NULL-check-in-manage_exp.patch
d1681e
Patch0063: 0063-ganesha-minor-improvments-for-commit-e91cdf4-17081.patch
d1681e
Patch0064: 0064-common-ha-surviving-ganesha.nfsd-not-put-in-grace-on.patch
d1681e
Patch0065: 0065-common-ha-enable-and-disable-selinux-ganesha_use_fus.patch
d1681e
Patch0066: 0066-packaging-glusterfs-ganesha-update-sometimes-fails-s.patch
d1681e
Patch0067: 0067-packaging-own-files-in-var-run-gluster-shared_storag.patch
d1681e
Patch0068: 0068-common-ha-enable-and-disable-selinux-gluster_use_exe.patch
d1681e
Patch0069: 0069-ganesha-ha-don-t-set-SELinux-booleans-if-SELinux-is-.patch
d1681e
Patch0070: 0070-build-remove-ganesha-dependency-on-selinux-policy.patch
d1681e
Patch0071: 0071-common-ha-enable-pacemaker-at-end-of-setup.patch
d1681e
Patch0072: 0072-common-ha-Fix-an-incorrect-syntax-during-setup.patch
d1681e
Patch0073: 0073-Fix-build-issues-related-to-nfs-ganesha-package.patch
d1681e
Patch0074: 0074-build-make-var-run-available-on-RHEL-6.patch
d1681e
Patch0075: 0075-cli-gluster-help-changes.patch
d1681e
Patch0076: 0076-cluster-ec-Handle-parallel-get_size_version.patch
d1681e
Patch0077: 0077-cluster-ec-add-functions-for-stripe-alignment.patch
d1681e
Patch0078: 0078-cluster-afr-Honor-default-timeout-of-5min-for-analyz.patch
d1681e
Patch0079: 0079-cluster-ec-Allow-parallel-writes-in-EC-if-possible.patch
d1681e
Patch0080: 0080-heal-New-feature-heal-info-summary-to-list-the-statu.patch
d1681e
Patch0081: 0081-cluster-dht-Don-t-set-ACLs-on-linkto-file.patch
d1681e
Patch0082: 0082-cluster-afr-Print-heal-info-summary-output-in-stream.patch
d1681e
Patch0083: 0083-cluster-afr-Print-heal-info-split-brain-output-in-st.patch
d1681e
Patch0084: 0084-cluster-afr-Fix-for-arbiter-becoming-source.patch
d1681e
Patch0085: 0085-snapshot-Issue-with-other-processes-accessing-the-mo.patch
d1681e
Patch0086: 0086-snapshot-lvm-cleanup-during-snapshot-remove.patch
d1681e
Patch0087: 0087-glusterd-Validate-changelog-on-geo-rep-volume.patch
d1681e
Patch0088: 0088-cluster-ec-Implement-DISCARD-FOP-for-EC.patch
d1681e
Patch0089: 0089-geo-rep-Filter-out-volume-mark-xattr.patch
d1681e
Patch0090: 0090-Quota-Adding-man-page-for-quota.patch
d1681e
Patch0091: 0091-extras-scripts-to-control-CPU-MEMORY-for-any-gluster.patch
d1681e
Patch0092: 0092-posix-Needs-to-reserve-disk-space-to-prevent-the-bri.patch
d1681e
Patch0093: 0093-posix-Ignore-disk-space-reserve-check-for-internal-F.patch
d1681e
Patch0094: 0094-cluster-afr-Fail-open-on-split-brain.patch
d1681e
Patch0095: 0095-extras-hooks-Fix-errors-reported-via-shellcheck-util.patch
d1681e
Patch0096: 0096-extras-hooks-Honour-all-input-arguments-to-scripts.patch
d1681e
Patch0097: 0097-extras-hooks-Fix-getopt-usage.patch
d1681e
Patch0098: 0098-snapshot-snapshot-creation-failed-after-brick-reset-.patch
d1681e
Patch0099: 0099-Tier-Stop-tierd-for-detach-start.patch
d1681e
Patch0100: 0100-cluster-ec-Improve-heal-info-command-to-handle-obvio.patch
d1681e
Patch0101: 0101-cluster-ec-Prevent-self-heal-to-work-after-PARENT_DO.patch
d1681e
Patch0102: 0102-libglusterfs-fix-the-call_stack_set_group-function.patch
d1681e
Patch0103: 0103-features-locks-Fix-memory-leaks.patch
d1681e
Patch0104: 0104-cluster-dht-fix-crash-when-deleting-directories.patch
d1681e
Patch0105: 0105-glusterd-Fix-glusterd-mem-leaks.patch
d1681e
Patch0106: 0106-glusterd-Free-up-svc-conn-on-volume-delete.patch
d1681e
Patch0107: 0107-feature-bitrot-remove-internal-xattrs-from-lookup-cb.patch
d1681e
Patch0108: 0108-mount-fuse-use-fstat-in-getattr-implementation-if-an.patch
d1681e
Patch0109: 0109-mount-fuse-never-fail-open-dir-with-ENOENT.patch
d1681e
Patch0110: 0110-Revert-mount-fuse-report-ESTALE-as-ENOENT.patch
d1681e
Patch0111: 0111-cluster-dht-don-t-overfill-the-buffer-in-readdir-p.patch
d1681e
Patch0112: 0112-write-behind-Allow-trickling-writes-to-be-configurab.patch
d1681e
Patch0113: 0113-gfapi-set-lkowner-in-glfd.patch
d1681e
Patch0114: 0114-eventsapi-Add-JWT-signing-support.patch
d1681e
Patch0115: 0115-eventsapi-JWT-signing-without-external-dependency.patch
d1681e
Patch0116: 0116-eventsapi-HTTPS-support-for-Webhooks.patch
d1681e
Patch0117: 0117-geo-rep-Log-message-improvements.patch
d1681e
Patch0118: 0118-snapshot-after-brick-reset-replace-snapshot-creation.patch
d1681e
Patch0119: 0119-geo-rep-Fix-data-sync-issue-during-hardlink-rename.patch
d1681e
Patch0120: 0120-glusterd-connect-to-an-existing-brick-process-when-q.patch
d1681e
Patch0121: 0121-cluster-ec-OpenFD-heal-implementation-for-EC.patch
d1681e
Patch0122: 0122-tests-Use-dev-urandom-instead-of-dev-random-for-dd.patch
d1681e
Patch0123: 0123-quota-fixes-issue-in-quota.conf-when-setting-large-n.patch
d1681e
Patch0124: 0124-build-remove-ExclusiveArch-from-spec-file.patch
d1681e
Patch0125: 0125-cluster-afr-Fixing-the-flaws-in-arbiter-becoming-sou.patch
d1681e
Patch0126: 0126-spec-unpackaged-files-found-for-RHEL-7-client-build.patch
d1681e
Patch0127: 0127-spec-unpackaged-files-found-for-RHEL-7-client-build.patch
d1681e
Patch0128: 0128-build-remove-pretrans-script-for-ganesha.patch
d1681e
Patch0129: 0129-posix-delete-stale-gfid-handles-in-nameless-lookup.patch
d1681e
Patch0130: 0130-md-cache-avoid-checking-the-xattr-value-buffer-with-.patch
d1681e
Patch0131: 0131-readdir-ahead-Add-parallel-readdir-option-in-readdir.patch
d1681e
Patch0132: 0132-posix-In-getxattr-honor-the-wildcard.patch
d1681e
Patch0133: 0133-upcall-Allow-md-cache-to-specify-invalidations-on-xa.patch
d1681e
Patch0134: 0134-cli-Fixed-a-use_after_free.patch
d1681e
Patch0135: 0135-cli-commands-are-missing-in-man-page.patch
d1681e
Patch0136: 0136-glusterd-Nullify-pmap-entry-for-bricks-belonging-to-.patch
d1681e
Patch0137: 0137-bitrot-improved-cli-report-after-bitrot-operatoin.patch
d1681e
Patch0138: 0138-glusterd-enable-brick-multiplexing-by-default.patch
d1681e
Patch0139: 0139-libglusterfs-Reset-errno-before-call.patch
d1681e
Patch0140: 0140-md-cache-Add-additional-samba-and-macOS-specific-EAs.patch
d1681e
Patch0141: 0141-rpc-Showing-some-unusual-timer-error-logs-during-bri.patch
d1681e
Patch0142: 0142-cluster-dht-Add-migration-checks-to-dht_-f-xattrop.patch
d1681e
Patch0143: 0143-glusterd-store-handle-the-case-of-fsid-being-set-to-.patch
d1681e
Patch0144: 0144-cluster-dht-Unlink-linkto-files-as-root.patch
d1681e
Patch0145: 0145-glusterd-optimize-glusterd-import-volumes-code-path.patch
d1681e
Patch0146: 0146-cluster-dht-Cleanup-on-fallocate-failure.patch
d1681e
Patch0147: 0147-glusterd-import-volumes-in-separate-synctask.patch
d1681e
Patch0148: 0148-glusterd-tier-is_tier_enabled-inserted-causing-check.patch
d1681e
Patch0149: 0149-cluster-ec-EC-DISCARD-doesn-t-punch-hole-properly.patch
d1681e
Patch0150: 0150-dht-Fill-first_up_subvol-before-use-in-dht_opendir.patch
d1681e
Patch0151: 0151-geo-rep-Improve-geo-rep-pre-validation-logs.patch
d1681e
Patch0152: 0152-glusterfind-Speed-up-gfid-lookup-100x-by-using-an-SQ.patch
d1681e
Patch0153: 0153-afr-add-quorum-checks-in-post-op.patch
d1681e
Patch0154: 0154-afr-capture-the-correct-errno-in-post-op-quorum-chec.patch
d1681e
Patch0155: 0155-afr-don-t-treat-all-cases-all-bricks-being-blamed-as.patch
d1681e
Patch0156: 0156-performance-write-behind-fix-bug-while-handling-shor.patch
d1681e
Patch0157: 0157-cluster-afr-remove-unnecessary-child_up-initializati.patch
d1681e
Patch0158: 0158-cluster-ec-create-eager-lock-option-for-non-regular-.patch
d1681e
Patch0159: 0159-extras-hooks-Fix-S10selinux-label-brick.sh-hook-scri.patch
d1681e
Patch0160: 0160-common-ha-enable-and-disable-selinux-ganesha_use_fus.patch
d1681e
Patch0161: 0161-cluster-dht-Fixed-a-typo.patch
d1681e
Patch0162: 0162-cluster-dht-Handle-single-dht-child-in-dht_lookup.patch
d1681e
Patch0163: 0163-glusterd-compare-uuid-instead-of-hostname-while-find.patch
d1681e
Patch0164: 0164-geo-rep-Remove-lazy-umount-and-use-mount-namespaces.patch
d1681e
Patch0165: 0165-cluster-dht-Ignore-ENODATA-from-getxattr-for-posix-a.patch
d1681e
Patch0166: 0166-rpcsvc-scale-rpcsvc_request_handler-threads.patch
d1681e
Patch0167: 0167-glusterd-ganesha-change-voltype-for-ganesha.enable-i.patch
d1681e
Patch0168: 0168-features-shard-Pass-the-correct-block-num-to-store-i.patch
d1681e
Patch0169: 0169-features-shard-Leverage-block_num-info-in-inode-ctx-.patch
d1681e
Patch0170: 0170-features-shard-Fix-shard-inode-refcount-when-it-s-pa.patch
d1681e
Patch0171: 0171-features-shard-Upon-FSYNC-from-upper-layers-wind-fsy.patch
d1681e
Patch0172: 0172-glusterd-add-profile_enabled-flag-in-get-state.patch
d1681e
Patch0173: 0173-packaging-adding-missed-part-from-5eed664-while-back.patch
d1681e
Patch0174: 0174-hooks-add-a-script-to-stat-the-subdirs-in-add-brick.patch
d1681e
Patch0175: 0175-rpc-make-actor-search-parallel.patch
d1681e
Patch0176: 0176-glusterd-volume-get-fixes-for-client-io-threads-quor.patch
d1681e
Patch0177: 0177-hooks-fix-workdir-in-S13create-subdir-mounts.sh.patch
d1681e
Patch0178: 0178-cluster-ec-Do-lock-conflict-check-correctly-for-wait.patch
d1681e
Patch0179: 0179-packaging-adding-missed-part-from-5eed664-while-back.patch
d1681e
Patch0180: 0180-packaging-adding-missed-part-from-5eed664-while-back.patch
d1681e
Patch0181: 0181-glusterd-get-state-memory-leak-fix.patch
d1681e
Patch0182: 0182-glusterd-Fix-coverity-issues-in-glusterd-handler.c.patch
d1681e
Patch0183: 0183-cluster-afr-Fix-dict-leak-in-pre-op.patch
d1681e
Patch0184: 0184-cli-glusterfsd-remove-copyright-information.patch
d1681e
Patch0185: 0185-rpcsvc-correct-event-thread-scaling.patch
d1681e
Patch0186: 0186-cli-Remove-upstream-doc-reference.patch
d1681e
Patch0187: 0187-features-shard-Do-list_del_init-while-list-memory-is.patch
d1681e
Patch0188: 0188-georep-Pause-Resume-of-geo-replication-with-wrong-us.patch
d1681e
Patch0189: 0189-fuse-enable-proper-fgetattr-like-semantics.patch
d1681e
Patch0190: 0190-cluster-afr-Adding-option-to-take-full-file-lock.patch
d1681e
Patch0191: 0191-cluster-afr-Make-afr_fsync-a-transaction.patch
d1681e
Patch0192: 0192-cluster-afr-Remove-compound-fops-usage-in-afr.patch
d1681e
Patch0193: 0193-cluster-afr-Remove-unused-code-paths.patch
d1681e
Patch0194: 0194-cluster-afr-Make-AFR-eager-locking-similar-to-EC.patch
d1681e
Patch0195: 0195-storage-posix-Add-active-fd-count-option-in-gluster.patch
d1681e
Patch0196: 0196-cluster-afr-Switch-to-active-fd-count-for-open-fd-ch.patch
d1681e
Patch0197: 0197-glusterd-ganesha-create-remove-export-file-only-from.patch
d1681e
Patch0198: 0198-cluster-ec-Change-default-read-policy-to-gfid-hash.patch
d1681e
Patch0199: 0199-cluster-ec-avoid-delays-in-self-heal.patch
d1681e
Patch0200: 0200-quick-read-Discard-cache-for-fallocate-zerofill-and-.patch
d1681e
Patch0201: 0201-posix-After-set-storage.reserve-limit-df-does-not-sh.patch
d1681e
Patch0202: 0202-glusterd-TLS-verification-fails-while-using-intermed.patch
d1681e
Patch0203: 0203-mgmt-glusterd-Adding-validation-for-setting-quorum-c.patch
d1681e
Patch0204: 0204-glusterd-memory-leak-in-mgmt_v3-lock-functionality.patch
d1681e
Patch0205: 0205-cluster-dht-User-xattrs-are-not-healed-after-brick-s.patch
d1681e
Patch0206: 0206-glusterd-honour-localtime-logging-for-all-the-daemon.patch
d1681e
Patch0207: 0207-glusterd-fix-txn_opinfo-memory-leak.patch
d1681e
Patch0208: 0208-cluster-dht-enable-lookup-optimize-by-default.patch
d1681e
Patch0209: 0209-cluster-dht-Update-layout-in-inode-only-on-success.patch
d1681e
Patch0210: 0210-cluster-ec-send-list-node-uuids-request-to-all-subvo.patch
d1681e
Patch0211: 0211-common-ha-scripts-pass-the-list-of-servers-properly-.patch
d1681e
Patch0212: 0212-readdir-ahead-Cleanup-the-xattr-request-code.patch
d1681e
Patch0213: 0213-glusterd-mark-port_registered-to-true-for-all-runnin.patch
d1681e
Patch0214: 0214-cluster-dht-Serialize-mds-update-code-path-with-look.patch
d1681e
Patch0215: 0215-cluster-dht-ENOSPC-will-not-fail-rebalance.patch
d1681e
Patch0216: 0216-cluster-dht-Wind-open-to-all-subvols.patch
d1681e
Patch0217: 0217-cluster-dht-Handle-file-migrations-when-brick-down.patch
d1681e
Patch0218: 0218-posix-reserve-option-behavior-is-not-correct-while-u.patch
d1681e
Patch0219: 0219-Quota-heal-directory-on-newly-added-bricks-when-quot.patch
d1681e
Patch0220: 0220-glusterd-turn-off-selinux-feature-in-downstream.patch
d1681e
Patch0221: 0221-cluster-dht-Skipped-files-are-not-treated-as-errors.patch
d1681e
Patch0222: 0222-hooks-remove-selinux-hooks.patch
d1681e
Patch0223: 0223-glusterd-Make-localtime-logging-option-invisible-in-.patch
d1681e
Patch0224: 0224-protocol-server-Backport-patch-to-reduce-duplicate-c.patch
d1681e
Patch0225: 0225-glusterfsd-Memleak-in-glusterfsd-process-while-brick.patch
d1681e
Patch0226: 0226-gluster-Sometimes-Brick-process-is-crashed-at-the-ti.patch
d1681e
Patch0227: 0227-afr-add-quorum-checks-in-pre-op.patch
d1681e
Patch0228: 0228-afr-fixes-to-afr-eager-locking.patch
d1681e
Patch0229: 0229-fuse-do-fd_resolve-in-fuse_getattr-if-fd-is-received.patch
d1681e
Patch0230: 0230-glusterd-volume-inode-fd-status-broken-with-brick-mu.patch
d1681e
Patch0231: 0231-fuse-retire-statvfs-tweak.patch
d1681e
Patch0232: 0232-eventsapi-Handle-Unicode-string-during-signing.patch
d1681e
Patch0233: 0233-libglusterfs-fix-comparison-of-a-NULL-dict-with-a-no.patch
d1681e
Patch0234: 0234-ec-Use-tiebreaker_inodelk-where-necessary.patch
d1681e
Patch0235: 0235-cluster-syncop-Implement-tiebreaker-inodelk-entrylk.patch
d1681e
Patch0236: 0236-cluster-syncop-Address-comments-in-3ad68df725ac32f83.patch
d1681e
Patch0237: 0237-cluster-dht-Fix-dht_rename-lock-order.patch
d1681e
Patch0238: 0238-quota-Build-is-failed-due-to-access-rpc-refcount-in-.patch
d1681e
Patch0239: 0239-geo-rep-Fix-syncing-of-symlink.patch
d1681e
Patch0240: 0240-shared-storage-Prevent-mounting-shared-storage-from-.patch
d1681e
Patch0241: 0241-server-auth-add-option-for-strict-authentication.patch
d1681e
Patch0242: 0242-feature-changelog-remove-unused-variable.patch
d1681e
Patch0243: 0243-timer-Fix-possible-race-during-cleanup.patch
d1681e
Patch0244: 0244-common-ha-All-statd-related-files-need-to-be-owned-b.patch
d1681e
Patch0245: 0245-build-make-RHGS-version-available-for-server.patch
d1681e
Patch0246: 0246-glusterd-Fix-for-memory-leak-in-get-state-detail.patch
d1681e
Patch0247: 0247-protocol-server-unwind-as-per-op-version.patch
d1681e
Patch0248: 0248-performance-md-cache-purge-cache-on-ENOENT-ESTALE-er.patch
d1681e
Patch0249: 0249-cluster-dht-unwind-if-dht_selfheal_dir_mkdir-returns.patch
d1681e
Patch0250: 0250-cluster-dht-act-as-passthrough-for-renames-on-single.patch
d1681e
Patch0251: 0251-dht-gf_defrag_settle_hash-should-ignore-ENOENT-and-E.patch
d1681e
Patch0252: 0252-glusterd-ganesha-Skip-non-ganesha-nodes-properly-for.patch
d1681e
Patch0253: 0253-geo-rep-Fix-upgrade-issue.patch
d1681e
Patch0254: 0254-posix-Avoid-changelog-retries-for-geo-rep.patch
d1681e
Patch0255: 0255-glusterd-update-listen-backlog-value-to-1024.patch
d1681e
Patch0256: 0256-rpc-set-listen-backlog-to-high-value.patch
d1681e
Patch0257: 0257-rpc-rearm-listener-socket-early.patch
d1681e
Patch0258: 0258-cluster-dht-log-error-only-if-layout-healing-is-requ.patch
d1681e
Patch0259: 0259-Quota-Turn-on-ssl-for-crawler-clients-if-needed.patch
d1681e
Patch0260: 0260-dht-Avoid-dict-log-flooding-for-internal-MDS-xattr.patch
d1681e
Patch0261: 0261-libglusterfs-syncop-Add-syncop_entrylk.patch
d1681e
Patch0262: 0262-cluster-dht-store-the-reaction-on-failures-per-lock.patch
d1681e
Patch0263: 0263-server-resolver-don-t-trust-inode-table-for-RESOLVE_.patch
d1681e
Patch0264: 0264-cluster-dht-fixes-to-parallel-renames-to-same-destin.patch
d1681e
Patch0265: 0265-Glusterfsd-brick-crash-during-get-state.patch
d1681e
Patch0266: 0266-glusterd-geo-rep-Fix-glusterd-crash.patch
d1681e
Patch0267: 0267-geo-rep-scheduler-Fix-crash.patch
d1681e
Patch0268: 0268-dht-Excessive-dict-is-null-logs-in-dht_discover_comp.patch
d1681e
Patch0269: 0269-extras-Disable-choose-local-in-groups-virt-and-glust.patch
d1681e
Patch0270: 0270-glusterfs-Resolve-brick-crashes-at-the-time-of-inode.patch
d1681e
Patch0271: 0271-cli-Fix-for-gluster-volume-info-xml.patch
d1681e
Patch0272: 0272-readdir-ahead-Fix-an-issue-with-parallel-readdir-and.patch
d1681e
Patch0273: 0273-rpcsvc-Turn-off-ownthreads-for-Glusterfs-program.patch
d1681e
Patch0274: 0274-client-protocol-fix-the-log-level-for-removexattr_cb.patch
d1681e
Patch0275: 0275-afr-fix-bug-1363721.t-failure.patch
d1681e
Patch0276: 0276-tests-check-volume-status-for-shd-being-up.patch
d1681e
Patch0277: 0277-Revert-rpcsvc-Turn-off-ownthreads-for-Glusterfs-prog.patch
d1681e
Patch0278: 0278-Revert-rpcsvc-correct-event-thread-scaling.patch
d1681e
Patch0279: 0279-Revert-rpc-make-actor-search-parallel.patch
d1681e
Patch0280: 0280-Revert-rpcsvc-scale-rpcsvc_request_handler-threads.patch
d1681e
Patch0281: 0281-Revert-program-GF-DUMP-Shield-ping-processing-from-t.patch
d1681e
Patch0282: 0282-cluster-dht-Remove-EIO-from-dht_inode_missing.patch
d1681e
Patch0283: 0283-cluster-ec-Fix-pre-op-xattrop-management.patch
d1681e
Patch0284: 0284-glusterd-glusterd-is-releasing-the-locks-before-time.patch
d1681e
Patch0285: 0285-gluster-Allow-only-read-only-CLI-commands-via-remote.patch
d1681e
Patch0286: 0286-glusterd-memory-leak-in-geo-rep-status.patch
d1681e
Patch0287: 0287-Revert-performance-write-behind-fix-flush-stuck-by-f.patch
d1681e
Patch0288: 0288-feature-locks-Unwind-response-based-on-clinet-versio.patch
d1681e
Patch0289: 0289-changelog-fix-br-state-check.t-failure-for-brick_mux.patch
d1681e
Patch0290: 0290-performance-open-behind-open-pending-fds-before-perm.patch
d1681e
Patch0291: 0291-Core-The-lock-contention-on-gf_client_dump_inodes_to.patch
d1681e
Patch0292: 0292-geo-rep-Fix-rename-of-directory-in-hybrid-crawl.patch
d1681e
Patch0293: 0293-rpcsvc-correct-event-thread-scaling.patch
d1681e
Patch0294: 0294-features-shard-Fix-missing-unlock-in-shard_fsync_sha.patch
d1681e
Patch0295: 0295-dht-Excessive-dict-is-null-logs-in-dht_revalidate_cb.patch
d1681e
Patch0296: 0296-cluster-dht-Increase-failure-count-for-lookup-failur.patch
d1681e
Patch0297: 0297-dht-Delete-MDS-internal-xattr-from-dict-in-dht_getxa.patch
d1681e
Patch0298: 0298-glusterd-Fix-for-shd-not-coming-up.patch
d1681e
Patch0299: 0299-afr-heal-gfids-when-file-is-not-present-on-all-brick.patch
d1681e
Patch0300: 0300-protocol-client-Don-t-send-fops-till-SETVOLUME-is-co.patch
d1681e
Patch0301: 0301-storage-posix-Fix-posix_symlinks_match.patch
d1681e
Patch0302: 0302-storage-posix-Handle-ENOSPC-correctly-in-zero_fill.patch
d1681e
Patch0303: 0303-block-profile-enable-cluster.eager-lock-in-block-pro.patch
d1681e
Patch0304: 0304-cluster-dht-Fix-rename-journal-in-changelog.patch
d1681e
Patch0305: 0305-geo-rep-Fix-geo-rep-for-older-versions-of-unshare.patch
d1681e
Patch0306: 0306-glusterfsd-Do-not-process-GLUSTERD_BRICK_XLATOR_OP-i.patch
d1681e
Patch0307: 0307-glusterd-Introduce-daemon-log-level-cluster-wide-opt.patch
d1681e
Patch0308: 0308-glusterd-Fix-glusterd-crash.patch
d1681e
Patch0309: 0309-extras-group-add-database-workload-profile.patch
d1681e
Patch0310: 0310-cluster-afr-Make-sure-lk-owner-is-assigned-at-the-ti.patch
d1681e
Patch0311: 0311-glusterd-show-brick-online-after-port-registration.patch
d1681e
Patch0312: 0312-glusterd-show-brick-online-after-port-registration-e.patch
d1681e
Patch0313: 0313-dht-Inconsistent-permission-for-directories-after-br.patch
d1681e
Patch0314: 0314-cluster-afr-Prevent-execution-of-code-after-call_cou.patch
d1681e
Patch0315: 0315-changelog-fix-br-state-check.t-crash-for-brick_mux.patch
d1681e
Patch0316: 0316-snapshot-remove-stale-entry.patch
d1681e
Patch0317: 0317-geo-rep-scheduler-Fix-EBUSY-trace-back.patch
d1681e
Patch0318: 0318-Quota-Fix-crawling-of-files.patch
d1681e
Patch0319: 0319-glusterd-_is_prefix-should-handle-0-length-paths.patch
d1681e
Patch0320: 0320-glusterd-log-improvements-on-brick-creation-validati.patch
d1681e
Patch0321: 0321-geo-rep-Fix-symlink-rename-syncing-issue.patch
d1681e
Patch0322: 0322-geo-rep-Cleanup-stale-unprocessed-xsync-changelogs.patch
d1681e
Patch0323: 0323-cluster-afr-Mark-dirty-for-entry-transactions-for-qu.patch
d1681e
Patch0324: 0324-dht-delete-tier-related-internal-xattr-in-dht_getxat.patch
d1681e
Patch0325: 0325-core-dereference-check-on-the-variables-in-glusterfs.patch
d1681e
Patch0326: 0326-glusterd-memory-leak-in-get-state.patch
d1681e
Patch0327: 0327-afr-switch-lk_owner-only-when-pre-op-succeeds.patch
d1681e
Patch0328: 0328-geo-rep-Fix-issues-with-gfid-conflict-handling.patch
d1681e
Patch0329: 0329-cluster-dht-Set-loc-gfid-before-healing-attr.patch
d1681e
Patch0330: 0330-posix-check-before-removing-stale-symlink.patch
d1681e
Patch0331: 0331-rpc-free-registered-callback-programs.patch
d1681e
Patch0332: 0332-rpc-rpc_clnt_connection_cleanup-is-crashed-due-to-do.patch
d1681e
Patch0333: 0333-glusterd-Add-multiple-checks-before-attach-start-a-b.patch
d1681e
Patch0334: 0334-glusterd-Bricks-of-a-normal-volumes-should-not-attac.patch
d1681e
Patch0335: 0335-cluster-ec-set-others.eager-lock-option-off-by-defau.patch
d1681e
Patch0336: 0336-dict-handle-negative-key-value-length-while-unserial.patch
d1681e
Patch0337: 0337-glusterfs-Brick-process-is-crash-at-the-time-of-call.patch
d1681e
Patch0338: 0338-posix-prevent-crash-when-SEEK_DATA-HOLE-is-not-suppo.patch
d1681e
Patch0339: 0339-posix-remove-not-supported-get-set-content.patch
d1681e
Patch0340: 0340-protocol-don-t-use-alloca.patch
d1681e
Patch0341: 0341-Revert-glusterd-enable-brick-multiplexing-by-default.patch
d1681e
Patch0342: 0342-glusterd-more-stricter-checks-of-if-brick-is-running.patch
d1681e
Patch0343: 0343-core-Update-condition-in-get_xlator_by_name_or_type.patch
d1681e
Patch0344: 0344-glusterd-Compare-volume_id-before-start-attach-a-bri.patch
d1681e
Patch0345: 0345-io-stats-allow-only-relative-path-for-dumping-io-sta.patch
d1681e
Patch0346: 0346-gfapi-Handle-the-path-glfs_resolve_at.patch
d1681e
Patch0347: 0347-posix-fix-unused-variable-warning.patch
d1681e
Patch0348: 0348-posix-disable-block-and-character-files.patch
d1681e
Patch0349: 0349-posix-don-t-allow-.-path-in-name.patch
d1681e
Patch0350: 0350-cluster-dht-fix-inode-ref-management-in-dht_heal_pat.patch
d1681e
Patch0351: 0351-cluster-dht-Fixed-rebalanced-files.patch
d1681e
Patch0352: 0352-snapshot-Fail-snapshot-creation-if-an-empty-descript.patch
d1681e
Patch0353: 0353-snapshot-handshake-store-description-after-strdup.patch
d1681e
Patch0354: 0354-snapshot-Fix-wrong-dictionary-key-in-snapshot-cleanu.patch
d1681e
Patch0355: 0355-server-protocol-resolve-memory-leak.patch
d1681e
Patch0356: 0356-io-stats-sanitize-the-dump-path-further.patch
d1681e
Patch0357: 0357-snapshot-fix-snapshot-status-failure-due-to-symlink-.patch
d1681e
Patch0358: 0358-glusterd-glusterd_brick_start-shouldn-t-try-to-bring.patch
d1681e
Patch0359: 0359-storage-posix-Increment-trusted.pgfid-in-posix_mknod.patch
d1681e
Patch0360: 0360-geo-rep-Make-automatic-gfid-conflict-resolution-opti.patch
d1681e
Patch0361: 0361-ctr-skip-ctr-xlator-init-if-ctr-is-not-enabled.patch
d1681e
Patch0362: 0362-glusterd-glusterd_brick_start-shouldn-t-cleanup-pidf.patch
cb8e9e
e1d1f9
%description
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
e1d1f9
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
e1d1f9
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
e1d1f9
is in user space and easily manageable.
e1d1f9
e1d1f9
This package includes the glusterfs binary, the glusterfsd daemon and the
cb8e9e
libglusterfs and glusterfs translator modules common to both GlusterFS server
cb8e9e
and client framework.
e1d1f9
473043
%package api
cb8e9e
Summary:          GlusterFS api library
473043
Group:            System Environment/Daemons
12a457
Requires:         %{name}%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-client-xlators%{?_isa} = %{version}-%{release}
e1d1f9
473043
%description api
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
e1d1f9
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
e1d1f9
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
e1d1f9
is in user space and easily manageable.
e1d1f9
473043
This package provides the glusterfs libgfapi library.
e1d1f9
473043
%package api-devel
473043
Summary:          Development Libraries
473043
Group:            Development/Libraries
12a457
Requires:         %{name}%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-devel%{?_isa} = %{version}-%{release}
cb8e9e
Requires:         libacl-devel
e1d1f9
473043
%description api-devel
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
e1d1f9
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
e1d1f9
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
e1d1f9
is in user space and easily manageable.
e1d1f9
473043
This package provides the api include files.
e1d1f9
473043
%package cli
473043
Summary:          GlusterFS CLI
e1d1f9
Group:            Applications/File
12a457
Requires:         %{name}-libs%{?_isa} = %{version}-%{release}
e1d1f9
473043
%description cli
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
473043
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
473043
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
473043
is in user space and easily manageable.
e1d1f9
473043
This package provides the GlusterFS CLI application and its man page
473043
473043
%package devel
473043
Summary:          Development Libraries
473043
Group:            Development/Libraries
12a457
Requires:         %{name}%{?_isa} = %{version}-%{release}
473043
# Needed for the Glupy examples to work
473043
%if ( 0%{!?_without_extra_xlators:1} )
473043
Requires:         %{name}-extra-xlators = %{version}-%{release}
e1d1f9
%endif
473043
473043
%description devel
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
473043
petabytes. It aggregates various storage bricks over Infiniband RDMA
473043
or TCP/IP interconnect into one large parallel network file
473043
system. GlusterFS is one of the most sophisticated file systems in
473043
terms of features and extensibility.  It borrows a powerful concept
473043
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
473043
is in user space and easily manageable.
473043
473043
This package provides the development libraries and include files.
473043
473043
%if ( 0%{!?_without_extra_xlators:1} )
473043
%package extra-xlators
473043
Summary:          Extra Gluster filesystem Translators
473043
Group:            Applications/File
cb8e9e
# We need python-gluster rpm for gluster module's __init__.py in Python
cb8e9e
# site-packages area
d1681e
Requires:         python2-gluster = %{version}-%{release}
d1681e
Requires:         python2
d1681e
%if ( 0%{?fedora} && 0%{?fedora} < 26 ) || ( 0%{?rhel} )
d1681e
BuildRequires:    python-ctypes
d1681e
%endif
473043
473043
%description extra-xlators
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
473043
petabytes. It aggregates various storage bricks over Infiniband RDMA
473043
or TCP/IP interconnect into one large parallel network file
473043
system. GlusterFS is one of the most sophisticated file systems in
473043
terms of features and extensibility.  It borrows a powerful concept
473043
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
473043
is in user space and easily manageable.
473043
473043
This package provides extra filesystem Translators, such as Glupy,
473043
for GlusterFS.
e1d1f9
%endif
e1d1f9
e1d1f9
%package fuse
e1d1f9
Summary:          Fuse client
e1d1f9
Group:            Applications/File
e1d1f9
BuildRequires:    fuse-devel
cb8e9e
Requires:         attr
3604df
Requires:         psmisc
e1d1f9
12a457
Requires:         %{name}%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-client-xlators%{?_isa} = %{version}-%{release}
e1d1f9
e1d1f9
Obsoletes:        %{name}-client < %{version}-%{release}
e1d1f9
Provides:         %{name}-client = %{version}-%{release}
e1d1f9
e1d1f9
%description fuse
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
e1d1f9
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
e1d1f9
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
e1d1f9
is in user space and easily manageable.
e1d1f9
cb8e9e
This package provides support to FUSE based clients and inlcudes the
cb8e9e
glusterfs(d) binary.
cb8e9e
cb8e9e
%if ( 0%{?_build_server} )
cb8e9e
%package ganesha
cb8e9e
Summary:          NFS-Ganesha configuration
cb8e9e
Group:            Applications/File
cb8e9e
12a457
Requires:         %{name}-server%{?_isa} = %{version}-%{release}
d1681e
Requires:         nfs-ganesha-gluster >= 2.4.1
21ab4e
Requires:         pcs, dbus
12a457
%if ( 0%{?rhel} && 0%{?rhel} == 6 )
12a457
Requires:         cman, pacemaker, corosync
12a457
%endif
21ab4e
%if ( ( 0%{?fedora} && 0%{?fedora} > 25 ) || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
21ab4e
%if ( 0%{?rhel} )
d1681e
Requires: selinux-policy >= 3.13.1-160
21ab4e
Requires(post):   policycoreutils-python
21ab4e
Requires(postun): policycoreutils-python
21ab4e
%else
21ab4e
Requires(post):   policycoreutils-python-utils
21ab4e
Requires(postun): policycoreutils-python-utils
21ab4e
%endif
21ab4e
%endif
d1681e
d1681e
%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} > 5 )
3604df
# we need portblock resource-agent in 3.9.5 and later.
3604df
Requires:         resource-agents >= 3.9.5
3604df
Requires:         net-tools
3604df
%endif
cb8e9e
cb8e9e
%description ganesha
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
cb8e9e
petabytes. It aggregates various storage bricks over Infiniband RDMA
cb8e9e
or TCP/IP interconnect into one large parallel network file
cb8e9e
system. GlusterFS is one of the most sophisticated file systems in
cb8e9e
terms of features and extensibility.  It borrows a powerful concept
cb8e9e
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
cb8e9e
is in user space and easily manageable.
cb8e9e
cb8e9e
This package provides the configuration and related files for using
cb8e9e
NFS-Ganesha as the NFS server using GlusterFS
cb8e9e
%endif
e1d1f9
473043
%if ( 0%{?_build_server} )
473043
%if ( 0%{!?_without_georeplication:1} )
473043
%package geo-replication
473043
Summary:          GlusterFS Geo-replication
473043
Group:            Applications/File
12a457
Requires:         %{name}%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-server%{?_isa} = %{version}-%{release}
d1681e
Requires:         python2
d1681e
Requires:         python-prettytable
d1681e
%if ( 0%{?fedora} && 0%{?fedora} < 26 ) || ( 0%{?rhel} )
d1681e
BuildRequires:    python-ctypes
d1681e
%endif
d1681e
Requires:         python2-gluster = %{version}-%{release}
cb8e9e
Requires:         rsync
7c2869
Requires:         util-linux
473043
473043
%description geo-replication
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
473043
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
473043
or TCP/IP interconnect into one large parallel network file
473043
system. GlusterFS is one of the most sophisticated file system in
473043
terms of features and extensibility.  It borrows a powerful concept
473043
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
473043
is in userspace and easily manageable.
473043
473043
This package provides support to geo-replication.
473043
%endif
e1d1f9
%endif
e1d1f9
473043
%package libs
473043
Summary:          GlusterFS common libraries
473043
Group:            Applications/File
473043
473043
%description libs
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
e1d1f9
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
e1d1f9
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
e1d1f9
is in user space and easily manageable.
e1d1f9
473043
This package provides the base GlusterFS libraries
e1d1f9
cb8e9e
%package -n python-gluster
cb8e9e
Summary:          GlusterFS python library
cb8e9e
Group:            Development/Tools
12a457
%if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 || 0%{?sles_version} ) )
12a457
# EL5 does not support noarch sub-packages
12a457
BuildArch:        noarch
12a457
%endif
cb8e9e
d1681e
%global _python_gluster_description \
d1681e
GlusterFS is a distributed file-system capable of scaling to several\
d1681e
petabytes. It aggregates various storage bricks over Infiniband RDMA\
d1681e
or TCP/IP interconnect into one large parallel network file\
d1681e
system. GlusterFS is one of the most sophisticated file systems in\
d1681e
terms of features and extensibility.  It borrows a powerful concept\
d1681e
called Translators from GNU Hurd kernel. Much of the code in GlusterFS\
d1681e
is in user space and easily manageable.\
d1681e
\
d1681e
This package contains the python modules of GlusterFS and own gluster\
cb8e9e
namespace.
cb8e9e
d1681e
%description -n python-gluster %{_python_gluster_description}
d1681e
d1681e
%package -n python2-gluster
d1681e
Summary:          GlusterFS python library
d1681e
Group:            Development/Tools
d1681e
%{?python_provide:%python_provide python2-gluster}
d1681e
Requires:         python2
d1681e
Provides:         python-gluster = %{version}-%{release}
d1681e
Obsoletes:        python-gluster < 3.10
d1681e
d1681e
%description -n python2-gluster %{_python_gluster_description}
cb8e9e
473043
%if ( 0%{!?_without_rdma:1} )
473043
%package rdma
473043
Summary:          GlusterFS rdma support for ib-verbs
473043
Group:            Applications/File
d1681e
%if ( 0%{?fedora} && 0%{?fedora} > 26 )
d1681e
BuildRequires:    rdma-core-devel
d1681e
%else
473043
BuildRequires:    libibverbs-devel
cb8e9e
BuildRequires:    librdmacm-devel >= 1.0.15
d1681e
%endif
12a457
Requires:         %{name}%{?_isa} = %{version}-%{release}
e1d1f9
473043
%description rdma
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
e1d1f9
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
e1d1f9
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
e1d1f9
is in user space and easily manageable.
e1d1f9
473043
This package provides support to ib-verbs library.
473043
%endif
473043
473043
%if ( 0%{?_build_server} )
473043
%if ( 0%{!?_without_regression_tests:1} )
473043
%package regression-tests
473043
Summary:          Development Tools
473043
Group:            Development/Tools
12a457
Requires:         %{name}%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-fuse%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-server%{?_isa} = %{version}-%{release}
cb8e9e
## thin provisioning support
cb8e9e
Requires:         lvm2 >= 2.02.89
cb8e9e
Requires:         perl(App::Prove) perl(Test::Harness) gcc util-linux-ng
d1681e
Requires:         python2 attr dbench file git libacl-devel net-tools
d1681e
Requires:         nfs-utils xfsprogs yajl psmisc bc
473043
473043
%description regression-tests
473043
The Gluster Test Framework, is a suite of scripts used for
473043
regression testing of Gluster.
473043
%endif
cb8e9e
%endif
e1d1f9
cb8e9e
%if ( 0%{?_build_server} )
e1d1f9
%if ( 0%{!?_without_ocf:1} )
e1d1f9
%package resource-agents
e1d1f9
Summary:          OCF Resource Agents for GlusterFS
e1d1f9
License:          GPLv3+
473043
%if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 || 0%{?sles_version} ) )
e1d1f9
# EL5 does not support noarch sub-packages
e1d1f9
BuildArch:        noarch
e1d1f9
%endif
e1d1f9
# this Group handling comes from the Fedora resource-agents package
e1d1f9
%if ( 0%{?fedora} || 0%{?centos_version} || 0%{?rhel} )
e1d1f9
Group:            System Environment/Base
e1d1f9
%else
e1d1f9
Group:            Productivity/Clustering/HA
e1d1f9
%endif
e1d1f9
# for glusterd
3604df
Requires:         %{name}-server = %{version}-%{release}
e1d1f9
# depending on the distribution, we need pacemaker or resource-agents
e1d1f9
Requires:         %{_prefix}/lib/ocf/resource.d
e1d1f9
e1d1f9
%description resource-agents
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
e1d1f9
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
e1d1f9
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
e1d1f9
is in user space and easily manageable.
e1d1f9
e1d1f9
This package provides the resource agents which plug glusterd into
e1d1f9
Open Cluster Framework (OCF) compliant cluster resource managers,
e1d1f9
like Pacemaker.
e1d1f9
%endif
cb8e9e
%endif
e1d1f9
cb8e9e
%if ( 0%{?_build_server} )
473043
%package server
473043
Summary:          Clustered file-system server
473043
Group:            System Environment/Daemons
12a457
Requires:         %{name}%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-cli%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-libs%{?_isa} = %{version}-%{release}
cb8e9e
# some daemons (like quota) use a fuse-mount, glusterfsd is part of -fuse
12a457
Requires:         %{name}-fuse%{?_isa} = %{version}-%{release}
cb8e9e
# self-heal daemon, rebalance, nfs-server etc. are actually clients
12a457
Requires:         %{name}-api%{?_isa} = %{version}-%{release}
12a457
Requires:         %{name}-client-xlators%{?_isa} = %{version}-%{release}
d1681e
# lvm2 for snapshot, and nfs-utils and rpcbind/portmap for gnfs server
cb8e9e
Requires:         lvm2
cb8e9e
Requires:         nfs-utils
cb8e9e
%if ( 0%{?_with_systemd:1} )
3604df
%{?systemd_requires}
cb8e9e
%else
cb8e9e
Requires(post):   /sbin/chkconfig
cb8e9e
Requires(preun):  /sbin/service
cb8e9e
Requires(preun):  /sbin/chkconfig
cb8e9e
Requires(postun): /sbin/service
cb8e9e
%endif
d1681e
%if (0%{?_with_firewalld:1})
d1681e
# we install firewalld rules, so we need to have the directory owned
d1681e
%if ( 0%{!?rhel} )
d1681e
# not on RHEL because firewalld-filesystem appeared in 7.3
d1681e
# when EL7 rpm gets weak dependencies we can add a Suggests:
d1681e
Requires:         firewalld-filesystem
d1681e
%endif
d1681e
%endif
473043
%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
473043
Requires:         rpcbind
473043
%else
473043
Requires:         portmap
473043
%endif
473043
%if ( 0%{?rhel} && 0%{?rhel} < 6 )
473043
Obsoletes:        %{name}-geo-replication = %{version}-%{release}
473043
%endif
cb8e9e
%if ( 0%{?rhel} && 0%{?rhel} <= 6 )
cb8e9e
Requires:         python-argparse
cb8e9e
%endif
cb8e9e
Requires:         pyxattr
d1681e
%if (0%{?_with_valgrind:1})
d1681e
Requires:         valgrind
d1681e
%endif
e1d1f9
473043
%description server
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
e1d1f9
petabytes. It aggregates various storage bricks over Infiniband RDMA
e1d1f9
or TCP/IP interconnect into one large parallel network file
e1d1f9
system. GlusterFS is one of the most sophisticated file systems in
e1d1f9
terms of features and extensibility.  It borrows a powerful concept
e1d1f9
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
e1d1f9
is in user space and easily manageable.
e1d1f9
473043
This package provides the glusterfs server daemon.
473043
%endif
e1d1f9
cb8e9e
%package client-xlators
cb8e9e
Summary:          GlusterFS client-side translators
cb8e9e
Group:            Applications/File
cb8e9e
cb8e9e
%description client-xlators
cb8e9e
GlusterFS is a distributed file-system capable of scaling to several
cb8e9e
petabytes. It aggregates various storage bricks over Infiniband RDMA
cb8e9e
or TCP/IP interconnect into one large parallel network file
cb8e9e
system. GlusterFS is one of the most sophisticated file systems in
cb8e9e
terms of features and extensibility.  It borrows a powerful concept
cb8e9e
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
cb8e9e
is in user space and easily manageable.
cb8e9e
cb8e9e
This package provides the translators needed on any GlusterFS client.
cb8e9e
d1681e
%if ( 0%{?_build_server} )
3604df
%if ( 0%{!?_without_events:1} )
3604df
%package events
3604df
Summary:          GlusterFS Events
3604df
Group:            Applications/File
3604df
Requires:         %{name}-server%{?_isa} = %{version}-%{release}
d1681e
Requires:         python2 python-prettytable
d1681e
Requires:         python2-gluster = %{version}-%{release}
d1681e
%if ( 0%{?rhel} )
d1681e
Requires:         python-requests
d1681e
%else
d1681e
Requires:         python2-requests
d1681e
%endif
d1681e
%if ( 0%{?rhel} && 0%{?rhel} < 7 )
3604df
Requires:         python-argparse
3604df
%endif
3604df
%if ( 0%{?_with_systemd:1} )
3604df
%{?systemd_requires}
3604df
%endif
3604df
3604df
%description events
3604df
GlusterFS Events
3604df
3604df
%endif
3604df
%endif
3604df
e1d1f9
%prep
e1d1f9
%setup -q -n %{name}-%{version}%{?prereltag}
3604df
3604df
# sanitization scriptlet for patches with file renames
3604df
ls %{_topdir}/SOURCES/*.patch | sort | \
3604df
while read p
3604df
do
3604df
    # if the destination file exists, its most probably stale
3604df
    # so we must remove it
3604df
    rename_to=( $(grep -i 'rename to' $p | cut -f 3 -d ' ') )
3604df
    if [ ${#rename_to[*]} -gt 0 ]; then
3604df
        for f in ${rename_to[*]}
3604df
        do
3604df
            if [ -f $f ]; then
3604df
                rm -f $f
3604df
            elif [ -d $f ]; then
3604df
                rm -rf $f
3604df
            fi
3604df
        done
3604df
    fi
21ab4e
21ab4e
    SOURCE_FILES=( $(egrep '^\-\-\- a/' $p | cut -f 2- -d '/') )
21ab4e
    DEST_FILES=( $(egrep '^\+\+\+ b/' $p | cut -f 2- -d '/') )
21ab4e
    EXCLUDE_DOCS=()
21ab4e
    for idx in ${!SOURCE_FILES[@]}; do
21ab4e
        # skip the doc 
21ab4e
        source_file=${SOURCE_FILES[$idx]}
21ab4e
        dest_file=${DEST_FILES[$idx]}
21ab4e
        if [[ "$dest_file" =~ ^doc/.+ ]]; then
21ab4e
            if [ "$source_file" != "dev/null" ] && [ ! -f "$dest_file" ]; then
21ab4e
                # if patch is being applied to a doc file and if the doc file
21ab4e
                # hasn't been added so far then we need to exclude it
21ab4e
                EXCLUDE_DOCS=( ${EXCLUDE_DOCS[*]} "$dest_file" )
21ab4e
            fi
21ab4e
        fi
21ab4e
    done
21ab4e
    EXCLUDE_DOCS_OPT=""
21ab4e
    for doc in ${EXCLUDE_DOCS}; do
21ab4e
        EXCLUDE_DOCS_OPT="--exclude=$doc $EXCLUDE_DOCS_OPT"
21ab4e
    done
3604df
    # apply the patch with 'git apply'
3604df
    git apply -p1 --exclude=rfc.sh \
3604df
                  --exclude=.gitignore \
d1681e
                  --exclude=.testignore \
3604df
                  --exclude=MAINTAINERS \
3604df
                  --exclude=extras/checkpatch.pl \
3604df
                  --exclude=build-aux/checkpatch.pl \
21ab4e
                  --exclude='tests/*' \
21ab4e
                  ${EXCLUDE_DOCS_OPT} \
3604df
                  $p
3604df
done
3604df
e1d1f9
e1d1f9
%build
12a457
%if ( 0%{?rhel} && 0%{?rhel} < 6 )
12a457
CFLAGS=-DUSE_INSECURE_OPENSSL
12a457
export CFLAGS
12a457
%endif
cb8e9e
# In RHEL7 few hardening flags are available by default, however the RELRO
cb8e9e
# default behaviour is partial, convert to full
cb8e9e
%if ( 0%{?rhel} && 0%{?rhel} >= 7 )
cb8e9e
LDFLAGS="$RPM_LD_FLAGS -Wl,-z,relro,-z,now"
cb8e9e
export LDFLAGS
cb8e9e
%else
cb8e9e
%if ( 0%{?rhel} && 0%{?rhel} == 6 )
cb8e9e
CFLAGS="$RPM_OPT_FLAGS -fPIE -DPIE"
cb8e9e
LDFLAGS="$RPM_LD_FLAGS -pie -Wl,-z,relro,-z,now"
cb8e9e
%else
cb8e9e
#It appears that with gcc-4.1.2 in RHEL5 there is an issue using both -fPIC and
cb8e9e
 # -fPIE that makes -z relro not work; -fPIE seems to undo what -fPIC does
12a457
CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
cb8e9e
LDFLAGS="$RPM_LD_FLAGS -Wl,-z,relro,-z,now"
cb8e9e
%endif
cb8e9e
export CFLAGS
cb8e9e
export LDFLAGS
cb8e9e
%endif
cb8e9e
cb8e9e
./autogen.sh && %configure \
cb8e9e
        %{?_with_cmocka} \
3604df
        %{?_with_debug} \
d1681e
        %{?_with_valgrind} \
cb8e9e
        %{?_with_tmpfilesdir} \
cb8e9e
        %{?_without_bd} \
473043
        %{?_without_epoll} \
473043
        %{?_without_fusermount} \
473043
        %{?_without_georeplication} \
cb8e9e
        %{?_with_firewalld} \
473043
        %{?_without_ocf} \
cb8e9e
        %{?_without_rdma} \
cb8e9e
        %{?_without_syslog} \
3604df
        %{?_without_tiering} \
3604df
        %{?_without_events}
e1d1f9
e1d1f9
# fix hardening and remove rpath in shlibs
e1d1f9
%if ( 0%{?fedora} && 0%{?fedora} > 17 ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
473043
sed -i 's| \\\$compiler_flags |&\\\$LDFLAGS |' libtool
e1d1f9
%endif
473043
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|' libtool
473043
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|' libtool
473043
473043
make %{?_smp_mflags}
473043
cb8e9e
%check
cb8e9e
make check
e1d1f9
e1d1f9
%install
473043
rm -rf %{buildroot}
473043
make install DESTDIR=%{buildroot}
e1d1f9
# Install include directory
473043
install -p -m 0644 contrib/uuid/*.h \
e1d1f9
    %{buildroot}%{_includedir}/glusterfs/
e1d1f9
%if ( 0%{_for_fedora_koji_builds} )
473043
install -D -p -m 0644 %{SOURCE1} \
e1d1f9
    %{buildroot}%{_sysconfdir}/sysconfig/glusterd
473043
install -D -p -m 0644 %{SOURCE2} \
e1d1f9
    %{buildroot}%{_sysconfdir}/sysconfig/glusterfsd
e1d1f9
%else
473043
install -D -p -m 0644 extras/glusterd-sysconfig \
e1d1f9
    %{buildroot}%{_sysconfdir}/sysconfig/glusterd
e1d1f9
%endif
e1d1f9
e1d1f9
%if ( 0%{_for_fedora_koji_builds} )
e1d1f9
%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
473043
install -D -p -m 0755 %{SOURCE6} \
e1d1f9
    %{buildroot}%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
e1d1f9
%endif
e1d1f9
%endif
e1d1f9
473043
mkdir -p %{buildroot}%{_localstatedir}/log/glusterd
473043
mkdir -p %{buildroot}%{_localstatedir}/log/glusterfs
473043
mkdir -p %{buildroot}%{_localstatedir}/log/glusterfsd
d1681e
mkdir -p %{buildroot}%{_rundir}/gluster
e1d1f9
e1d1f9
# Remove unwanted files from all the shared libraries
e1d1f9
find %{buildroot}%{_libdir} -name '*.a' -delete
e1d1f9
find %{buildroot}%{_libdir} -name '*.la' -delete
e1d1f9
473043
# Remove installed docs, the ones we want are included by %%doc, in
473043
# /usr/share/doc/glusterfs or /usr/share/doc/glusterfs-x.y.z depending
473043
# on the distribution
473043
%if ( 0%{?fedora} && 0%{?fedora} > 19 ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
473043
rm -rf %{buildroot}%{_pkgdocdir}/*
473043
%else
473043
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
473043
mkdir -p %{buildroot}%{_pkgdocdir}
473043
%endif
473043
head -50 ChangeLog > ChangeLog.head && mv ChangeLog.head ChangeLog
473043
cat << EOM >> ChangeLog
473043
473043
More commit messages for this ChangeLog can be found at
473043
https://forge.gluster.org/glusterfs-core/glusterfs/commits/v%{version}%{?prereltag}
473043
EOM
e1d1f9
e1d1f9
# Remove benchmarking and other unpackaged files
473043
%if ( 0%{?rhel} && 0%{?rhel} < 6 )
473043
rm -rf %{buildroot}/benchmarking
473043
rm -f %{buildroot}/glusterfs-mode.el
473043
rm -f %{buildroot}/glusterfs.vim
473043
%else
473043
# make install always puts these in %%{_defaultdocdir}/%%{name} so don't
473043
# use %%{_pkgdocdir}; that will be wrong on later Fedora distributions
473043
rm -rf %{buildroot}%{_defaultdocdir}/%{name}/benchmarking
473043
rm -f %{buildroot}%{_defaultdocdir}/%{name}/glusterfs-mode.el
473043
rm -f %{buildroot}%{_defaultdocdir}/%{name}/glusterfs.vim
473043
%endif
e1d1f9
e1d1f9
# Create working directory
473043
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd
e1d1f9
e1d1f9
# Update configuration file to /var/lib working directory
e1d1f9
sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sharedstatedir}/glusterd|g' \
e1d1f9
    %{buildroot}%{_sysconfdir}/glusterfs/glusterd.vol
e1d1f9
e1d1f9
# Install glusterfsd .service or init.d file
e1d1f9
%if ( 0%{_for_fedora_koji_builds} )
e1d1f9
%_init_install %{glusterfsd_service} glusterfsd
e1d1f9
%endif
e1d1f9
473043
install -D -p -m 0644 extras/glusterfs-logrotate \
e1d1f9
    %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs
e1d1f9
d1681e
# ganesha ghosts
d1681e
%if ( 0%{?_build_server} )
d1681e
mkdir -p %{buildroot}%{_sysconfdir}/ganesha
d1681e
touch %{buildroot}%{_sysconfdir}/ganesha/ganesha-ha.conf
d1681e
mkdir -p %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/exports
d1681e
touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
d1681e
touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
d1681e
%endif
d1681e
e1d1f9
%if ( 0%{!?_without_georeplication:1} )
473043
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
79e268
touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
473043
install -D -p -m 0644 extras/glusterfs-georep-logrotate \
473043
    %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs-georep
473043
%endif
e1d1f9
cb8e9e
touch %{buildroot}%{_sharedstatedir}/glusterd/glusterd.info
cb8e9e
touch %{buildroot}%{_sharedstatedir}/glusterd/options
12a457
subdirs=(add-brick create copy-file delete gsync-create remove-brick reset set start stop)
3604df
for dir in ${subdirs[@]}; do
3604df
    mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/"$dir"/{pre,post}
e1d1f9
done
473043
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/glustershd
473043
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/peers
473043
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/vols
473043
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/nfs/run
12a457
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/bitd
12a457
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/quotad
12a457
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/scrub
12a457
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/snaps
12a457
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/ss_brick
473043
touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/nfs-server.vol
473043
touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/run/nfs.pid
473043
473043
find ./tests ./run-tests.sh -type f | cpio -pd %{buildroot}%{_prefix}/share/glusterfs
cb8e9e
cb8e9e
## Install bash completion for cli
cb8e9e
install -p -m 0744 -D extras/command-completion/gluster.bash \
cb8e9e
    %{buildroot}%{_sysconfdir}/bash_completion.d/gluster
cb8e9e
d1681e
%if ( 0%{?_build_server} )
d1681e
echo "RHGS 3.4.0" > %{buildroot}%{_datadir}/glusterfs/release
d1681e
%endif
d1681e
473043
%clean
473043
rm -rf %{buildroot}
473043
473043
##-----------------------------------------------------------------------------
12a457
## All %%post should be placed here and keep them sorted
473043
##
473043
%post
12a457
/sbin/ldconfig
e1d1f9
%if ( 0%{!?_without_syslog:1} )
473043
%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
473043
%_init_restart rsyslog
473043
%endif
e1d1f9
%endif
12a457
exit 0
e1d1f9
473043
%post api
473043
/sbin/ldconfig
473043
3604df
%if ( 0%{?_build_server} )
3604df
%if ( 0%{!?_without_events:1} )
3604df
%post events
3604df
%_init_restart glustereventsd
3604df
%endif
3604df
%endif
3604df
cb8e9e
%if ( 0%{?rhel} == 5 )
12a457
%post fuse
cb8e9e
modprobe fuse
12a457
exit 0
cb8e9e
%endif
cb8e9e
473043
%if ( 0%{?_build_server} )
d1681e
%if ( 0%{?fedora} && 0%{?fedora} > 25 || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
21ab4e
%post ganesha
21ab4e
semanage boolean -m ganesha_use_fusefs --on
21ab4e
exit 0
21ab4e
%endif
21ab4e
%endif
21ab4e
21ab4e
%if ( 0%{?_build_server} )
473043
%if ( 0%{!?_without_georeplication:1} )
473043
%post geo-replication
473043
if [ $1 -ge 1 ]; then
473043
    %_init_restart glusterd
473043
fi
12a457
exit 0
473043
%endif
473043
%endif
473043
473043
%post libs
473043
/sbin/ldconfig
473043
473043
%if ( 0%{?_build_server} )
473043
%post server
473043
# Legacy server
473043
%_init_enable glusterd
3604df
%if ( 0%{_for_fedora_koji_builds} )
473043
%_init_enable glusterfsd
3604df
%endif
cb8e9e
# ".cmd_log_history" is renamed to "cmd_history.log" in GlusterFS-3.7 .
cb8e9e
# While upgrading glusterfs-server package form GlusterFS version <= 3.6 to
cb8e9e
# GlusterFS version 3.7, ".cmd_log_history" should be renamed to
cb8e9e
# "cmd_history.log" to retain cli command history contents.
cb8e9e
if [ -f %{_localstatedir}/log/glusterfs/.cmd_log_history ]; then
cb8e9e
    mv %{_localstatedir}/log/glusterfs/.cmd_log_history \
cb8e9e
       %{_localstatedir}/log/glusterfs/cmd_history.log
cb8e9e
fi
473043
473043
# Genuine Fedora (and EPEL) builds never put gluster files in /etc; if
473043
# there are any files in /etc from a prior gluster.org install, move them
473043
# to /var/lib. (N.B. Starting with 3.3.0 all gluster files are in /var/lib
473043
# in gluster.org RPMs.) Be careful to copy them on the off chance that
473043
# /etc and /var/lib are on separate file systems
473043
if [ -d /etc/glusterd -a ! -h %{_sharedstatedir}/glusterd ]; then
473043
    mkdir -p %{_sharedstatedir}/glusterd
473043
    cp -a /etc/glusterd %{_sharedstatedir}/glusterd
473043
    rm -rf /etc/glusterd
473043
    ln -sf %{_sharedstatedir}/glusterd /etc/glusterd
473043
fi
473043
473043
# Rename old volfiles in an RPM-standard way.  These aren't actually
473043
# considered package config files, so %%config doesn't work for them.
473043
if [ -d %{_sharedstatedir}/glusterd/vols ]; then
473043
    for file in $(find %{_sharedstatedir}/glusterd/vols -name '*.vol'); do
473043
        newfile=${file}.rpmsave
473043
        echo "warning: ${file} saved as ${newfile}"
473043
        cp ${file} ${newfile}
473043
    done
473043
fi
473043
473043
# add marker translator
473043
# but first make certain that there are no old libs around to bite us
473043
# BZ 834847
473043
if [ -e /etc/ld.so.conf.d/glusterfs.conf ]; then
473043
    rm -f /etc/ld.so.conf.d/glusterfs.conf
473043
    /sbin/ldconfig
473043
fi
cb8e9e
cb8e9e
%if (0%{?_with_firewalld:1})
d1681e
    %firewalld_reload
cb8e9e
%endif
cb8e9e
21ab4e
%endif
cb8e9e
21ab4e
##-----------------------------------------------------------------------------
21ab4e
## All %%pre should be placed here and keep them sorted
21ab4e
##
21ab4e
%pre
21ab4e
getent group gluster > /dev/null || groupadd -r gluster
d1681e
getent passwd gluster > /dev/null || useradd -r -g gluster -d %{_rundir}/gluster -s /sbin/nologin -c "GlusterFS daemons" gluster
21ab4e
exit 0
cb8e9e
e1d1f9
473043
##-----------------------------------------------------------------------------
12a457
## All %%preun should be placed here and keep them sorted
473043
##
473043
%if ( 0%{?_build_server} )
3604df
%if ( 0%{!?_without_events:1} )
3604df
%preun events
3604df
if [ $1 -eq 0 ]; then
3604df
    if [ -f %_init_glustereventsd ]; then
3604df
        %_init_stop glustereventsd
3604df
        %_init_disable glustereventsd
3604df
    fi
3604df
fi
3604df
exit 0
3604df
%endif
3604df
473043
%preun server
473043
if [ $1 -eq 0 ]; then
473043
    if [ -f %_init_glusterfsd ]; then
473043
        %_init_stop glusterfsd
473043
    fi
473043
    %_init_stop glusterd
473043
    if [ -f %_init_glusterfsd ]; then
473043
        %_init_disable glusterfsd
473043
    fi
473043
    %_init_disable glusterd
473043
fi
473043
if [ $1 -ge 1 ]; then
473043
    if [ -f %_init_glusterfsd ]; then
473043
        %_init_restart glusterfsd
473043
    fi
473043
    %_init_restart glusterd
473043
fi
473043
%endif
473043
473043
##-----------------------------------------------------------------------------
3604df
## All %%postun should be placed here and keep them sorted
473043
##
473043
%postun
473043
/sbin/ldconfig
473043
%if ( 0%{!?_without_syslog:1} )
e1d1f9
%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
473043
%_init_restart rsyslog
e1d1f9
%endif
e1d1f9
%endif
e1d1f9
473043
%postun api
473043
/sbin/ldconfig
e1d1f9
21ab4e
%if ( 0%{?_build_server} )
d1681e
%if ( 0%{?fedora} && 0%{?fedora} > 25  || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
21ab4e
%postun ganesha
21ab4e
semanage boolean -m ganesha_use_fusefs --off
21ab4e
exit 0
21ab4e
%endif
21ab4e
%endif
21ab4e
3604df
%postun libs
3604df
/sbin/ldconfig
3604df
cb8e9e
%if ( 0%{?_build_server} )
cb8e9e
%postun server
12a457
/sbin/ldconfig
cb8e9e
%if (0%{?_with_firewalld:1})
d1681e
    %firewalld_reload
cb8e9e
%endif
12a457
exit 0
cb8e9e
%endif
cb8e9e
473043
##-----------------------------------------------------------------------------
d1681e
## All %%trigger should be placed here and keep them sorted
d1681e
##
d1681e
%if ( 0%{?_build_server} )
d1681e
%if ( 0%{?fedora} && 0%{?fedora} > 25  || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
d1681e
%trigger ganesha -- selinux-policy-targeted
d1681e
semanage boolean -m ganesha_use_fusefs --on
d1681e
exit 0
d1681e
%endif
d1681e
%endif
d1681e
d1681e
##-----------------------------------------------------------------------------
d1681e
## All %%triggerun should be placed here and keep them sorted
d1681e
##
d1681e
%if ( 0%{?_build_server} )
d1681e
%if ( 0%{?fedora} && 0%{?fedora} > 25 || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
d1681e
%triggerun ganesha -- selinux-policy-targeted
d1681e
semanage boolean -m ganesha_use_fusefs --off
d1681e
exit 0
d1681e
%endif
d1681e
%endif
d1681e
d1681e
##-----------------------------------------------------------------------------
12a457
## All %%files should be placed here and keep them grouped
473043
##
473043
%files
cb8e9e
# exclude extra-xlators files
cb8e9e
%if ( ! 0%{!?_without_extra_xlators:1} )
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption/rot-13.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quiesce.so
d1681e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/selinux.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/features/template.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/performance/symlink-cache.so
cb8e9e
%exclude %{python_sitelib}/*
cb8e9e
%endif
cb8e9e
# exclude regression-tests files
cb8e9e
%if ( ! 0%{!?_without_regression_tests:1} )
cb8e9e
%exclude %{_prefix}/share/glusterfs/run-tests.sh
cb8e9e
%exclude %{_prefix}/share/glusterfs/tests/*
cb8e9e
%endif
cb8e9e
%if ( ! 0%{?_build_server} )
cb8e9e
# exclude ganesha files
cb8e9e
%exclude %{_prefix}/lib/ocf/*
d1681e
%exclude %{_libexecdir}/ganesha/*
d1681e
%exclude %{_prefix}/lib/ocf/resource.d/heartbeat/*
d1681e
%exclude %{_sysconfdir}/ganesha/ganesha-ha.conf.sample
d1681e
cb8e9e
# exclude incrementalapi
cb8e9e
%exclude %{_libexecdir}/glusterfs/*
cb8e9e
%exclude %{_sbindir}/gfind_missing_files
cb8e9e
%exclude %{_libexecdir}/glusterfs/glusterfind
cb8e9e
%exclude %{_bindir}/glusterfind
cb8e9e
%exclude %{_libexecdir}/glusterfs/peer_add_secret_pub
3604df
# exclude eventsapi files
3604df
%exclude %{_sysconfdir}/glusterfs/eventsconfig.json
3604df
%exclude %{_sharedstatedir}/glusterd/events
3604df
%exclude %{_libexecdir}/glusterfs/events
3604df
%exclude %{_libexecdir}/glusterfs/peer_eventsapi.py*
3604df
%exclude %{_sbindir}/glustereventsd
3604df
%exclude %{_sbindir}/gluster-eventsapi
3604df
%exclude %{_datadir}/glusterfs/scripts/eventsdash.py*
3604df
%if ( 0%{?_with_systemd:1} )
3604df
%exclude %{_unitdir}/glustereventsd.service
21ab4e
%exclude %_init_glusterfssharedstorage
3604df
%else
3604df
%exclude %{_sysconfdir}/init.d/glustereventsd
3604df
%endif
cb8e9e
# exclude server files
cb8e9e
%exclude %{_sharedstatedir}/glusterd/*
cb8e9e
%exclude %{_sysconfdir}/glusterfs
cb8e9e
%exclude %{_sysconfdir}/glusterfs/glusterd.vol
cb8e9e
%exclude %{_sysconfdir}/glusterfs/glusterfs-georep-logrotate
cb8e9e
%exclude %{_sysconfdir}/glusterfs/glusterfs-logrotate
cb8e9e
%exclude %{_sysconfdir}/glusterfs/gluster-rsyslog-5.8.conf
cb8e9e
%exclude %{_sysconfdir}/glusterfs/gluster-rsyslog-7.2.conf
cb8e9e
%exclude %{_sysconfdir}/glusterfs/group-virt.example
cb8e9e
%exclude %{_sysconfdir}/glusterfs/logger.conf.example
cb8e9e
%exclude %_init_glusterd
cb8e9e
%exclude %{_sysconfdir}/sysconfig/glusterd
cb8e9e
%exclude %{_bindir}/glusterfind
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/arbiter.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bit-rot.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bitrot-stub.so
cb8e9e
%if ( 0%{!?_without_tiering:1} )
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/changetimerecorder.so
cb8e9e
%endif
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/index.so
3604df
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/leases.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/locks.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/posix*
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/snapview-server.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/marker.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quota*
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/trash.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/upcall.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mgmt*
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/nfs*
3604df
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/decompounder.so
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/server*
cb8e9e
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/storage*
3604df
%if ( 0%{!?_without_tiering:1} )
3604df
%exclude %{_libdir}/libgfdb.so.*
3604df
%endif
cb8e9e
%exclude %{_sbindir}/gcron.py
cb8e9e
%exclude %{_sbindir}/glfsheal
cb8e9e
%exclude %{_sbindir}/glusterd
21ab4e
%exclude %{_sbindir}/gf_attach
cb8e9e
%exclude %{_sbindir}/snap_scheduler.py
cb8e9e
%exclude %{_datadir}/glusterfs/scripts/stop-all-gluster-processes.sh
21ab4e
%if ( 0%{?_with_systemd:1} )
21ab4e
%exclude %{_libexecdir}/glusterfs/mount-shared-storage.sh
21ab4e
%endif
3604df
%exclude %{_sbindir}/conf.py*
cb8e9e
%if 0%{?_tmpfilesdir:1}
cb8e9e
%exclude %{_tmpfilesdir}/gluster.conf
cb8e9e
%endif
12a457
%if ( 0%{?_with_firewalld:1} )
12a457
%exclude /usr/lib/firewalld/services/glusterfs.xml
473043
%endif
473043
%endif
12a457
%doc ChangeLog COPYING-GPLV2 COPYING-LGPLV3 INSTALL README.md THANKS
473043
%{_mandir}/man8/*gluster*.8*
473043
%exclude %{_mandir}/man8/gluster.8*
473043
%dir %{_localstatedir}/log/glusterfs
473043
%if ( 0%{!?_without_rdma:1} )
473043
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport/rdma*
473043
%endif
d1681e
%dir %{_datadir}/glusterfs
cb8e9e
%dir %{_datadir}/glusterfs/scripts
d1681e
     %{_datadir}/glusterfs/scripts/post-upgrade-script-for-quota.sh
d1681e
     %{_datadir}/glusterfs/scripts/pre-upgrade-script-for-quota.sh
cb8e9e
# xlators that are needed on the client- and on the server-side
d1681e
%dir %{_libdir}/glusterfs
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}
cb8e9e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/auth
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/auth/addr.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/auth/login.so
cb8e9e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport/socket.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
cb8e9e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug/error-gen.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug/io-stats.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug/sink.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug/trace.so
cb8e9e
%if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 ) )
cb8e9e
# RHEL-5 based distributions have a too old openssl
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption/crypt.so
d1681e
%endif
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/access-control.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/barrier.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/cdc.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/changelog.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/gfid-access.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/read-only.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/shard.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/snapview-client.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/worm.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/meta.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/io-cache.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/io-threads.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/md-cache.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/open-behind.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/quick-read.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/read-ahead.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/readdir-ahead.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/stat-prefetch.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/write-behind.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/nl-cache.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/system
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/system/posix-acl.so
d1681e
%dir %attr(0775,gluster,gluster) %{_rundir}/gluster
12a457
%if 0%{?_tmpfilesdir:1}
12a457
%{_tmpfilesdir}/gluster.conf
12a457
%endif
d1681e
%if ( ! 0%{?_build_server} )
d1681e
%exclude %{_libdir}/pkgconfig/libgfchangelog.pc
d1681e
%exclude %{_libdir}/pkgconfig/libgfdb.pc
d1681e
%exclude %{_sbindir}/gluster-setgfid2path
d1681e
%exclude %{_mandir}/man8/gluster-setgfid2path.8*
d1681e
%if ( 0%{?_with_systemd:1} )
d1681e
%exclude %{_datadir}/glusterfs/scripts/control-cpu-load.sh
d1681e
%exclude %{_datadir}/glusterfs/scripts/control-mem.sh
d1681e
%endif
d1681e
%endif
473043
473043
%files api
473043
%exclude %{_libdir}/*.so
473043
# libgfapi files
473043
%{_libdir}/libgfapi.*
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount/api.so
473043
473043
%files api-devel
473043
%{_libdir}/pkgconfig/glusterfs-api.pc
473043
%{_libdir}/libgfapi.so
d1681e
%dir %{_includedir}/glusterfs
d1681e
%dir %{_includedir}/glusterfs/api
d1681e
     %{_includedir}/glusterfs/api/*
473043
473043
%files cli
473043
%{_sbindir}/gluster
473043
%{_mandir}/man8/gluster.8*
cb8e9e
%{_sysconfdir}/bash_completion.d/gluster
e1d1f9
473043
%files devel
3604df
%dir %{_includedir}/glusterfs
d1681e
     %{_includedir}/glusterfs/*
473043
%exclude %{_includedir}/glusterfs/api
473043
%exclude %{_libdir}/libgfapi.so
3604df
%if ( ! 0%{?_build_server} )
3604df
%exclude %{_libdir}/libgfchangelog.so
3604df
%endif
3604df
%if ( 0%{!?_without_tiering:1} && ! 0%{?_build_server})
3604df
%exclude %{_libdir}/libgfdb.so
3604df
%endif
473043
%{_libdir}/*.so
473043
# Glupy Translator examples
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/debug-trace.*
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/helloworld.*
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/negative.*
cb8e9e
%if ( 0%{?_build_server} )
cb8e9e
%{_libdir}/pkgconfig/libgfchangelog.pc
cb8e9e
%else
cb8e9e
%exclude %{_libdir}/pkgconfig/libgfchangelog.pc
12a457
%endif
12a457
%if ( 0%{!?_without_tiering:1} && ! 0%{?_build_server})
12a457
%exclude %{_libdir}/libgfdb.so
cb8e9e
%endif
cb8e9e
%if ( 0%{!?_without_tiering:1} && 0%{?_build_server})
cb8e9e
%{_libdir}/pkgconfig/libgfdb.pc
cb8e9e
%else
cb8e9e
%if ( 0%{?rhel} && 0%{?rhel} >= 6 )
cb8e9e
%exclude %{_libdir}/pkgconfig/libgfdb.pc
cb8e9e
%endif
cb8e9e
%endif
cb8e9e
cb8e9e
%files client-xlators
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/cluster
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/cluster/*.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/client.so
473043
473043
%if ( 0%{!?_without_extra_xlators:1} )
473043
%files extra-xlators
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption/rot-13.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quiesce.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/features
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/features/template.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/performance
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/performance/symlink-cache.so
473043
# Glupy Python files
d1681e
%dir %{python2_sitelib}/gluster
d1681e
%dir %{python2_sitelib}/gluster/glupy
d1681e
     %{python2_sitelib}/gluster/glupy/*
473043
# Don't expect a .egg-info file on EL5
473043
%if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 ) )
473043
%{python_sitelib}/glusterfs_glupy*.egg-info
473043
%endif
473043
%endif
473043
473043
%files fuse
cb8e9e
# glusterfs is a symlink to glusterfsd, -server depends on -fuse.
cb8e9e
%{_sbindir}/glusterfs
cb8e9e
%{_sbindir}/glusterfsd
cb8e9e
%config(noreplace) %{_sysconfdir}/logrotate.d/glusterfs
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount/fuse.so
473043
/sbin/mount.glusterfs
473043
%if ( 0%{!?_without_fusermount:1} )
473043
%{_bindir}/fusermount-glusterfs
473043
%endif
473043
%if ( 0%{_for_fedora_koji_builds} )
473043
%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
473043
%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
473043
%endif
473043
%endif
473043
473043
%if ( 0%{?_build_server} )
cb8e9e
%files ganesha
d1681e
%dir %{_libexecdir}/ganesha
12a457
%{_libexecdir}/ganesha/*
12a457
%{_prefix}/lib/ocf/resource.d/heartbeat/*
12a457
%{_sharedstatedir}/glusterd/hooks/1/start/post/S31ganesha-start.sh
d1681e
%{_sysconfdir}/ganesha/ganesha-ha.conf.sample
d1681e
%ghost      %attr(0644,-,-) %config(noreplace) %{_sysconfdir}/ganesha/ganesha-ha.conf
d1681e
%ghost %dir %attr(0755,-,-) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha
d1681e
%ghost %dir %attr(0755,-,-) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/exports
d1681e
%ghost      %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
d1681e
%ghost      %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
cb8e9e
%endif
cb8e9e
cb8e9e
%if ( 0%{?_build_server} )
473043
%if ( 0%{!?_without_georeplication:1} )
473043
%files geo-replication
cb8e9e
%config(noreplace) %{_sysconfdir}/logrotate.d/glusterfs-georep
12a457
12a457
%{_sbindir}/gfind_missing_files
3604df
%{_sbindir}/gluster-mountbroker
d1681e
%dir %{_libexecdir}/glusterfs
d1681e
%dir %{_libexecdir}/glusterfs/python
d1681e
%dir %{_libexecdir}/glusterfs/python/syncdaemon
d1681e
     %{_libexecdir}/glusterfs/gsyncd
d1681e
     %{_libexecdir}/glusterfs/python/syncdaemon/*
d1681e
     %{_libexecdir}/glusterfs/gverify.sh
d1681e
     %{_libexecdir}/glusterfs/set_geo_rep_pem_keys.sh
d1681e
     %{_libexecdir}/glusterfs/peer_gsec_create
d1681e
     %{_libexecdir}/glusterfs/peer_mountbroker
d1681e
     %{_libexecdir}/glusterfs/peer_mountbroker.py*
d1681e
     %{_libexecdir}/glusterfs/gfind_missing_files
d1681e
     %{_libexecdir}/glusterfs/peer_georep-sshkey.py*
d1681e
%{_sbindir}/gluster-georep-sshkey
12a457
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/geo-replication
12a457
%ghost      %attr(0644,-,-) %{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/gsync-create
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post
12a457
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post/S56glusterd-geo-rep-create-post.sh
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/gsync-create/pre
12a457
d1681e
%dir %{_datadir}/glusterfs
d1681e
%dir %{_datadir}/glusterfs/scripts
d1681e
     %{_datadir}/glusterfs/scripts/get-gfid.sh
d1681e
     %{_datadir}/glusterfs/scripts/slave-upgrade.sh
d1681e
     %{_datadir}/glusterfs/scripts/gsync-upgrade.sh
d1681e
     %{_datadir}/glusterfs/scripts/generate-gfid-file.sh
d1681e
     %{_datadir}/glusterfs/scripts/gsync-sync-gfid
d1681e
     %{_datadir}/glusterfs/scripts/schedule_georep.py*
473043
%endif
473043
%endif
473043
473043
%files libs
473043
%{_libdir}/*.so.*
473043
%exclude %{_libdir}/libgfapi.*
cb8e9e
%if ( 0%{!?_without_tiering:1} )
cb8e9e
# libgfdb is only needed server-side
cb8e9e
%exclude %{_libdir}/libgfdb.*
cb8e9e
%endif
cb8e9e
d1681e
%files -n python2-gluster
cb8e9e
# introducing glusterfs module in site packages.
cb8e9e
# so that all other gluster submodules can reside in the same namespace.
d1681e
%dir %{python2_sitelib}/gluster
d1681e
     %{python2_sitelib}/gluster/__init__.*
d1681e
     %{python2_sitelib}/gluster/cliutils
473043
473043
%if ( 0%{!?_without_rdma:1} )
473043
%files rdma
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport/rdma*
473043
%endif
473043
473043
%if ( 0%{?_build_server} )
473043
%if ( 0%{!?_without_regression_tests:1} )
473043
%files regression-tests
d1681e
%dir %{_datadir}/glusterfs
d1681e
     %{_datadir}/glusterfs/run-tests.sh
d1681e
     %{_datadir}/glusterfs/tests
d1681e
%exclude %{_datadir}/glusterfs/tests/vagrant
d1681e
%exclude %{_datadir}/share/glusterfs/tests/basic/rpm.t
473043
%endif
cb8e9e
%endif
473043
cb8e9e
%if ( 0%{?_build_server} )
473043
%if ( 0%{!?_without_ocf:1} )
473043
%files resource-agents
473043
# /usr/lib is the standard for OCF, also on x86_64
473043
%{_prefix}/lib/ocf/resource.d/glusterfs
473043
%endif
cb8e9e
%endif
473043
cb8e9e
%if ( 0%{?_build_server} )
473043
%files server
3604df
%exclude %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post/S56glusterd-geo-rep-create-post.sh
473043
%doc extras/clear_xattrs.sh
12a457
# sysconf
473043
%config(noreplace) %{_sysconfdir}/glusterfs
3604df
%exclude %{_sysconfdir}/glusterfs/eventsconfig.json
12a457
%config(noreplace) %{_sysconfdir}/sysconfig/glusterd
3604df
%if ( 0%{_for_fedora_koji_builds} )
3604df
%config(noreplace) %{_sysconfdir}/sysconfig/glusterfsd
3604df
%endif
12a457
473043
# init files
473043
%_init_glusterd
473043
%if ( 0%{_for_fedora_koji_builds} )
473043
%_init_glusterfsd
473043
%endif
21ab4e
%if ( 0%{?_with_systemd:1} )
21ab4e
%_init_glusterfssharedstorage
21ab4e
%endif
12a457
473043
# binaries
473043
%{_sbindir}/glusterd
473043
%{_sbindir}/glfsheal
21ab4e
%{_sbindir}/gf_attach
d1681e
%{_sbindir}/gluster-setgfid2path
cb8e9e
# {_sbindir}/glusterfsd is the actual binary, but glusterfs (client) is a
cb8e9e
# symlink. The binary itself (and symlink) are part of the glusterfs-fuse
cb8e9e
# package, because glusterfs-server depends on that anyway.
d1681e
d1681e
# Manpages
d1681e
%{_mandir}/man8/gluster-setgfid2path.8*
d1681e
d1681e
# xlators
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/arbiter.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bit-rot.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bitrot-stub.so
cb8e9e
%if ( 0%{!?_without_tiering:1} )
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/changetimerecorder.so
d1681e
     %{_libdir}/libgfdb.so.*
d1681e
%endif
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/index.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/locks.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/posix*
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/snapview-server.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/marker.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quota*
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/selinux.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/trash.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/upcall.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/leases.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/nfs*
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mgmt
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mgmt/glusterd.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/server.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/storage
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/storage/bd.so
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/storage/posix.so
d1681e
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance
d1681e
     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/decompounder.so
cb8e9e
3604df
# snap_scheduler
cb8e9e
%{_sbindir}/snap_scheduler.py
cb8e9e
%{_sbindir}/gcron.py
3604df
%{_sbindir}/conf.py
cb8e9e
12a457
# /var/lib/glusterd, e.g. hookscripts, etc.
12a457
%ghost      %attr(0644,-,-) %config(noreplace) %{_sharedstatedir}/glusterd/glusterd.info
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/bitd
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/groups
12a457
            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/virt
3604df
            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/metadata-cache
21ab4e
            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/gluster-block
7c2869
            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/db-workload
d1681e
            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/nl-cache
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind/.keys
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post
12a457
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/disabled-quota-root-xattr-heal.sh
d1681e
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/S13create-subdir-mounts.sh
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre
d1681e
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre/S28Quota-enable-root-xattr-heal.sh
d1681e
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create
d1681e
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/pre
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/copy-file
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/copy-file/post
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/copy-file/pre
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/post
3604df
                            %{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post
d1681e
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick/post
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick/pre
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/reset
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/reset/post
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/reset/pre
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post
12a457
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post/S30samba-set.sh
12a457
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post/S32gluster_enable_shared_storage.sh
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/pre
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post
12a457
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S29CTDBsetup.sh
12a457
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S30samba-start.sh
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/pre
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/post
12a457
       %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre
12a457
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre/S30samba-stop.sh
12a457
            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre/S29CTDB-teardown.sh
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs
12a457
%ghost      %attr(0600,-,-) %{_sharedstatedir}/glusterd/nfs/nfs-server.vol
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs/run
12a457
%ghost      %attr(0600,-,-) %{_sharedstatedir}/glusterd/nfs/run/nfs.pid
d1681e
%ghost      %attr(0600,-,-) %{_sharedstatedir}/glusterd/options
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/peers
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/quotad
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/scrub
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/snaps
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/ss_brick
12a457
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/vols
cb8e9e
cb8e9e
# Extra utility script
d1681e
%dir %{_libexecdir}/glusterfs
d1681e
     %{_datadir}/glusterfs/release
d1681e
%dir %{_datadir}/glusterfs/scripts
d1681e
     %{_datadir}/glusterfs/scripts/stop-all-gluster-processes.sh
21ab4e
%if ( 0%{?_with_systemd:1} )
d1681e
     %{_libexecdir}/glusterfs/mount-shared-storage.sh
d1681e
     %{_datadir}/glusterfs/scripts/control-cpu-load.sh
d1681e
     %{_datadir}/glusterfs/scripts/control-mem.sh
21ab4e
%endif
cb8e9e
cb8e9e
# Incrementalapi
d1681e
     %{_libexecdir}/glusterfs/glusterfind
cb8e9e
%{_bindir}/glusterfind
d1681e
     %{_libexecdir}/glusterfs/peer_add_secret_pub
473043
cb8e9e
%if ( 0%{?_with_firewalld:1} )
3604df
%{_prefix}/lib/firewalld/services/glusterfs.xml
cb8e9e
%endif
12a457
%endif
cb8e9e
cb8e9e
473043
##-----------------------------------------------------------------------------
473043
## All %pretrans should be placed here and keep them sorted
473043
##
79e268
%if 0%{?_build_server}
79e268
%pretrans -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
79e268
79e268
script = [[#!/bin/sh
e1d1f9
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
e1d1f9
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          echo "ERROR: Distribute volumes detected. In-service rolling upgrade requires distribute volume(s) to be stopped."
79e268
          echo "ERROR: Please stop distribute volume(s) before proceeding... exiting!"
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   echo "WARNING: Updating glusterfs requires its processes to be killed. This action does NOT incur downtime."
79e268
   echo "WARNING: Ensure to wait for the upgraded server to finish healing before proceeding."
79e268
   echo "WARNING: Refer upgrade section of install guide for more details"
79e268
   echo "Please run # service glusterd stop; pkill glusterfs; pkill glusterfsd; pkill gsyncd.py;"
79e268
   exit 1;
e1d1f9
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
e1d1f9
473043
473043
473043
%pretrans api -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
79e268
79e268
script = [[#!/bin/sh
e1d1f9
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
e1d1f9
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   exit 1;
e1d1f9
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
e1d1f9
e1d1f9
e1d1f9
473043
%pretrans api-devel -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
e1d1f9
79e268
script = [[#!/bin/sh
e1d1f9
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
e1d1f9
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   exit 1;
e1d1f9
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
e1d1f9
e1d1f9
473043
cb8e9e
%pretrans cli -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
e1d1f9
79e268
script = [[#!/bin/sh
e1d1f9
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
e1d1f9
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   exit 1;
e1d1f9
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
e1d1f9
e1d1f9
e1d1f9
cb8e9e
%pretrans client-xlators -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
79e268
79e268
script = [[#!/bin/sh
79e268
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
79e268
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   exit 1;
79e268
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
79e268
473043
473043
cb8e9e
%pretrans devel -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
79e268
79e268
script = [[#!/bin/sh
e1d1f9
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
e1d1f9
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   exit 1;
e1d1f9
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
e1d1f9
473043
473043
cb8e9e
%pretrans fuse -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
79e268
79e268
script = [[#!/bin/sh
e1d1f9
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
e1d1f9
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   exit 1;
e1d1f9
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
e1d1f9
e1d1f9
e1d1f9
cb8e9e
%if ( 0%{!?_without_georeplication:1} )
cb8e9e
%pretrans geo-replication -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
79e268
79e268
script = [[#!/bin/sh
e1d1f9
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
e1d1f9
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   exit 1;
e1d1f9
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
79e268
%endif
e1d1f9
e1d1f9
473043
cb8e9e
%pretrans libs -p <lua>
79e268
if not posix.access("/bin/bash", "x") then
79e268
    -- initial installation, no shell, no running glusterfsd
79e268
    return 0
79e268
end
79e268
79e268
-- TODO: move this completely to a lua script
79e268
-- For now, we write a temporary bash script and execute that.
79e268
79e268
script = [[#!/bin/sh
79e268
pidof -c -o %PPID -x glusterfsd &>/dev/null
79e268
79e268
if [ $? -eq 0 ]; then
79e268
   pushd . > /dev/null 2>&1
79e268
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
79e268
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
79e268
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
79e268
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
79e268
          exit 1;
79e268
       fi
79e268
   done
79e268
79e268
   popd > /dev/null 2>&1
79e268
   exit 1;
79e268
fi
79e268
]]
79e268
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
79e268
tmpfile = io.open(tmpname, "w")
79e268
tmpfile:write(script)
79e268
tmpfile:close()
79e268
ok, how, val = os.execute("/bin/bash " .. tmpname)
79e268
os.remove(tmpname)
79e268
if not (ok == 0) then
79e268
   error("Detected running glusterfs processes", ok)
79e268
end
79e268
e1d1f9
e1d1f9
21ab4e
%if ( 0%{!?_without_rdma:1} )
21ab4e
%pretrans rdma -p <lua>
cb8e9e
if not posix.access("/bin/bash", "x") then
cb8e9e
    -- initial installation, no shell, no running glusterfsd
cb8e9e
    return 0
cb8e9e
end
e1d1f9
cb8e9e
-- TODO: move this completely to a lua script
cb8e9e
-- For now, we write a temporary bash script and execute that.
e1d1f9
cb8e9e
script = [[#!/bin/sh
cb8e9e
pidof -c -o %PPID -x glusterfsd &>/dev/null
e1d1f9
cb8e9e
if [ $? -eq 0 ]; then
cb8e9e
   pushd . > /dev/null 2>&1
cb8e9e
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
cb8e9e
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
cb8e9e
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
cb8e9e
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
cb8e9e
          exit 1;
cb8e9e
       fi
cb8e9e
   done
cb8e9e
cb8e9e
   popd > /dev/null 2>&1
cb8e9e
   exit 1;
cb8e9e
fi
cb8e9e
]]
cb8e9e
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
cb8e9e
tmpfile = io.open(tmpname, "w")
cb8e9e
tmpfile:write(script)
cb8e9e
tmpfile:close()
cb8e9e
ok, how, val = os.execute("/bin/bash " .. tmpname)
cb8e9e
os.remove(tmpname)
cb8e9e
if not (ok == 0) then
cb8e9e
   error("Detected running glusterfs processes", ok)
cb8e9e
end
21ab4e
%endif
e1d1f9
e1d1f9
473043
21ab4e
%if ( 0%{!?_without_ocf:1} )
21ab4e
%pretrans resource-agents -p <lua>
cb8e9e
if not posix.access("/bin/bash", "x") then
cb8e9e
    -- initial installation, no shell, no running glusterfsd
cb8e9e
    return 0
cb8e9e
end
473043
cb8e9e
-- TODO: move this completely to a lua script
cb8e9e
-- For now, we write a temporary bash script and execute that.
473043
cb8e9e
script = [[#!/bin/sh
cb8e9e
pidof -c -o %PPID -x glusterfsd &>/dev/null
473043
cb8e9e
if [ $? -eq 0 ]; then
cb8e9e
   pushd . > /dev/null 2>&1
cb8e9e
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
cb8e9e
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
cb8e9e
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
cb8e9e
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
cb8e9e
          exit 1;
cb8e9e
       fi
cb8e9e
   done
473043
cb8e9e
   popd > /dev/null 2>&1
cb8e9e
   exit 1;
cb8e9e
fi
cb8e9e
]]
473043
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
cb8e9e
tmpfile = io.open(tmpname, "w")
cb8e9e
tmpfile:write(script)
cb8e9e
tmpfile:close()
cb8e9e
ok, how, val = os.execute("/bin/bash " .. tmpname)
cb8e9e
os.remove(tmpname)
cb8e9e
if not (ok == 0) then
cb8e9e
   error("Detected running glusterfs processes", ok)
cb8e9e
end
cb8e9e
%endif
473043
473043
473043
21ab4e
%pretrans server -p <lua>
cb8e9e
if not posix.access("/bin/bash", "x") then
cb8e9e
    -- initial installation, no shell, no running glusterfsd
cb8e9e
    return 0
cb8e9e
end
473043
cb8e9e
-- TODO: move this completely to a lua script
cb8e9e
-- For now, we write a temporary bash script and execute that.
473043
cb8e9e
script = [[#!/bin/sh
cb8e9e
pidof -c -o %PPID -x glusterfsd &>/dev/null
473043
cb8e9e
if [ $? -eq 0 ]; then
cb8e9e
   pushd . > /dev/null 2>&1
cb8e9e
   for volume in /var/lib/glusterd/vols/*; do cd $volume;
cb8e9e
       vol_type=`grep '^type=' info | awk -F'=' '{print $2}'`
cb8e9e
       volume_started=`grep '^status=' info | awk -F'=' '{print $2}'`
cb8e9e
       if [ $vol_type -eq 0 ] && [ $volume_started -eq 1 ] ; then
cb8e9e
          exit 1;
cb8e9e
       fi
cb8e9e
   done
473043
cb8e9e
   popd > /dev/null 2>&1
cb8e9e
   exit 1;
cb8e9e
fi
cb8e9e
]]
473043
3604df
-- Since we run pretrans scripts only for RPMs built for a server build,
3604df
-- we can now use os.tmpname() since it is available on RHEL6 and later
3604df
-- platforms which are server platforms.
3604df
tmpname = os.tmpname()
cb8e9e
tmpfile = io.open(tmpname, "w")
cb8e9e
tmpfile:write(script)
cb8e9e
tmpfile:close()
cb8e9e
ok, how, val = os.execute("/bin/bash " .. tmpname)
cb8e9e
os.remove(tmpname)
cb8e9e
if not (ok == 0) then
cb8e9e
   error("Detected running glusterfs processes", ok)
cb8e9e
end
473043
21ab4e
%posttrans server
21ab4e
pidof -c -o %PPID -x glusterd &> /dev/null
21ab4e
if [ $? -eq 0 ]; then
21ab4e
    kill -9 `pgrep -f gsyncd.py` &> /dev/null
473043
21ab4e
    killall --wait -SIGTERM glusterd &> /dev/null
473043
21ab4e
    if [ "$?" != "0" ]; then
21ab4e
        echo "killall failed while killing glusterd"
21ab4e
    fi
473043
21ab4e
    glusterd --xlator-option *.upgrade=on -N
473043
21ab4e
    #Cleaning leftover glusterd socket file which is created by glusterd in
21ab4e
    #rpm_script_t context.
21ab4e
    rm -rf /var/run/glusterd.socket
473043
21ab4e
    # glusterd _was_ running, we killed it, it exited after *.upgrade=on,
21ab4e
    # so start it again
21ab4e
    %_init_start glusterd
21ab4e
else
21ab4e
    glusterd --xlator-option *.upgrade=on -N
473043
21ab4e
    #Cleaning leftover glusterd socket file which is created by glusterd in
21ab4e
    #rpm_script_t context.
21ab4e
    rm -rf /var/run/glusterd.socket
cb8e9e
fi
473043
cb8e9e
%endif
473043
d1681e
# Events
d1681e
%if ( 0%{?_build_server} )
d1681e
%if ( 0%{!?_without_events:1} )
d1681e
%files events
d1681e
%config(noreplace) %{_sysconfdir}/glusterfs/eventsconfig.json
d1681e
%dir %{_sharedstatedir}/glusterd
d1681e
%dir %{_sharedstatedir}/glusterd/events
d1681e
%dir %{_libexecdir}/glusterfs
d1681e
     %{_libexecdir}/glusterfs/events
d1681e
     %{_libexecdir}/glusterfs/peer_eventsapi.py*
d1681e
%{_sbindir}/glustereventsd
d1681e
%{_sbindir}/gluster-eventsapi
d1681e
%{_datadir}/glusterfs/scripts/eventsdash.py*
d1681e
%if ( 0%{?_with_systemd:1} )
d1681e
%{_unitdir}/glustereventsd.service
d1681e
%else
d1681e
%{_sysconfdir}/init.d/glustereventsd
d1681e
%endif
d1681e
%endif
d1681e
%endif
21ab4e
d1681e
%changelog
48e6c8
* Tue Oct 30 2018 CentOS Sources <bugs@centos.org> - 3.12.2-18.el7.centos
48e6c8
- remove vendor and/or packager lines
48e6c8
d1681e
* Mon Aug 27 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-18
d1681e
- fixes bugs bz#1524336 bz#1622029 bz#1622452
d1681e
d1681e
* Thu Aug 23 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-17
d1681e
- fixes bugs bz#1615578 bz#1619416 bz#1619538 bz#1620469 bz#1620765
d1681e
d1681e
* Tue Aug 14 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-16
d1681e
- fixes bugs bz#1569657 bz#1608352 bz#1609163 bz#1609724 bz#1610825 
d1681e
  bz#1611151 bz#1612098 bz#1615338 bz#1615440
d1681e
d1681e
* Fri Jul 27 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-15
d1681e
- fixes bugs bz#1589279 bz#1598384 bz#1599362 bz#1599998 bz#1600790 
d1681e
  bz#1601331 bz#1603103
d1681e
d1681e
* Wed Jul 18 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-14
d1681e
- fixes bugs bz#1547903 bz#1566336 bz#1568896 bz#1578716 bz#1581047 
d1681e
  bz#1581231 bz#1582066 bz#1593865 bz#1597506 bz#1597511 bz#1597654 bz#1597768 
d1681e
  bz#1598105 bz#1598356 bz#1599037 bz#1599823 bz#1600057 bz#1601314
d1681e
d1681e
* Thu Jun 28 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-13
d1681e
- fixes bugs bz#1493085 bz#1518710 bz#1554255 bz#1558948 bz#1558989 
d1681e
  bz#1559452 bz#1567001 bz#1569312 bz#1569951 bz#1575539 bz#1575557 bz#1577051 
d1681e
  bz#1580120 bz#1581184 bz#1581553 bz#1581647 bz#1582119 bz#1582129 bz#1582417 
d1681e
  bz#1583047 bz#1588408 bz#1592666 bz#1594658
d1681e
d1681e
* Thu May 24 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-12
d1681e
- fixes bugs bz#1558989 bz#1580344 bz#1581057 bz#1581219
d1681e
d1681e
* Thu May 17 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-11
d1681e
- fixes bugs bz#1558989 bz#1575555 bz#1578647
d1681e
d1681e
* Tue May 15 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-10
d1681e
- fixes bugs bz#1488120 bz#1565577 bz#1568297 bz#1570586 bz#1572043 
d1681e
  bz#1572075 bz#1575840 bz#1575877
d1681e
d1681e
* Wed May 09 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-9
d1681e
- fixes bugs bz#1546717 bz#1557551 bz#1558948 bz#1561999 bz#1563804 
d1681e
  bz#1565015 bz#1565119 bz#1565399 bz#1565577 bz#1567100 bz#1567899 bz#1568374 
d1681e
  bz#1568969 bz#1569490 bz#1570514 bz#1570541 bz#1570582 bz#1571645 bz#1572087 
d1681e
  bz#1572585 bz#1575895
d1681e
d1681e
* Fri Apr 20 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-8
d1681e
- fixes bugs bz#1466129 bz#1475779 bz#1523216 bz#1535281 bz#1546941 
d1681e
  bz#1550315 bz#1550991 bz#1553677 bz#1554291 bz#1559452 bz#1560955 bz#1562744 
d1681e
  bz#1563692 bz#1565962 bz#1567110 bz#1569457
d1681e
d1681e
* Wed Apr 04 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-7
d1681e
- fixes bugs bz#958062 bz#1186664 bz#1226874 bz#1446046 bz#1529451 bz#1550315 
d1681e
  bz#1557365 bz#1559884 bz#1561733
d1681e
d1681e
* Mon Mar 26 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-6
d1681e
- fixes bugs bz#1491785 bz#1518710 bz#1523599 bz#1528733 bz#1550474 
d1681e
  bz#1550982 bz#1551186 bz#1552360 bz#1552414 bz#1552425 bz#1554255 bz#1554905 
d1681e
  bz#1555261 bz#1556895 bz#1557297 bz#1559084 bz#1559788
d1681e
d1681e
* Wed Mar 07 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-5
d1681e
- fixes bugs bz#1378371 bz#1384983 bz#1472445 bz#1493085 bz#1508999 
d1681e
  bz#1516638 bz#1518260 bz#1529072 bz#1530519 bz#1537357 bz#1540908 bz#1541122 
d1681e
  bz#1541932 bz#1543068 bz#1544382 bz#1544852 bz#1545570 bz#1546075 bz#1546945 
d1681e
  bz#1546960 bz#1547012 bz#1549497
d1681e
d1681e
* Mon Feb 12 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-4
d1681e
- fixes bugs bz#1446125 bz#1467536 bz#1530146 bz#1540600 bz#1540664 
d1681e
  bz#1540961 bz#1541830 bz#1543296
d1681e
d1681e
* Mon Feb 05 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-3
d1681e
- fixes bugs bz#1446125 bz#1463592 bz#1516249 bz#1517463 bz#1527309 
d1681e
  bz#1530325 bz#1531041 bz#1539699 bz#1540011
d1681e
d1681e
* Wed Jan 17 2018 Milind Changire <mchangir@redhat.com> - 3.12.2-2
d1681e
- fixes bugs bz#1264911 bz#1277924 bz#1286820 bz#1360331 bz#1401969 
d1681e
  bz#1410719 bz#1419438 bz#1426042 bz#1444820 bz#1459101 bz#1464150 bz#1464350 
d1681e
  bz#1466122 bz#1466129 bz#1467903 bz#1468972 bz#1476876 bz#1484446 bz#1492591 
d1681e
  bz#1498391 bz#1498730 bz#1499865 bz#1500704 bz#1501345 bz#1505570 bz#1507361 
d1681e
  bz#1507394 bz#1509102 bz#1509191 bz#1509810 bz#1509833 bz#1511766 bz#1512470 
d1681e
  bz#1512496 bz#1512963 bz#1515051 bz#1519076 bz#1519740 bz#1534253 bz#1534530
d1681e
d1681e
* Wed Nov 15 2017 Milind Changire <mchangir@redhat.com> - 3.12.2-1
d1681e
- rebase to upstream glusterfs at v3.12.2
d1681e
- fixes bugs bz#1442983 bz#1474745 bz#1503244 bz#1505363 bz#1509102
12a457