[packages/cachefilesd] - updated to 0.10.10
qboosh
qboosh at pld-linux.org
Thu Apr 10 21:45:21 CEST 2025
commit 664735603dc1b2a12d48fb2638c4d9e81d686094
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Apr 10 21:38:57 2025 +0200
- updated to 0.10.10
cachefilesd-cpueating.patch | 51 ---------------------------------------------
cachefilesd.spec | 21 +++++++++++--------
2 files changed, 12 insertions(+), 60 deletions(-)
---
diff --git a/cachefilesd.spec b/cachefilesd.spec
index 5fe21b3..c90607d 100644
--- a/cachefilesd.spec
+++ b/cachefilesd.spec
@@ -1,14 +1,14 @@
Summary: CacheFiles user-space management daemon
+Summary(pl.UTF-8): Demon przestrzeni użytkownika zarządzający pamięcią podręczną plików
Name: cachefilesd
-Version: 0.10.5
-Release: 2
+Version: 0.10.10
+Release: 1
License: GPL v2
Group: Daemons
-Source0: http://people.redhat.com/dhowells/fscache/%{name}-%{version}.tar.bz2
-# Source0-md5: 9e85dd0ace346ff47e188ded8c05ab3b
+Source0: https://people.redhat.com/dhowells/fscache/%{name}-%{version}.tar.bz2
+# Source0-md5: b440010d63ab18eebec63fe0328cba05
Source1: %{name}.init
-Patch0: %{name}-cpueating.patch
-URL: http://people.redhat.com/~dhowells/fscache/
+URL: https://people.redhat.com/dhowells/fscache/
Requires(post,preun): /sbin/chkconfig
Requires(post,preun,postun): systemd-units >= 38
Requires: rc-scripts
@@ -21,9 +21,13 @@ The cachefilesd daemon manages the caching files and directory that
are that are used by network file systems such a AFS and NFS to do
persistent caching to the local disk.
+%description -l pl.UTF-8
+Demon cachefilesd zarządza pamięcią podręczną plików i katalogów,
+używaną przez sieciowe systemy plików, takie jak AFS i NFS do trwałego
+buforowania na dysku lokalnym.
+
%prep
%setup -q
-%patch0 -p1
%build
%{__make} all \
@@ -61,8 +65,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc README howto.txt selinux/move-cache.txt
-%doc selinux/*.fc selinux/*.if selinux/*.te
+%doc README howto.txt selinux
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachefilesd.conf
%attr(755,root,root) /sbin/cachefilesd
%{_mandir}/man5/cachefilesd.conf.5*
diff --git a/cachefilesd-cpueating.patch b/cachefilesd-cpueating.patch
deleted file mode 100644
index 940f3d5..0000000
--- a/cachefilesd-cpueating.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-; https://www.redhat.com/archives/linux-cachefs/2014-February/msg00001.html
-diff -urN cachefilesd-0.10.5.org/cachefilesd.c cachefilesd-0.10.5/cachefilesd.c
---- cachefilesd-0.10.5.org/cachefilesd.c 2011-12-06 14:38:00.000000000 +0100
-+++ cachefilesd-0.10.5/cachefilesd.c 2014-03-21 18:47:45.739197236 +0100
-@@ -98,6 +98,7 @@
- static int oldest_build = -1;
- static int oldest_ready = -1;
- static int ncullable = 0;
-+static int cull_delayed = 0;
-
-
- static const char *configfile = "/etc/cachefilesd.conf";
-@@ -244,6 +245,7 @@
- static void sigalrm(int sig)
- {
- jumpstart_scan = 1;
-+ cull_delayed = 0;
- }
-
- /*****************************************************************************/
-@@ -605,11 +607,11 @@
-
- /* sleep without racing on reap and cull with the signal
- * handlers */
-- if (!scan && !reap && !cull) {
-+ if (!scan && !reap && !(cull && !cull_delayed)) {
- if (sigprocmask(SIG_BLOCK, &sigs, &osigs) < 0)
- oserror("Unable to block signals");
-
-- if (!reap && !cull) {
-+ if (!reap && !stop && !jumpstart_scan) {
- if (ppoll(pollfds, 1, NULL, &osigs) < 0 &&
- errno != EINTR)
- oserror("Unable to suspend process");
-@@ -636,7 +638,7 @@
- if (cull) {
- if (oldest_ready >= 0)
- cull_objects();
-- else if (oldest_build < 0)
-+ else if (oldest_build < 0 && !cull_delayed)
- jumpstart_scan = 1;
- }
-
-@@ -1351,6 +1353,7 @@
-
- /* if nothing there, scan again in a short while */
- if (oldest_build < 0) {
-+ cull_delayed = 1;
- signal(SIGALRM, sigalrm);
- alarm(30);
- return;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cachefilesd.git/commitdiff/664735603dc1b2a12d48fb2638c4d9e81d686094
More information about the pld-cvs-commit
mailing list