From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0ELIH087AGKdsQAAgWs5BA (envelope-from ) for ; Sun, 06 Feb 2022 22:19:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oK95GE87AGIDPAAAG6o9tA (envelope-from ) for ; Sun, 06 Feb 2022 22:19:11 +0100 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 2565038560 for ; Sun, 6 Feb 2022 22:19:11 +0100 (CET) Received: from localhost ([::1]:51838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGow9-00075d-R2 for larch@yhetil.org; Sun, 06 Feb 2022 16:19:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGow5-00074M-VZ for guix-patches@gnu.org; Sun, 06 Feb 2022 16:19:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGow2-0002xN-2I for guix-patches@gnu.org; Sun, 06 Feb 2022 16:19:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGow1-0005fi-Vk for guix-patches@gnu.org; Sun, 06 Feb 2022 16:19:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53826] [PATCH 0/2] Improve Swap Space examples Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Feb 2022 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53826 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53826@debbugs.gnu.org Cc: Josselin Poiret X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164418229621745 (code B ref -1); Sun, 06 Feb 2022 21:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2022 21:18:16 +0000 Received: from localhost ([127.0.0.1]:39954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGovH-0005ef-Nn for submit@debbugs.gnu.org; Sun, 06 Feb 2022 16:18:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:52682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGovG-0005eV-83 for submit@debbugs.gnu.org; Sun, 06 Feb 2022 16:18:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGovF-000672-UV for guix-patches@gnu.org; Sun, 06 Feb 2022 16:18:13 -0500 Received: from jpoiret.xyz ([206.189.101.64]:59932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGovE-0002ul-24 for guix-patches@gnu.org; Sun, 06 Feb 2022 16:18:13 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 3B31A184F28; Sun, 6 Feb 2022 21:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1644182290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2Klxt1gCj9tMI682NEZsTXpQKol/CPvHM8VcuzRazlY=; b=X+Zqd7mGE+3lkq8n2rzPm5S+qFM0zvby3HmyT1PgaK80n7iHrWCnPInhyWbrrxEOmR3zh5 TqO+blq9EWsGTurJy3PmgW7sXQwhwLhjUCv0N1HSVch/cpRJwYacOsgpMuME07FE0QUDXl 4+rKCRuf4xHZSyCo1fvaYJbpn4OdTxFvTY2Gk9Z1pRZURGmHxFpU1EaxvuTYci1pE+z2ac sOvpPc74E4no2IipnnPdn0W+407EvG8ecFL0sij/Ej2XoVJrOV8y1QT+oxX4+HRuP6jQ5X bWN7JKzubTjP2BtLvYNDiDzSM4VzcsmFOHMuJpYTY25I+KEM/qGSEMUytIegog== Date: Sun, 6 Feb 2022 22:18:03 +0100 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++ Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: 22 X-Spam_score: 2.2 X-Spam_bar: ++ X-Spam_report: (2.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.999, PDS_OTHER_BAD_TLD=1.772, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644182351; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2Klxt1gCj9tMI682NEZsTXpQKol/CPvHM8VcuzRazlY=; b=acL1lNeMajo/Xb7bqtW42U3VG9enUFArZte/SgRwD7I5p2iKgZEW0jAzUGDZ/2CatF3A29 t8gaWI+HNmUMRu/c7HC+3qb0SckwLfxQbESOTqQvursC+HIvz2poRyqpjJy3UfrdbSAl5U OEX14RvhKjCZ/Z6nad60nvmJJpqX4JfiKAkwfBDzuOMKLg+hKBqrGH5bPzTK2tNJSpWmyO p7sPHJ0bVB9lWmxCgfLxH7dqo+fEiUANKG1DFHQ8avwNJmJN6hSRYI6JdoSVAn48BUt4YZ MP7hX1Dg7s9HIGgluYJnsr3K3ImGlFe346n9WT2XUGci9T8T+lsG4NqzoenI4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644182351; a=rsa-sha256; cv=none; b=Y0FNLYMeWpv6pn192HH3ys/pSHtnRF5rohhkU8jCf9ayXgZQHp6NZglnrdqlumIzCeJ5Ei 0boJkZGVoUbVTQpc8gw+w3xXWL77RyiVKjSYGpzwSWUlEkybN7TOw+MEAFO7bmHn3a/oma wVDeSGDdAhX24vGVU1tMY7yqDpUb2nivjQRIB9HzDY3XpYOwfWGFaAdChv3v+nsKznVASc rW4SRi/7sar947CsQu6iWNpOr3zy2MxbPwQmQZ/8SLux/7Y8vl0ephkyz2AxMKTEthRH6v JDw52bVLB9O74uX4PdDRI2iMVNt5jcLwEj8ng97AK8wAa3kVEeoRi4nuUzRdcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=X+Zqd7mG; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=X+Zqd7mG; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2565038560 X-Spam-Score: -3.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: vvAVcB9oummp Hello, These two patches should help making swap space dependencies more manageable for people who aren't yet proficient enough in Guile. The first patch adds a simple predicate which can be used in conjunction with filter to select file systems with specific mount points, and the second refactors the examples to be more readily copy and pasted into the configuration file, also using the helper predicate. Best, Josselin Poiret (2): system: Add helper file-system-mount-point-predicate. doc: Clarify the Swap Space examples, and include an helper example. doc/guix.texi | 33 +++++++++++++++++++++++++-------- gnu/system/file-systems.scm | 7 +++++++ 2 files changed, 32 insertions(+), 8 deletions(-) -- 2.34.0