1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00

Revert "sd-device: ignore bind/unbind events for now"

This reverts commit 56c886dc7e.

Fixes #11277 and #11299.
This commit is contained in:
Yu Watanabe 2019-01-02 04:00:14 +09:00
parent 18fee12a2d
commit b261494128

View File

@ -326,15 +326,6 @@ static int device_append(sd_device *device, char *key, const char **_major, cons
action = device_action_from_string(value);
if (action == _DEVICE_ACTION_INVALID)
return -EINVAL;
/* FIXME: remove once we no longer flush previuos state for each action */
if (action == DEVICE_ACTION_BIND || action == DEVICE_ACTION_UNBIND) {
static bool warned;
if (!warned) {
log_device_debug(device, "sd-device: ignoring actions 'bind' and 'unbind'");
warned = true;
}
return -EINVAL;
}
} else if (streq(key, "SEQNUM")) {
r = safe_atou64(value, &seqnum);
if (r < 0)