guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ZFS on Guix


From: Maxime Devos
Subject: Re: ZFS on Guix
Date: Mon, 08 Feb 2021 10:35:40 +0100
User-agent: Evolution 3.34.2

On Mon, 2021-02-08 at 09:32 +0000, raid5atemyhomework wrote:
> > * the shepherd services defined in `configuration.scm`
> >   seem one-shot services to me, so maybe add '(one-shot? #t)'.
> 
> I was wary of making the `zfs-scan` one-shot, since there is a dependent 
> service on top of it.  Not to mention restarting `zfs-scan` could be useful 
> if for example you were doing hotswapping of devices.  Maybe.
> 
> 
> > * in the 'stop' of zfs-automount, the code changes the working
> >   directory.  As it isn't restored afterwards, this doesn't seem
> >   kosher to me.  Or maybe this isn't an issue at all.
> 
> The code is modeled after `file-system-shepherd-service` procedure in 
> `gnu/services/base.scm`, which includes a `(chdir "/")` as well with the 
> comment "Make sure PID 1 doesn't keep TARGET busy.".  Since this also does 
> filesystem mounting/unmounting, I judged it best to imitate the existing 
> filesystem mounting/unmounting service.

Ok, seems reasonable to me!

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]