]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/device.c
device: rework how we enter tentative state
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Apr 2015 10:29:05 +0000 (12:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 Apr 2015 10:29:05 +0000 (12:29 +0200)
commitf62009410a72f5a89bfb8fdd7e48d9d472a6887b
tree6de683ec5cf4f54460c8a282f652667280af800c
parentf06db33455f5134c5c94b71a5b1d94cc9d0d630c
device: rework how we enter tentative state

This reworks how we enter tentative state and does so only when a device
was previously not announced via udev. The previous check actually just
checked whether a new state bit was set, which is not correct.

Also, to be able to reliably maintain the tentative state across daemon
reloads, we need to serialize and deserialize it.
src/core/device.c
src/core/device.h