From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sA4LIgUxN2AkWQAA0tVLHw (envelope-from ) for ; Thu, 25 Feb 2021 05:09:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ILPNHQUxN2DCWAAAB5/wlQ (envelope-from ) for ; Thu, 25 Feb 2021 05:09:25 +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 0094C1F497 for ; Thu, 25 Feb 2021 06:09:25 +0100 (CET) Received: from localhost ([::1]:52476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lF8tw-0000vT-4i for larch@yhetil.org; Thu, 25 Feb 2021 00:09:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lF8th-0000vD-KK for guix-devel@gnu.org; Thu, 25 Feb 2021 00:09:10 -0500 Received: from mail-40130.protonmail.ch ([185.70.40.130]:20133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lF8tb-0008Ck-GX for guix-devel@gnu.org; Thu, 25 Feb 2021 00:09:08 -0500 Date: Thu, 25 Feb 2021 05:08:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1614229738; bh=mSZziyo/CPdeLAmXf7qpYgOVaT0qVk+kEsU/uhFYq0w=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=DSsmHmewtgDVXcUVl3CFs3ZvMfOz46PGSTFXZV/+SeC7nBoS4lnb1UBg/Gy70vGwx ynaUXoCZ3G/9YhdwLF/5VOo70F53WgzfS97SbxzatHqTxgNoW+jLW0V+ZoD5K/KUWJ S8vF33svnihRnYqrWFwT8A0i7f39UnV18yI4cZzo= To: =?utf-8?Q?Ludovic_Court=C3=A8s?= From: raid5atemyhomework Cc: "guix-devel@gnu.org" Subject: Re: ZFS on Guix, again Message-ID: <2U5o7PxT2-i2JvNcrWgH2vY8YDUJ3zkNybz0Hq4pYbYY1fzXjuOBoenrl145tLC4Yx_tphfUHbPBZQGOUR5hT6jp7m8vRn5HHGWFLvLtJPY=@protonmail.com> In-Reply-To: References: <87mtvweazb.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.130; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40130.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=ham 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 X-Migadu-Spam-Score: -1.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=DSsmHmew; 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: 0094C1F497 X-Spam-Score: -1.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: uvO94sEdZGrX Hi Ludo, > > I agree with =E5=AE=8B=E6=96=87=E6=AD=A6 regarding =E2=80=98file-system= -service-type=E2=80=99. > > raid5atemyhomework raid5atemyhomework@protonmail.com skribis: > > > > > However, for the case where the user expects the "typical" ZFS style = of managing file systems, we need to mount all the ZFS file systems and ens= ure that they aer all already mounted by the time `file-systems` Shepherd s= ervice is started. This means we need to be able to extend the `requirement= ` of the `file-systems` Shepherd service. And we need to do that without pu= tting any extra `/etc/fstab` entries since for "typical" ZFS style of manag= ing 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/fst= ab`: > > - https://docs.oracle.com/cd/E19120-01/open.solaris/817-2271/gaztn/inde= x.html So what do we do here? * Force all ZFS filesystems to be declared `mountpoint=3Dlegacy` and be wri= tten as `file-system` declarations in the `operating-system` (which will ev= entually 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 that crea= te the ZPOOL and ZFS dataset. This is in contrast with other file systems = where the creation of the filesystem is a separate step from adding its mou= nt point. * If a ZFS filesystem is created or destroyed (for example I might want t= o create a temporary filesystem to `zfs send` to in order to implement defr= agmentation, or to recompress data if I forgot to set `compression=3Don`) t= hen the user has to edit the configuration file and then `guix system reco= nfigure` in order to make the changes stick. Most ZFS users just create an= d destroy ZFS datasets as part of maintenance. * If Guix goes this way, most ZFS users (including me) will not consider = 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-service-ty= pe` and have `file-systems-service-type` extend it, like I already proposed= before. --- Also how about `linux-loadable-modules-service-type`? Is the proposed desig= n 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