-diff -ur glusterfs-10.5.orig/libglusterfs/src/gf-io-legacy.c glusterfs-10.5/libglusterfs/src/gf-io-legacy.c
---- glusterfs-10.5.orig/libglusterfs/src/gf-io-legacy.c 2023-11-14 15:03:34.000000000 +0000
-+++ glusterfs-10.5/libglusterfs/src/gf-io-legacy.c 2025-04-20 13:16:07.787544191 +0000
+diff -ur glusterfs-11.2.orig/libglusterfs/src/gf-io-legacy.c glusterfs-11.2/libglusterfs/src/gf-io-legacy.c
+--- glusterfs-11.2.orig/libglusterfs/src/gf-io-legacy.c 2025-07-02 15:34:01.000000000 +0200
++++ glusterfs-11.2/libglusterfs/src/gf-io-legacy.c 2025-08-13 16:32:36.737990754 +0200
@@ -45,7 +45,11 @@
{
uint64_t seq;
gf_io_cbk(NULL, seq, id, res);
}
-diff -ur glusterfs-10.5.orig/libglusterfs/src/gf-io-uring.c glusterfs-10.5/libglusterfs/src/gf-io-uring.c
---- glusterfs-10.5.orig/libglusterfs/src/gf-io-uring.c 2023-11-14 15:03:34.000000000 +0000
-+++ glusterfs-10.5/libglusterfs/src/gf-io-uring.c 2025-04-20 13:17:10.011727047 +0000
-@@ -668,7 +668,11 @@
+diff -ur glusterfs-11.2.orig/libglusterfs/src/gf-io-uring.c glusterfs-11.2/libglusterfs/src/gf-io-uring.c
+--- glusterfs-11.2.orig/libglusterfs/src/gf-io-uring.c 2025-07-02 15:34:01.000000000 +0200
++++ glusterfs-11.2/libglusterfs/src/gf-io-uring.c 2025-08-13 16:32:36.737990754 +0200
+@@ -665,7 +665,11 @@
idx = tail & gf_io_uring.sq.mask;
nr = gf_io_uring_sq_length(idx);
if (nr != 0) {
+#ifdef __LP64__
- nr = (uint32_t)uatomic_xchg(&gf_io_uring.sq.sqes[idx].__pad2[2], 0);
+ nr = (uint32_t)uatomic_xchg(&GF_IO_URING_SQE_COUNT(idx), 0);
+#else
-+ nr = (uint32_t)__atomic_exchange_n(&gf_io_uring.sq.sqes[idx].__pad2[2], 0, __ATOMIC_SEQ_CST);
++ nr = (uint32_t)__atomic_exchange_n(&GF_IO_URING_SQE_COUNT(idx), 0, __ATOMIC_SEQ_CST);
+#endif
}
return nr;
-diff -ur glusterfs-10.5.orig/libglusterfs/src/glusterfs/gf-io.h glusterfs-10.5/libglusterfs/src/glusterfs/gf-io.h
---- glusterfs-10.5.orig/libglusterfs/src/glusterfs/gf-io.h 2023-11-14 15:03:34.000000000 +0000
-+++ glusterfs-10.5/libglusterfs/src/glusterfs/gf-io.h 2025-04-20 13:16:07.787544191 +0000
+diff -ur glusterfs-11.2.orig/libglusterfs/src/glusterfs/gf-io.h glusterfs-11.2/libglusterfs/src/glusterfs/gf-io.h
+--- glusterfs-11.2.orig/libglusterfs/src/glusterfs/gf-io.h 2025-07-02 15:34:01.000000000 +0200
++++ glusterfs-11.2/libglusterfs/src/glusterfs/gf-io.h 2025-08-13 16:32:36.737990754 +0200
@@ -358,7 +358,11 @@
static inline uint64_t
gf_io_reserve(uint32_t nr)
Summary: Clustered File Storage that can scale to peta bytes
Summary(pl.UTF-8): Klastrowy system przechowywania plików skalujący się do petabajtów
Name: glusterfs
-Version: 10.5
-Release: 2
+Version: 11.2
+Release: 1
License: LGPL v3+ or GPL v2 (libraries), GPL v3+ (programs)
Group: Applications/System
-Source0: https://download.gluster.org/pub/gluster/glusterfs/10/%{version}/glusterfs-%{version}.tar.gz
-# Source0-md5: 8ac48f7b7f9afa0e5dfa9ad42589ee27
+Source0: https://github.com/gluster/glusterfs/archive/refs/tags/v%{version}.tar.gz
+# Source0-md5: 774b78c834e6160f86e01d97a95e7eb2
Source1: glusterfsd.init
Patch0: ssl_paths.patch
Patch1: ksh_getopts.patch
BuildRequires: acl-devel
BuildRequires: autoconf >= 2.50
BuildRequires: automake
+BuildRequires: bash-completion-devel >= 1:2.0
BuildRequires: bison
#BuildRequires: cmocka-devel >= 1.0.1 for unittest
BuildRequires: curl-devel
BuildRequires: libselinux-devel
BuildRequires: libtcmalloc-devel
BuildRequires: libtirpc-devel
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2
BuildRequires: liburing-devel
BuildRequires: libuuid-devel
BuildRequires: libxml2-devel >= 1:2.6.19
-BuildRequires: openssl-devel
+BuildRequires: openssl-devel >= 1.1
BuildRequires: pkgconfig
BuildRequires: python3 >= 1:3.2
BuildRequires: python3-devel >= 1:3.2
BuildRequires: readline-devel
BuildRequires: rpcsvc-proto
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.228
+BuildRequires: rpmbuild(macros) >= 1.673
BuildRequires: sed >= 4.0
BuildRequires: sqlite3-devel >= 3
BuildRequires: userspace-rcu-devel >= 0.8
%attr(755,root,root) %ghost %{_libdir}/libgfrpc.so.0
%attr(755,root,root) %{_libdir}/libgfxdr.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgfxdr.so.0
-%attr(755,root,root) %{_libdir}/libglusterd.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libglusterd.so.0
%attr(755,root,root) %{_libdir}/libglusterfs.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libglusterfs.so.0
%attr(755,root,root) %{_libdir}/libgfchangelog.so
%attr(755,root,root) %{_libdir}/libgfrpc.so
%attr(755,root,root) %{_libdir}/libgfxdr.so
-%attr(755,root,root) %{_libdir}/libglusterd.so
%attr(755,root,root) %{_libdir}/libglusterfs.so
%{_libdir}/libgfapi.la
%{_libdir}/libgfchangelog.la
%{_libdir}/libgfrpc.la
%{_libdir}/libgfxdr.la
-%{_libdir}/libglusterd.la
%{_libdir}/libglusterfs.la
%dir %{_includedir}/glusterfs
%{_includedir}/glusterfs/api
%{!?with_system_fuse:%attr(755,root,root) %{_bindir}/fusermount-glusterfs}
%attr(755,root,root) /sbin/mount.glusterfs
%attr(755,root,root) %{_sbindir}/gluster
+%{bash_compdir}/gluster.bash
%{_mandir}/man8/gluster.8*
%{_mandir}/man8/mount.glusterfs.8*
-diff -ur glusterfs-10.3.orig/rpc/rpc-transport/socket/src/socket.c glusterfs-10.3/rpc/rpc-transport/socket/src/socket.c
---- glusterfs-10.3.orig/rpc/rpc-transport/socket/src/socket.c 2022-09-20 12:24:29.656820924 +0200
-+++ glusterfs-10.3/rpc/rpc-transport/socket/src/socket.c 2023-02-15 16:02:26.665973455 +0100
-@@ -46,20 +46,12 @@
+diff -ur glusterfs-11.2.orig/rpc/rpc-transport/socket/src/socket.c glusterfs-11.2/rpc/rpc-transport/socket/src/socket.c
+--- glusterfs-11.2.orig/rpc/rpc-transport/socket/src/socket.c 2025-07-02 15:34:01.000000000 +0200
++++ glusterfs-11.2/rpc/rpc-transport/socket/src/socket.c 2025-08-13 16:30:04.433328554 +0200
+@@ -44,20 +44,12 @@
#define SSL_CRL_PATH_OPT "transport.socket.ssl-crl-path"
#define OWN_THREAD_OPT "transport.socket.own-thread"
+#define DEFAULT_CA_PATH "/etc/glusterfs/glusterfs.ca"
#define DEFAULT_VERIFY_DEPTH 1
-#endif
- #define DEFAULT_CIPHER_LIST "EECDH:EDH:HIGH:!3DES:!RC4:!DES:!MD5:!aNULL:!eNULL"
+ #define DEFAULT_CIPHER_LIST "AES128:EECDH:EDH:HIGH:!3DES:!RC4:!DES:!MD5:!aNULL:!eNULL"
-#define DEFAULT_DH_PARAM SSL_CERT_PATH "/dhparam.pem"
+#define DEFAULT_DH_PARAM "/etc/glusterfs/dhparam.pem"
#define DEFAULT_EC_CURVE "prime256v1"