Marco d'Itri
e861e01341
make rename_netif() error messages useful
2006-07-29 01:00:16 +02:00
Kay Sievers
aa0b70530c
use "change" instead of "online" events
...
The kernel driver may send "change" to signify a device state
change and udev can possibly recreate symlinks.
2006-07-21 22:31:58 +02:00
Kay Sievers
b879c303a7
netif rename: optimistic loop for the name to become free
...
Parts from Ubuntu's 70-ifrename.patch.
2006-07-03 00:58:35 +02:00
Kay Sievers
3c9e5740eb
allow "online" events to create/update symlinks
2006-06-14 18:12:01 +02:00
Kay Sievers
fa33d857e2
don't remove symlinks if they are already there
...
Consecutive "add" events will not remove and recreate the same symlinks
anymore. No longer valid links, like after changing a filesystem label,
will still be removed.
2006-06-14 16:32:52 +02:00
Kay Sievers
5fc32819ec
don't include stropts.h, some libc's don't like it
2006-04-28 00:32:32 +02:00
Kay Sievers
ff9a488d8c
remove old symlinks before creating current ones
...
This will prevent incorrect symlinks when a filesystem
label is changed and the event is triggered again from
sysfs.
2006-04-12 22:08:05 +02:00
Kay Sievers
3e5d5cb773
export INTERFACE_OLD if we renamed a netif
2006-04-06 20:40:58 +02:00
Kay Sievers
a4d5ca644e
merge device event handling and make database content available on "remove"
2006-04-05 22:29:33 +02:00
Kay Sievers
37854ffc9a
let "ignore_device" always return the event successfully
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-25 02:21:07 +01:00
Kay Sievers
f61f78a76e
don't do RUN if "ignore_device" is given
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-24 03:03:42 +01:00
Kay Sievers
1aa1e24848
replace libsysfs
...
We never used any of the libsysfs convenience features. Here we replace
it completely with 300 lines of code, which are much simpler and a bit
faster cause udev(d) does not open any syfs file for a simple event which
does not need any parent device information.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09 21:18:00 +01:00
Kay Sievers
c86be870ce
remove all built-in wait_for_sysfs logic
...
Most of the issues are fixed with the kernel we depend on, for the
remaing ones see the RELEASE-NOTES for a special rule to add.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-12 04:17:48 +01:00
Kay Sievers
b2c6818dc3
rename ...trailing_char() to ...trailing_chars()
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28 23:15:51 +02:00
Kay Sievers
fb17920701
add and use name_list_cleanup() for cleaning up the string lists
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 16:15:41 +02:00
Kay Sievers
e8d569b414
move code to its own files
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-22 12:35:58 -04:00