unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Bruno Victal <mirai@makinata.eu>, guix-devel <guix-devel@gnu.org>
Cc: Felix Lechner <felix.lechner@lease-up.com>,
	Maxim Cournoyer <maxim.cournoyer@gmail.com>,
	bjc@kublai.com
Subject: Re: Herding file-systems
Date: Sat, 25 Mar 2023 06:47:52 +0100	[thread overview]
Message-ID: <84fd037856c3f8d8778556b1496e64624ceaf80d.camel@gmail.com> (raw)
In-Reply-To: <d10dfe77-ead5-30ae-a0b6-94018a482853@makinata.eu>

Am Mittwoch, dem 08.03.2023 um 14:54 +0000 schrieb Bruno Victal:
> Co-authored-by: Felix Lechner
> 
> Some observations and potential plans of action to improve file-
> system handling and proper NFS support within Guix.
> 
> 
> Relaxing dependency field of file-system record type
> =====================================================================
> 
> Guix currently envisions file systems to depend only on other file
> systems, but that restriction should perhaps be relaxed. In some
> cases, it may make sense to wait for any (shepherd) service,
> i.e. not just for ones that mount directories. These could be used to
> place a dependency on kerberos, etc.
> 
> A prominent example is NFS, which should depend on 'networking but
> currently doesn't.
Sounds fair so far.

> 
> Networked file-systems (such as NFS)
> ---------------------------------------------------------------------
> 
> The prerequisite 'file-systems should probably be split into
> 'networked-file-systems and 'local-file-systems. That distinction is
> already commonplace in other distributions. The stage
> 'networked-file-systems would in many respects be similar to
> 'file-systems but also depend on 'networking.
> 
> We would have to watch out for some inconsistencies, however. For
> networked file systems, for example, the setting (needed-for-boot #t)
> may be impossible---except perhaps for thin clients. In impossible
> cases, the configuration would error out.
And here I see potential for possible over-engineering.  Since all our
file-systems are already handled by shepherd, I see no need in
"herding" them, as the title implies.  What is needed, OTOH, is a way
to inject shepherd dependencies, e.g. on networking, but possibly also
on other file systems (*cough* loop devices *cough*).

> Name collision for mounts on the same path
> =====================================================================
> One additional concern is the naming of Shepherd services for file
> systems.  We can no longer just create the name from mount point
> alone since those names would collide with filesystems that can mount
> over the same path.
Uhm, why should we allow this?

> The concern is not as far fetched as it may initially appear.
> Examples would be FUSE filesystems and OverlayFS, but there are
> probably others.  Some FUSE file systems are specifically mounted
> over an existing mount point in order to provide additional services
> like transparent access for compressed archives.
> 
> Regarding OverlayFS, it's worth noting that it can mount multiple
> times over itself, though personally I don't know what the
> applications are for this kind of scenario, merely that it can be
> done.
In which cases should these mounts be created by the operating system
rather than a cheeky user, though?

> fstab serialization criteria
> =====================================================================
> 
> It's worth revisiting why/what are the issues (and whether they're
> still relevant) that made us exclude certain file-system declarations
> from being serialized to /etc/fstab. [1]
> Excluding serialization for certain types isn't a problem but there
> should be an escape hatch option to forcefully serialize them to
> /etc/fstab.
This appears a somewhat separate concern to the rest here and I'd
suggest investigating it separately, as this escape hatch can easily be
added without thinking about the broader picture of network file
systems.

Cheers


  parent reply	other threads:[~2023-03-25 17:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08 14:54 Herding file-systems Bruno Victal
2023-03-10 14:49 ` Maxim Cournoyer
2023-03-25  5:47 ` Liliana Marie Prikler [this message]
2023-09-26 18:35 ` Plan for NFS (was: Herding file-systems) Bruno Victal
2023-09-26 19:39   ` Liliana Marie Prikler
2023-10-04 15:44   ` Plan for NFS Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84fd037856c3f8d8778556b1496e64624ceaf80d.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=bjc@kublai.com \
    --cc=felix.lechner@lease-up.com \
    --cc=guix-devel@gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    --cc=mirai@makinata.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).