From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ADxsFtjCkmHMWwEAgWs5BA (envelope-from ) for ; Mon, 15 Nov 2021 21:28:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iCsNEtjCkmHAfAAAbx9fmQ (envelope-from ) for ; Mon, 15 Nov 2021 20:28:08 +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 DEB71348A4 for ; Mon, 15 Nov 2021 21:28:07 +0100 (CET) Received: from localhost ([::1]:57674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmiaE-0007fL-W8 for larch@yhetil.org; Mon, 15 Nov 2021 15:28:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmiaA-0007ex-FT for guix-patches@gnu.org; Mon, 15 Nov 2021 15:28:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmiaA-00036q-7d for guix-patches@gnu.org; Mon, 15 Nov 2021 15:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmiaA-0008Vd-3r for guix-patches@gnu.org; Mon, 15 Nov 2021 15:28:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51346] [PATCH v3 0/5] Rework swap device to add dependencies and flags Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Nov 2021 20:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51346 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , Tobias Geerinckx-Rice , 51346@debbugs.gnu.org Received: via spool by 51346-submit@debbugs.gnu.org id=B51346.163700803732590 (code B ref 51346); Mon, 15 Nov 2021 20:28:02 +0000 Received: (at 51346) by debbugs.gnu.org; 15 Nov 2021 20:27:17 +0000 Received: from localhost ([127.0.0.1]:56268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmiZQ-0008TT-Lq for submit@debbugs.gnu.org; Mon, 15 Nov 2021 15:27:17 -0500 Received: from jpoiret.xyz ([206.189.101.64]:34638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmiZO-0008TB-Ki for 51346@debbugs.gnu.org; Mon, 15 Nov 2021 15:27:15 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id EC3B5184B88; Mon, 15 Nov 2021 20:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1637008033; 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: in-reply-to:in-reply-to:references:references; bh=kDU0e5xGxcuQE2tMMKwxkJx2FP1sP1FJDslz13p8sDM=; b=cgrRaqn6QO6vXy6Pv8Vv7/ZXgHqhQuCFI6N4QUN5Hd3hWUeQoxYrifh/OjAG4+L/k4Gsix hGAXlG7hOIbh1z/1dKDhL5dWcX/9bDwKbEnFOA1ikcY+JPqMTY9naxRlcBU9bri68rdzZV wvFe1MUksUgTPwd14eOFJ+tMfuGXrDphF7uQdHoRxSXgpS6ic1RkLf/6FqpuNwVst7Apaa XlmnnRiDJ3Px67WXxxC/oVCUVoyiKz2SjvJswQv74IMFZb0nYnp86pxJ2DOnq5i9B5OjVh UnD4JLLQzmBaYIx71HCAO+RvapgL4I3W//B5eaMBsgvUJtlSuhJ/v7Z1TtVYsw== Date: Mon, 15 Nov 2021 20:26:26 +0000 Message-Id: <20211115202631.6032-1-dev@jpoiret.xyz> In-Reply-To: <87y25p65on.fsf_-_@gnu.org> References: <87y25p65on.fsf_-_@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++ 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637008088; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kDU0e5xGxcuQE2tMMKwxkJx2FP1sP1FJDslz13p8sDM=; b=KY5VEkljuQzSykCbrgHgg5gWQr68e5KsnnLwT6gZ9QwnnGHpLuboxfIqLqmFuoU9YanpHs d+N8oh9bTn9LI4uvkvXX2KvIowYPqmn/ssgLDtDn7OU4nKoNII+++zMI7mOydWgQaOQtyp 43yRo5eZIPaxUWc/TtjIfLwP+3U8/2o5FcwZapKPgj2tRK/fnDv7gk2z/RBJpBWqz8y52n 8ZrK+3yvlWNG3LMSZ//K1w7JFoBWfRVFeyM+G+yyF7ELS3Bcfuy6yS0B9owje3QKY1my2i CyQWessM23gwAJFk/fVOvlidYl2hD+nWcgI/TCIJbZiVX+XLGlH6/fJQBfC4+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637008088; a=rsa-sha256; cv=none; b=J7XRvr7TozI1CjYyDAfOKpg70hZNdv8/WTr0q/7cv9wUsMMEYhshKDg12EyR87FwRPsYCu QVEY7bg9lJdkXALSRJs5XPifIHMdMcLXgUCVsqshwCkehjU151IAXvnTKJPY5Z7XmhhZZk HfMMXRATef6IVDBNyVCo2bp1Itg0Jd8PbJ/nwG25yYB3owq3dr+Vx+GJBfUfazA+Ro3WE5 mrtnIRarWU4ZY9hDH37Scp86+YH7L3RwErI4475IAlKz1eNxa/A9KSqRF2mVb16Q/4Q1aN W7AZbJDvNNyD2qkr8U2nnCELkrTauSIgC/7+JJ9A8Nulr6HXDof1RZQc++WhVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=cgrRaqn6; 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-Migadu-Spam-Score: 0.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=cgrRaqn6; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: DEB71348A4 X-Spam-Score: 0.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: ja4yOIvWA6pL Hello Tobias and Ludovic, Thanks for the review! Here is hopefully the last patchset, which addresses most of the issues. I decided not to merge the doc changes with the first commit as it also describes swap flags, but that's just a matter of taste I suppose. Moved the deprecation warning that I originally put in gnu/services/base.scm (swap-service) to a sanitizer of swap-devices in its own commit, although it only reports the location of the (operating-system) syntax use, not of the field itself (but that is what I also noticed for other deprecation warnings, alas). I marked the field as delayed, otherwise I was getting a lot of warnings while testing rather than the only one I'm getting now. Fixed the swap-device dependency filtering to silently ignore old-style values rather than erroring out. Overall, I cleaned up all the rogue TABs I had inserted! (setq-default indent-tabs-mode nil) for our Emacs readers at home. This should not happen any more as I have set whitespace-mode to an aggressive red highlighting for TAB characters. And finally, I changed the examples at the end to simply be @lisp blocks, outside of a table. Josselin Poiret (5): gnu: system: Rework swap space support, add dependencies. gnu: system: Warn about swap-devices format change gnu: system: Add swap flags. gnu: system: Filter out boot dependencies from swap-space. doc: Add new Swap Space section. doc/guix.texi | 147 +++++++++++++++++++++++-------- gnu/build/file-systems.scm | 36 +++++++- gnu/services/base.scm | 105 +++++++++++++++------- gnu/system.scm | 40 ++++++++- gnu/system/examples/desktop.tmpl | 7 +- gnu/system/file-systems.scm | 24 ++++- guix/build/syscalls.scm | 12 +++ 7 files changed, 294 insertions(+), 77 deletions(-) -- 2.33.1