]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevadm: add todo to remind us to remove compat code
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Jan 2023 12:52:28 +0000 (13:52 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Jan 2023 18:14:27 +0000 (19:14 +0100)
https://github.com/systemd/systemd/pull/25145#issuecomment-1397606521

src/udev/udevadm-trigger.c

index 40ee5085a0b992a2c766715cbf2380ec24254c89..4e3d5bdd0fa8aaef31259d5defe8a71100173102 100644 (file)
@@ -180,7 +180,11 @@ static int device_monitor_handler(sd_device_monitor *m, sd_device *dev, void *us
                         const char *old_sysname;
 
                         /* When the device is renamed, the new name is broadcast, and the old name is saved
-                         * in INTERFACE_OLD. */
+                         * in INTERFACE_OLD.
+                         *
+                         * TODO: remove support for INTERFACE_OLD when kernel baseline is bumped to 4.13 or
+                         * higher. See 1193448cb68e5a90cab027e16a093bbd367e9494.
+                         */
 
                         if (sd_device_get_property_value(dev, "INTERFACE_OLD", &old_sysname) >= 0) {
                                 _cleanup_free_ char *dir = NULL, *old_syspath = NULL;