chiark / gitweb /
swap: always track the current real device node of all swap devices, even when not...
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Nov 2013 20:08:39 +0000 (21:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Nov 2013 21:10:22 +0000 (22:10 +0100)
commit9670d583d381d4c2c7f4d80de63bee7ad54fef44
tree64468a91c77e6ea65f684353e3af59d6b20313ac
parent0bee65f0622c4faa8ac8ae771cc0c8a936dfa284
swap: always track the current real device node of all swap devices, even when not active

This way, we can avoid executing two /bin/swapon jobs to be dispatched
for the same swap device if it is configured for two different paths.

Previously we were just tracking the device nodes of active swap
devices, which would not allow us to recognize the identity of two swap
devices before they are active.

https://bugs.freedesktop.org/show_bug.cgi?id=69835
src/core/device.c
src/core/manager.c
src/core/manager.h
src/core/swap.c
src/core/swap.h