From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gMsbAsnuGmT0gQAASxT56A (envelope-from ) for ; Wed, 22 Mar 2023 13:04:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0BIHAsnuGmQhGwAAauVa8A (envelope-from ) for ; Wed, 22 Mar 2023 13:04:25 +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 AE674141E9 for ; Wed, 22 Mar 2023 13:04:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679486664; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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; bh=F+MCdfy5Luw/GlYxf2+sfwjYcCGNvipQCvmi8qZzo5c=; b=oIE16uDbUlsK6xAbhfrgL5OYG7I36rT463QBbVGM5w++xUMJ1bteWao+WnzPBt5SVb/8t6 oMBEMnseqzx+7Tvu+uj3cyZ68Wg3AoKzb8eu/Wxo/aWir/jDewHYnzxasNhirIf4UyPtuj dBN1TwPD4EyzbhD+SRCGQh/lcaByCD2uemIYEHntZ3Vpi/9JEfKo6qknB4t4b0jnoMdmWD IIr269mYfUUfbj7ej/weKwUbdPALvih8LAf+mH+11AF4tQm6YCjSS6Mh38LO1JEyvd7cXc K6miK20ee1dARhTKAdZqqw3+QUQnANZpsI5c8tsEkiwsoFlmOaiyCBgGl2lNMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679486664; a=rsa-sha256; cv=none; b=I6lucyz57Rezgv7feu1rgCkjubJ/nKzvrx2DSYiS6NpKWL4yLtHIcrdnUzdBMeOmnp+kQJ LIpElPYC8+Xymr9UGpfMHsAulxFqo0y2wyrQyTHymf2CbUODsVH4HgsyD+wIEdjES0UX5h 4yZOQTvqz+TIat6QPa/sxqIRbPGL7oGrdG3EYXUDHmGyzI+n2pO4UjSQ9u0KXSdKIVZ+4B 9F22dEb4gc3vWnDGxD3aO2ZNqkZnoWjujEXS8WTQMZWOPyFRoqKI0cg4osjyJo/BhHGolL NYk7oboGHkaagQQivTI0rKm2o5NPl8xW9QoJU0L88Fl2TdFMpaU7B+dQhWanXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pexCR-0001si-U1; Wed, 22 Mar 2023 08:04:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pexCH-0001ns-QQ for guix-patches@gnu.org; Wed, 22 Mar 2023 08:04:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pexCE-0004Pr-OF for guix-patches@gnu.org; Wed, 22 Mar 2023 08:04:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pexCE-0007eF-Jv for guix-patches@gnu.org; Wed, 22 Mar 2023 08:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58086] [PATCH] gnu: Add fstrim-service-type. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Mar 2023 12:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58086 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: iyzsong@envs.net Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 58086@debbugs.gnu.org, Maxim Cournoyer Received: via spool by 58086-submit@debbugs.gnu.org id=B58086.167948663629368 (code B ref 58086); Wed, 22 Mar 2023 12:04:02 +0000 Received: (at 58086) by debbugs.gnu.org; 22 Mar 2023 12:03:56 +0000 Received: from localhost ([127.0.0.1]:33706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pexC8-0007db-Dm for submit@debbugs.gnu.org; Wed, 22 Mar 2023 08:03:56 -0400 Received: from smtpm2.myservices.hosting ([185.26.105.233]:34810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pexC7-0007dU-2k for 58086@debbugs.gnu.org; Wed, 22 Mar 2023 08:03:55 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm2.myservices.hosting (Postfix) with ESMTP id 7068920F38; Wed, 22 Mar 2023 13:03:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 2775D800A3; Wed, 22 Mar 2023 13:03:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0LZ-bNZ6mPMW; Wed, 22 Mar 2023 13:03:49 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id BD0CB800A1; Wed, 22 Mar 2023 13:03:48 +0100 (CET) Message-ID: <1a1991d3-afc0-4e2b-50a4-dfad763907f7@makinata.eu> Date: Wed, 22 Mar 2023 12:03:44 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US References: <20220926072825.4689-1-iyzsong@envs.net> From: Bruno Victal In-Reply-To: <20220926072825.4689-1-iyzsong@envs.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: X-Migadu-Scanner: scn0.migadu.com List-Post: X-Migadu-Queue-Id: AE674141E9 X-Spam-Score: -1.75 X-Migadu-Spam-Score: -1.75 List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: wTR2E5B1y9/B Hi 宋文武, I didn't notice this patch and ended up reimplementing another fstrim-service-type at [1]. Where we differ in the implementations: * I didn't attempt to implement anacron capabilities, since I made the scheduling configurable. * Uses define-configuration which can embed documentation and generate it for the manual. * Slightly more “guix-y” style of configuration. [1]: Apologies for the duplicated effort! Cheers, Bruno