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 ms0.migadu.com with LMTPS id iPR3Gh/jwWH+YQAAgWs5BA (envelope-from ) for ; Tue, 21 Dec 2021 15:22:23 +0100 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 OE4iFh/jwWFcfQAAB5/wlQ (envelope-from ) for ; Tue, 21 Dec 2021 14:22:23 +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 33DE2354AA for ; Tue, 21 Dec 2021 15:22:23 +0100 (CET) Received: from localhost ([::1]:45854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzg22-0002RV-DY for larch@yhetil.org; Tue, 21 Dec 2021 09:22:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzfzo-0007mN-18 for guix-patches@gnu.org; Tue, 21 Dec 2021 09:20:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41251) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzfzm-0008FY-OZ for guix-patches@gnu.org; Tue, 21 Dec 2021 09:20:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzfzm-0005W7-EY for guix-patches@gnu.org; Tue, 21 Dec 2021 09:20:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52703] [PATCH 0/2] Improving rsync-service-type Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52703 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52703@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164009635121126 (code B ref -1); Tue, 21 Dec 2021 14:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Dec 2021 14:19:11 +0000 Received: from localhost ([127.0.0.1]:52797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzfyx-0005Ug-Jz for submit@debbugs.gnu.org; Tue, 21 Dec 2021 09:19:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:40304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzfyw-0005UW-J5 for submit@debbugs.gnu.org; Tue, 21 Dec 2021 09:19:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzfyv-0005qB-8m for guix-patches@gnu.org; Tue, 21 Dec 2021 09:19:10 -0500 Received: from [2001:470:142:3::e] (port=50594 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzfyu-00087D-N8; Tue, 21 Dec 2021 09:19:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=WQbxDS/Fk3C/oK/rbUZ3eZsmOLonjUqeqiTFRVyIN1w=; b=NRH/awCydaPvhN W6VHaisWH0AmUu5CGdBJZv/OjZgSsZdOt+zUNItfDah40I135H4zVMO5FLjjzMg3/N3sRjHqiXogj f/d9/TNevIH0sGLlcvWufzUBxSXrHVi0IPxMDZAWBsaddrTDDq5g2SLSJ+n2VZwREbNcq0lgzQqTd deQJ/CtaDwbnU+oxwBjLnhrWaMk81oHHTta4PN9tA4jFesY0UoRavpTuqUksJ9ioiLOblunbGkQMG SkAi75MwIGPslhmLeiBE1b/P81qh5Rx1I7ugJLgaWc6U+cstfiSIqaX75a9OPxCDOOxEGAAQP2ZVD L5wTuRxn9LmeaapkMk6w==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=35166 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzfyu-0005Mv-Ck; Tue, 21 Dec 2021 09:19:08 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 21 Dec 2021 15:18:58 +0100 Message-Id: <20211221141858.3668-1-ludo@gnu.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 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: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1640096543; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WQbxDS/Fk3C/oK/rbUZ3eZsmOLonjUqeqiTFRVyIN1w=; b=a8V5GXWwiczTYLeXGOYS2dqWLJiFtgKOabQRlV/1E807Hw6uS+F0ZEL+dWkynmXjWSzBx/ jnzh/mcoTMzRUqZQBdVV932Pzoqr7dNqRsQiNAnSOdMPjJFJ3OZDUP+5D7XdZiJLcA+RDY QaN4SgqJ4BgSTBUiNj2Yz6PkOvXDcTFcw6lzRUhTb7FFhG87zbRzIFl5siLec+XViYF60+ T/Y+6OIFrQ42KiWNRiWK4aWVul1Edvh79HLB5SM0Q128HGSvfIIRgS/3lRQrysaxrVrAUS 6SVKdSWLgDGgj9QReM6/vgHqqgCqHhZUwi3I3ONFxe8cD4ikw5DXA1XiQ/0dzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640096543; a=rsa-sha256; cv=none; b=gGkHTbC/AF7mE0L5cT2Jj3c4/7yMJ0lpWNzNnPUu/x8J7LBqSJu7dTYQxCzbmS+KvpuXtE X2LtsNbmnQQCBUDUgsg8Z0GJrGMvngk+l/ZbtPW66etaR4D/BF+nXYLYKzPXHk38XBbuk4 wzS5dX459axwBvjThVVvJdxvdR4DF1ZaIKdDLP5os+eXRVaZD8uzwbIRj3sEeuDQhU/C1+ ZfuAHop+Or2tGfEMCcdlyEbqALoMBJyBFZfJPtG6biR7bBU6fhFNloYhmRAIYb2ZMgl5I9 gYP+5jw3sNgOfNIdUvyKj/bZaGZx1W57cOX5rtz6k8AvFsKc+uww4tJYUDexMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="NRH/awCy"; 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.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="NRH/awCy"; 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: 33DE2354AA X-Spam-Score: -3.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: OQatBHC3xND1 Hello Guix! While fiddling around for the infrastructure hackathon, I found that the rsync service was a bit too limited: it would only let you export a single directory. These patches extend it so that users can specify several “modules”, each of which exports one directory and has its own properties (read-only, chroot, timeout, etc.). Backwards compatibility is maintained. Thoughts? Ludo’. Ludovic Courtès (2): services: rsync: Allow configuring several rsync "modules". tests: rsync: Define several modules. doc/guix.texi | 71 ++++++++++++----- gnu/services/rsync.scm | 170 +++++++++++++++++++++++++++++------------ gnu/tests/rsync.scm | 40 +++++++++- 3 files changed, 213 insertions(+), 68 deletions(-) -- 2.33.0