From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IODIBAOutl6hPwAA0tVLHw (envelope-from ) for ; Sat, 09 May 2020 13:20:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6IIdCRCutl6reAAAB5/wlQ (envelope-from ) for ; Sat, 09 May 2020 13:20:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B8F2F940448 for ; Sat, 9 May 2020 13:20:13 +0000 (UTC) Received: from localhost ([::1]:58904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXPOn-000583-TP for larch@yhetil.org; Sat, 09 May 2020 09:20:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXPOc-00057h-WB for guix-patches@gnu.org; Sat, 09 May 2020 09:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXPOc-0002QJ-N0 for guix-patches@gnu.org; Sat, 09 May 2020 09:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXPOc-0007MM-Hx for guix-patches@gnu.org; Sat, 09 May 2020 09:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41149] [PATCH] Add cachefilesd Resent-From: Jean-Baptiste Note Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 May 2020 13:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41149 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41149@debbugs.gnu.org X-Debbugs-Original-To: guixpatch Received: via spool by submit@debbugs.gnu.org id=B.158903035928199 (code B ref -1); Sat, 09 May 2020 13:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2020 13:19:19 +0000 Received: from localhost ([127.0.0.1]:46951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXPNu-0007Kl-Vq for submit@debbugs.gnu.org; Sat, 09 May 2020 09:19:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:35590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXPNt-0007Kc-HP for submit@debbugs.gnu.org; Sat, 09 May 2020 09:19:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXPNt-0004xB-C7 for guix-patches@gnu.org; Sat, 09 May 2020 09:19:17 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:37205) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXPNr-0008SL-EO for guix-patches@gnu.org; Sat, 09 May 2020 09:19:16 -0400 Received: by mail-wr1-x442.google.com with SMTP id k1so5160032wrx.4 for ; Sat, 09 May 2020 06:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:user-agent:mime-version; bh=179ugGL+VymLDhoGnD/+gGHZxERZGop2TIvyEsBTe80=; b=T3qH/unl25l0AMR8PoyyAmAZ7Lt4tgATpeQDKMXG6h4iN4avy/o/k2eA6J899/x8hx 7F7sQ7ykN4C/ARPL7yNimtjr63CoZQulTqE3GVfDCM/Cn8Fh85MNOOl52MTFQWpAUvEK G3B4TumoZK9K5N0C6M3SFKra4Q+UIQhGoxzAOrxnv2pr6Pb5VhfKkKmztFlUXtB2BjZS nNLyvfRB005ItdSHE7OhTmi82HfaRwlJXWD4g5HhhztZ7GwbgAB1p7q4aKffMQjujxu+ OkD8/pBbhBnAxrhWWyFZveBOt0L2OXmbwniNAiFvXtzxubRf3B5R9I1abpq9F50PD2gq 688w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :user-agent:mime-version; bh=179ugGL+VymLDhoGnD/+gGHZxERZGop2TIvyEsBTe80=; b=hm63s+dJdGXHCqMqXqx/QtP2775BvdIXzPRqlVFepOHBBdYgPi9fvBhjEmkHtPAASM ejZa4K4dmYDQBXpIyzFQob8Tem/3XmBKnwADh0JAP5QDiBiOurAuaPLxLCaOKNGnBn3s C2tpWf3dWWs9KVqmz1bqv+6WpMZJlEHT75Yg1uBKb07nx6UjGDBVgX4sKW6EwyqDNM1N G9r6hOEBx9lsrlpIPbJ1bOgeIvyh8LycR6eiMK0jT7z2jwoshI3rSVF34hyWmb9x5SYs 3M5roMgj4qT108+TLWL/G5Ngu35x7dLgP8QihjQiV19Jv8v4szsRqKz034T2undToNwH +wyQ== X-Gm-Message-State: AGi0PuaY3kgfOB/i6Xy41MROp0IIk2RRHsSNaqMCJb/mgYYs6LVRz7th vWcCC41AUpXtUpUNCAE67fo9kJ1vmeA= X-Google-Smtp-Source: APiQypLwNuADEczrG9FB+sPwQaMto1WnQBApE0rgYU0vOkA6QnFguFFOtKjoGdITF1XUt6r6MSEBgw== X-Received: by 2002:adf:b786:: with SMTP id s6mr8258197wre.287.1589030352415; Sat, 09 May 2020 06:19:12 -0700 (PDT) Received: from guixrules ([2a01:e35:2e0b:a6b0:e2ce:c3ff:fe74:cec8]) by smtp.gmail.com with ESMTPSA id f7sm7626623wrt.10.2020.05.09.06.19.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2020 06:19:11 -0700 (PDT) From: Jean-Baptiste Note Date: Sat, 09 May 2020 13:19:04 +0000 Message-ID: <87eert6ybb.fsf@m4x.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::442; envelope-from=jbnote@gmail.com; helo=mail-wr1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 1.2 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.8 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 X-Spam-Score: -0.61 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=T3qH/unl; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Scan-Result: default: False [-0.61 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.54048581235946]; MX_INVALID(1.00)[cached]; DWL_DNSWL_BLOCKED(0.00)[209.51.188.17:from]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.09), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DKIM_TRACE(0.00)[gmail.com:-]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+,4:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[jean-baptiste.note@m4x.org,guix-patches-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[m4x.org:email]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain,text/x-patch]; DMARC_NA(0.00)[m4x.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; RCVD_COUNT_SEVEN(0.00)[11]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: vjUWo/B4PW+A --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Dear guix maintainers, Please find attached a patch to add a package for the cachefilesd daemon, mostly used for read caching of NFS data. I've put in into linux.scm as it's tightly coupled to the fscache linux module and is being developed on git.kernel.org. There's a lint warning for Software Heritage; however i've followed the convention of using snapshot tarballs from kernel.org (we could also directly go through git, but this seems less common). A service will follow as soon as I understand how to correctly write one. Kind regards, Jean-Baptiste --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-cachefilesd.patch Content-Transfer-Encoding: quoted-printable From=2082a2807bd06abf88e8d01272e72635df9a077132 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Note Date: Fri, 8 May 2020 20:26:02 +0000 Subject: [PATCH] gnu: Add cachefilesd. * gnu/packages/linux.scm (cachefilesd): New public variable. =2D-- gnu/packages/linux.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 2d31444ea6..418b868698 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -6802,3 +6802,38 @@ utilities. Using @code{kexec}, it is possible to bo= ot directly into a new kernel from the context of an already-running kernel, bypassing the normal system boot process.") (license license:gpl2))) + +(define-public cachefilesd + (package + (name "cachefilesd") + (version "0.10.10") + (source (origin + (method url-fetch) + (uri (string-append + "https://git.kernel.org/pub/scm/linux/kernel/git/dhowe= lls" + "/cachefilesd.git/snapshot/cachefilesd-" + version ".tar.gz")) + (sha256 + (base32 + "0g40ljjnn3wzh9gp6il21c95f977298qrrkrxfnwfl3k3asfmnbi")))) + (build-system gnu-build-system) + (outputs '("out")) + (arguments + `(#:tests? #f ; there are no tests + ; we emulate PREFIX with available variables + #:make-flags (let ((pfxdir (lambda (var dir) + (string-append var "=3D" %output "/" d= ir)))) + (list "CC=3Dgcc" + (pfxdir "SBINDIR" "sbin/") + (pfxdir "ETCDIR" "etc/") + (pfxdir "MANDIR" "share/man/"))) + #:phases (modify-phases %standard-phases (delete 'configure)))) + (home-page "https://people.redhat.com/~dhowells/cachefs/") + (synopsis "Backend daemon for the linux fscache") + (description "cachefilesd is a userspace daemon that implements the on= ly +cache backend currently available for FS-Cache, the linux caching system f= or +network filesystems (such as NFS). It does the real work of caching by us= ing +files in a directory nominated by the administrator to store the data give= n to +it. The contents of the cache, which should be stored locally, are persis= tent +over reboots.") + (license license:gpl2+))) =2D-=20 2.26.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEPxcq3dp4FVY5UpckkC0pVsuz75YFAl62rcgACgkQkC0pVsuz 75a2yg//eAnEiEqdjsmGZ3wZvx4EcpkWcvD9PgYImIlCCnktQXp/zNwWTXOo/FqB rkOZtiSa8pL32Bt/yrQjgQ3yjO5dU8IslgcW6Rfl5u6JpV0Tkr3XNQ1aA4NGGA+e gszlHY4BETTnp4bdjjyauSZCA6/LISqYmGpNsawVixfTUsGMIdRiRXQtWDMX0Ln0 VP7tm4NTp8V69zTbkKAjRF4ebA7EoajVpk/sbzE1XfCx4/OqroStcN5S7bG/C/sy o/A98Y4va0ubeClSrHSvF66fsXXEgtFoSB7336979AgDWQSK1dPWUbZ8er70LMW+ 4g42t4vOJYSzm73IsHjgMddWZKf3S6nBSXjSTwneolDDMuodTqjSqxCJ9Fe863jb qXCS3N0HkO40iNf6qiuoj0O4yi5mrkJNeQ+FcWoEOYfyAYycKLVLHG/DL+SBnTgB 5o2UL3cHwo/SdksE7wpwDtobGp4QaH9btP500+yWVgQfVxaFoUd+VnAQQhfNEbIm v4901h4RUuylB+MyrttPlorgkb3SOYrv+S4z9a7KusgNnCDZdXw/qjzLjzcDZZPJ kthOqq8pbGXpuk/RnopECxnugjQdp5LHQMrcTa9O1/hnJpwNZJInVwGb09gy5ycT DsawKYXe6hGBsNZqaJxwsczUHDJoA4Q0uy1BIjh+8+zLu4mnEf0= =ASy0 -----END PGP SIGNATURE----- --==-=-=--