From patchwork Sun Feb 6 21:18:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josselin Poiret X-Patchwork-Id: 604 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C4F7C27BBE9; Sun, 6 Feb 2022 21:19:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 04F3127BBEA for ; Sun, 6 Feb 2022 21:19:18 +0000 (GMT) Received: from localhost ([::1]:51838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGowH-00075d-5p for patchwork@mira.cbaines.net; Sun, 06 Feb 2022 16:19:17 -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 Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches X-Patchwork-Original-From: Josselin Poiret via Guix-patches via From: Josselin Poiret X-getmail-retrieved-from-mailbox: Patches 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(-)