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