Dr. Werner Fink 2014-03-28 08:34:59 +00:00 committed by Git OBS Bridge
parent 9e958ba41c
commit 5f5efb7f93

View File

@ -9,20 +9,13 @@ Date: Tue, 4 Mar 2014 10:29:21 +0000
Port the patch of Robert to systemd v210 and test it out. Port the patch of Robert to systemd v210 and test it out.
--- ---
udev-event.c | 43 +++++++++++++++++++++++++++++++++++++++---- udev-event.c | 42 ++++++++++++++++++++++++++++++++++++++----
1 file changed, 39 insertions(+), 4 deletions(-) 1 file changed, 38 insertions(+), 4 deletions(-)
--- systemd-210/src/udev/udev-event.c --- systemd-210/src/udev/udev-event.c
+++ systemd-210/src/udev/udev-event.c 2014-03-27 13:19:06.727748307 +0000 +++ systemd-210/src/udev/udev-event.c 2014-03-27 13:19:06.727748307 +0000
@@ -30,6 +30,7 @@ @@ -750,8 +750,9 @@ static int rename_netif(struct udev_even
#include <sys/epoll.h>
#include <sys/wait.h>
#include <sys/signalfd.h>
+#include <sys/inotify.h>
#include "udev.h"
#include "rtnl-util.h"
@@ -750,8 +751,9 @@ static int rename_netif(struct udev_even
struct udev_device *dev = event->dev; struct udev_device *dev = event->dev;
_cleanup_rtnl_unref_ sd_rtnl *rtnl = NULL; _cleanup_rtnl_unref_ sd_rtnl *rtnl = NULL;
char name[IFNAMSIZ]; char name[IFNAMSIZ];
@ -33,7 +26,7 @@ Port the patch of Robert to systemd v210 and test it out.
oldname = udev_device_get_sysname(dev); oldname = udev_device_get_sysname(dev);
@@ -765,12 +767,45 @@ static int rename_netif(struct udev_even @@ -765,12 +766,45 @@ static int rename_netif(struct udev_even
return r; return r;
r = rtnl_set_link_name(rtnl, udev_device_get_ifindex(dev), name); r = rtnl_set_link_name(rtnl, udev_device_get_ifindex(dev), name);