From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OKPQCLTeRmAUBAAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 02:34:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WERzBLTeRmCXFQAAbx9fmQ (envelope-from ) for ; Tue, 09 Mar 2021 02:34:28 +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 589B21F689 for ; Tue, 9 Mar 2021 03:34:27 +0100 (CET) Received: from localhost ([::1]:33598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJSCY-0000MC-HU for larch@yhetil.org; Mon, 08 Mar 2021 21:34:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJSCM-0000M5-Vj for guix-devel@gnu.org; Mon, 08 Mar 2021 21:34:14 -0500 Received: from mail4.protonmail.ch ([185.70.40.27]:39676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJSCK-0004UL-Ta for guix-devel@gnu.org; Mon, 08 Mar 2021 21:34:14 -0500 Date: Tue, 09 Mar 2021 02:34:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1615257243; bh=I2qidNVQI0F6KszY47rSgA65zkdIg6HjMVAvJ8JgmRg=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=EQU9za0Z5nPzGOF6Qyhmll8jGwgxCIb2MoDkvoQkxBWXsQtgwACF0PX14X17TnNp4 M9a9neJZA6yJeTOxGiuN3mz9Hg2xKWRTDzg5+/S0gfew7lqOL5w/Zmu17YRE0FID98 0JbUhUX3oQOIf78uU7ypHDpnu0vkmavdtFKXCPO0= To: =?utf-8?Q?Ludovic_Court=C3=A8s?= From: raid5atemyhomework Cc: "guix-devel@gnu.org" Subject: Re: ZFS on Guix, again Message-ID: <2mTds5w_-c4aAnpjo3gFGblmoaaU4lwSH2S5VFKq7VChTyUwA66FNn0FDaY1GQpcO8OXs8LBD_fb7xA-m09b70n2Ml8OT_C2IVL8aTX-lSM=@protonmail.com> In-Reply-To: <2U5o7PxT2-i2JvNcrWgH2vY8YDUJ3zkNybz0Hq4pYbYY1fzXjuOBoenrl145tLC4Yx_tphfUHbPBZQGOUR5hT6jp7m8vRn5HHGWFLvLtJPY=@protonmail.com> References: <87mtvweazb.fsf@gnu.org> <2U5o7PxT2-i2JvNcrWgH2vY8YDUJ3zkNybz0Hq4pYbYY1fzXjuOBoenrl145tLC4Yx_tphfUHbPBZQGOUR5hT6jp7m8vRn5HHGWFLvLtJPY=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.27; envelope-from=raid5atemyhomework@protonmail.com; helo=mail4.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: raid5atemyhomework Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615257267; 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-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=I2qidNVQI0F6KszY47rSgA65zkdIg6HjMVAvJ8JgmRg=; b=PfCmHeQPboITUnl8dDlTy2q5z0Eb2kkDH5FrxSi5oxiWp4N9i6+WdiyB7KCx9Ww2xmK6r6 cTRXNx1y2XuCn/EcNn3lpSdS72HZpVMuBhb+h4lOu9IOcDV4AKSViLjkPSDuzE7O3UGiQA uGYDpqWsJDkBq8BPCyZADOmHIB0qP5TxeJlrspAQBEIIP/0Yjz2VdGJBiA8THquWddd9NE qwswh0cmCu/kJeMP3fDKRqBoeIu55UcxbMqAjLiazfMB02uo7wNZ0S9P8bGnp8i1do7qwr faVY90WWJSPrgtgb0nP67myatYRKZTo8zbg7Hi8onhOlOmwxiS4FVT3DR7Okhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615257267; a=rsa-sha256; cv=none; b=hhbizu67G369jxIpEvz+VbSVgSU05IIQ8BhiE/vvhixbe9B9xyI88V6IjLdMa7tfMn09xU jgtbnTE9/OvP0j2gkecUBv4w+nqoBy6ARKWvICVmoJyTZCzsQ8Uz9MQ41MyfofMba+NtFe euVvIkOW2/+z0Xy8q+iY/DrcmIzk19x43F+2O41FVkLmqsUc2B06JIvCRknm7Rszd2mdLb hO3t05E7chSRCmQzzJ/ra58LAJCOargJc50WMT9/gIBlX9eavDcyqCukCGRFssWHF9neon eV0cpVjl3oQpNdTwE/P3x6r2IHz9wUZX84aPg+caUdhTGRUYtIVsv8AlyyLBRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=EQU9za0Z; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=EQU9za0Z; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 589B21F689 X-Spam-Score: -3.08 X-Migadu-Scanner: scn1.migadu.com X-TUID: lUrabS2WQSlv BUMP > Hi Ludo, > > > > I agree with =E5=AE=8B=E6=96=87=E6=AD=A6 regarding =E2=80=98file-syst= em-service-type=E2=80=99. > > > raid5atemyhomework raid5atemyhomework@protonmail.com skribis: > > > > > > > However, for the case where the user expects the "typical" ZFS styl= e of managing file systems, we need to mount all the ZFS file systems and e= nsure that they aer all already mounted by the time `file-systems` Shepherd= service is started. This means we need to be able to extend the `requireme= nt` of the `file-systems` Shepherd service. And we need to do that without = putting any extra `/etc/fstab` entries since for "typical" ZFS style of man= aging file systems, they are required to not be put in `/etc/fstab`. > > > > > > Looks like this fstab issue is the main reason why you felt the need = to > > > define an extra service type. Why is it important that ZFS not be > > > listed in /etc/fstab? > > > > Because on all non-Guix operating systems, they aren't listed in`/etc/f= stab`: > > > > - https://docs.oracle.com/cd/E19120-01/open.solaris/817-2271/gaztn/in= dex.html > > So what do we do here? > > - Force all ZFS filesystems to be declared `mountpoint=3Dlegacy` and be= written as `file-system` declarations in the `operating-system` (which wil= l eventually reach `/etc/fstab`). > - This is undesirable since ZFS users expect that setting up mount = points for ZPOOL and ZFS datasets are just handled by the same commands tha= t create the ZPOOL and ZFS dataset. This is in contrast with other file sys= tems where the creation of the filesystem is a separate step from adding it= s mount point. > - If a ZFS filesystem is created or destroyed (for example I might = want to create a temporary filesystem to `zfs send` to in order to implemen= t defragmentation, or to recompress data if I forgot to set `compression=3D= on`) then the user has to edit the configuration file and then `guix system= reconfigure` in order to make the changes stick. Most ZFS users just creat= e and destroy ZFS datasets as part of maintenance. > - If Guix goes this way, most ZFS users (including me) will not con= sider ZFS support on Guix to be anywhere near "serviceable". > - Hack a `fstab?` field in `file-system` forms. > - Arguably bad design. > - Just split up the Shepherd service into a `file-systems-target-servic= e-type` and have `file-systems-service-type` extend it, like I already prop= osed before. > > Also how about`linux-loadable-modules-service-type`? Is the proposed desi= gn okay? Do we really want to name it `linux-loadable-modules-service-type`= in contrast to the current `operating-system` field `kernel-loadable-modul= es`? > > Thanks > raid5atemyhomework > > Thanks > raid5atemyhomework