[packages/ceph] - added fio patch, build fio-ceph-objectstore package
qboosh
qboosh at pld-linux.org
Sun May 31 10:05:24 CEST 2020
commit 79dc5cad72fde1e99e8b8ebbcb4e4c1d8c543444
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 31 10:06:07 2020 +0200
- added fio patch, build fio-ceph-objectstore package
ceph-fio.patch | 11 +++++++++++
ceph.spec | 25 +++++++++++++++++++++++++
2 files changed, 36 insertions(+)
---
diff --git a/ceph.spec b/ceph.spec
index 9546e61..8bd105b 100644
--- a/ceph.spec
+++ b/ceph.spec
@@ -50,6 +50,7 @@ Patch4: %{name}-types.patch
Patch5: %{name}-tcmalloc.patch
Patch6: %{name}-rocksdb.patch
Patch7: %{name}-fcgi.patch
+Patch8: %{name}-fio.patch
URL: https://ceph.io/
%{?with_accelio:BuildRequires: accelio-devel}
%{?with_babeltrace:BuildRequires: babeltrace-devel}
@@ -244,6 +245,22 @@ OCF Resource Agents for Ceph processes.
%description resource-agents -l pl.UTF-8
Agenci OCF do monitorowania procesów Cepha.
+%package -n fio-ceph-objectstore
+Summary: FIO engine module for Ceph ObjectStore
+Summary(pl.UTF-8): Moduł silnika FIO do używania Ceph ObjectStore
+Group: Libraries
+Requires: %{name}-libs = %{version}-%{release}
+%requires_ge_to fio fio-devel
+
+%description -n fio-ceph-objectstore
+This FIO engine allows you to mount and use a ceph object store
+directly, without having to build a ceph cluster or start any daemons.
+
+%description -n fio-ceph-objectstore -l pl.UTF-8
+Ten silnik FIO pozwala na bezpośrednie montowanie i używanie
+przestrzeni obiektów ceph, bez potrzeby budowania klastra ceph czy
+uruchamiania demonów.
+
%prep
%setup -q
%patch0 -p1
@@ -254,6 +271,7 @@ Agenci OCF do monitorowania procesów Cepha.
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
%{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \
src/{ceph-create-keys,ceph-rest-api,mount.fuse.ceph} \
@@ -662,3 +680,10 @@ fi
%defattr(644,root,root,755)
%dir %{_prefix}/lib/ocf/resource.d/ceph
%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd
+
+%if %{with fio}
+%files -n fio-ceph-objectstore
+%defattr(644,root,root,755)
+%doc src/test/fio/{README.md,ceph-*.conf,ceph-*.fio}
+%attr(755,root,root) %{_libdir}/libfio_ceph_objectstore.so
+%endif
diff --git a/ceph-fio.patch b/ceph-fio.patch
new file mode 100644
index 0000000..04bc8db
--- /dev/null
+++ b/ceph-fio.patch
@@ -0,0 +1,11 @@
+--- ceph-12.2.13/src/test/fio/fio_ceph_objectstore.cc.orig 2020-01-30 21:52:36.000000000 +0100
++++ ceph-12.2.13/src/test/fio/fio_ceph_objectstore.cc 2020-05-31 08:19:04.978377543 +0200
+@@ -340,7 +340,7 @@
+ }
+ };
+
+-int fio_ceph_os_queue(thread_data* td, io_u* u)
++fio_q_status fio_ceph_os_queue(thread_data* td, io_u* u)
+ {
+ fio_ro_check(td, u);
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ceph.git/commitdiff/79dc5cad72fde1e99e8b8ebbcb4e4c1d8c543444
More information about the pld-cvs-commit
mailing list