device: rework how we enter tentative state

System Internals / systemd - Lennart Poettering [poettering.net] - 24 April 2015 05:29 UTC

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.

f620094 device: rework how we enter tentative state
src/core/device.c | 79 +++++++++++++++++++++++++++++++++++++++++++++--------
src/core/device.h | 3 +-
2 files changed, 69 insertions(+), 13 deletions(-)

Upstream: github.com


  • Share