[systemd-devel] [PATCH RFC] swap: use aliases to group swap units for same device

Colin Guthrie gmane at colin.guthr.ie
Fri Oct 19 02:06:03 PDT 2012


'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 18/10/12 23:56 did
gyre and gimble:
> A series of .swap units "following" one another are replaced with a
> single unit with multiple names.
> 
> The idea is to simplify things for the user: only one swap unit per
> swap area. It shouldn't matter whether the swap area was activated by
> systemd or by direct swapon invocation. The kernel name (from
> /proc/swaps) is preferred, but if swap is configured through a unit
> file and not active, that name will be used instead.
> 
> The case where a swap unit refers (What=) to a symlink should behave
> better than before.
> 
> Note: this patch is goes on top of some cleanup patches that are
> pretty boring and thus I'm not posting them, so it might not apply
> cleanly.
> 
> ---
> Hi,
> another RFC. Comments appreciated.
> 
> I think that this change will simplify swap unit handling. I've been
> running with it for some time, and things seem to work. Systemclt
> output is definitely simpler: just one line.


I've not reviewed the patch, but I figured it would be worth
highlighting Olivier Brunel's patch from the 13th October "[PATCH] Fix
starting swap unit on symlink made it unstoppable".

I presume your patch would fix this same problem but in a different way?

Cheers

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the systemd-devel mailing list