|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
From 1f17a35ef85e943965ffafe2ef6eebd98d6b917a Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
Date: Sat, 22 Dec 2018 19:39:51 +0900
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
Subject: [PATCH 3/4] Revert "sd-device: ignore bind/unbind events for now"
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
This reverts commit 56c886dc7ed5b2bb0882ba85136f4070545bfc1b.
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
---
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
src/libsystemd/sd-device/device-private.c | 9 ---------
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
1 file changed, 9 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
diff --git a/src/libsystemd/sd-device/device-private.c b/src/libsystemd/sd-device/device-private.c
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
index 01a5aa3d3f..36beb3e7df 100644
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
--- a/src/libsystemd/sd-device/device-private.c
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
+++ b/src/libsystemd/sd-device/device-private.c
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
@@ -326,15 +326,6 @@ static int device_append(sd_device *device, char *key, const char **_major, cons
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
action = device_action_from_string(value);
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
if (action == _DEVICE_ACTION_INVALID)
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
return -EINVAL;
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- /* FIXME: remove once we no longer flush previuos state for each action */
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- if (action == DEVICE_ACTION_BIND || action == DEVICE_ACTION_UNBIND) {
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- static bool warned;
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- if (!warned) {
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- log_device_debug(device, "sd-device: ignoring actions 'bind' and 'unbind'");
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- warned = true;
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- }
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- return -EINVAL;
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
- }
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
} else if (streq(key, "SEQNUM")) {
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
r = safe_atou64(value, &seqnum);
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
if (r < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
--
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
2.19.2
|
|
Zbigniew Jędrzejewski-Szmek |
7d37aa |
|