GNU bug report logs - #51346
[PATCH 0/1 core-updates-frozen] Rework swap device to add dependencies and flags

Previous Next

Package: guix-patches;

Reported by: Josselin Poiret <dev <at> jpoiret.xyz>

Date: Sat, 23 Oct 2021 09:47:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Josselin Poiret <dev <at> jpoiret.xyz>
Cc: 51346 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#51346] [PATCH 1/1] gnu: system: Add support for swap
 dependencies and flags
Date: Sun, 24 Oct 2021 15:58:56 +0200
[Message part 1 (text/plain, inline)]
Oh no,

he's back.  With another annoying question: why don't we drop the 
whole swap-partition/swap-file dichotomy?  The distinction is 
artificial insofar as Linux doesn't make one.

Which end is supposed to explode if you

 (swap-partition (device "/home/nckx/swap"))
 (swap-file (name "/dev/sda2"))

?

What real-world drawback(s) do you see to

 (swap (space "/home/nckx/swap"))
 (swap (space "/dev/sda2"))
 (swap (space (uuid "ab-c-d-e-fgh")))
 (swap (space (file-system-label "best-swaps")))

naming aside?

Josselin Poiret via Guix-patches via 写道:
> +(define (swap-partition->service-name spartition)

Nitpick: ->shepherd-service-name just for similarity to 
<file-system>s.

Aside, when I try to apply your third manual example, I get:

 guix system: error: service 'swap-/dev/sda2' requires
 'file-system-/', which is not provided by any service

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 185 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.