summaryrefslogtreecommitdiff
path: root/udev_device.c
AgeCommit message (Collapse)Author
2008-04-21add OPTIONS+="event_timeout=<seconds>"Kay Sievers
2008-04-20logging: add trailing newline to all stringsKay Sievers
2007-08-29do not delete the device node with ignore_remove, but handle the eventKay Sievers
2007-08-26track "move" events to rename database and failed filesKay Sievers
2007-08-02write changed network interface names to the kernel logKay Sievers
2007-06-21info() for ignore_removeKay Sievers
2007-03-21udevtest: add --force modeKay Sievers
2007-03-19update %n on netif name changeKay Sievers
2007-03-18priority based symlink handlingKay Sievers
Symlinks can have priorities now, the priority is assigned to the device and specified with OPTIONS="link_priority=100". Devices with higher priorities overwrite the symlinks of devices with lower priorities. If the device, that currently owns the link goes away, the symlink will be removed, and recreated, pointing to the next device with the highest actual priority. This should solve the issue, that inserting an USB-stick may overwrite the /dev/disk/by-id/-link of another disk, and removes the entire link after the USB-stick is disconnected. If no priorities are specified, the new link will overwrite the current one, and if the device goes away, it will restore the old link. It should be possible to assign lower priorities to removable devices, if needed. In multipath setups, we see several devices, which all connect to the same volume, and therefore all try to create the same metadata-links. The different path-devices are combined into one device-mapper device, which also contains the same metadata. It should be possible, to assign multipath-table device-mapper devices a higher priority, so path-devices that appear and disappear, will not overwrite or delete the device-mapper device links.
2007-03-17read list of devices from index, make index private to databaseKay Sievers
2007-03-16cleanup already existing db-entries and db-index on device updateKay Sievers
2007-03-15update internal variables if we see $DEVPATH during IMPORTKay Sievers
2007-01-23fix retry-loop in netif-rename codeMatthias Schwarzott
2006-08-28update source file headersKay Sievers
2006-08-24rename major/minor variable to maj/min to avoid warningKay Sievers
2006-08-19consistent key naming to match only the event device or include all parent ↵Kay Sievers
devices This scheme is more consistent and makes it obvious if a match happens against the event device only, or the full chain of parent devices. The old key names are now: BUS -> SUBSYSTEMS ID -> KERNELS SYSFS -> ATTRS DRIVER -> DRIVERS Match keys for the event device: KERNEL SUBSYSTEM ATTR DRIVER (in a future release, for now the same as DRIVERS) Match keys for all devices along the parent device chain: KERNELS SUBSYSTEMS ATTRS DRIVERS ID, BUS, SYSFS are no longer mentioned in the man page but still work. DRIVER must be converted to DRIVERS to match the new scheme. For now, an error is logged, if DRIVER is used. In a future release, the DRIVER key behaviour will change.
2006-07-29make rename_netif() error messages usefulMarco d'Itri
2006-07-21use "change" instead of "online" eventsKay Sievers
The kernel driver may send "change" to signify a device state change and udev can possibly recreate symlinks.
2006-07-03netif rename: optimistic loop for the name to become freeKay Sievers
Parts from Ubuntu's 70-ifrename.patch.
2006-06-14allow "online" events to create/update symlinksKay Sievers
2006-06-14don't remove symlinks if they are already thereKay Sievers
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-04-28don't include stropts.h, some libc's don't like itKay Sievers
2006-04-12remove old symlinks before creating current onesKay Sievers
This will prevent incorrect symlinks when a filesystem label is changed and the event is triggered again from sysfs.
2006-04-06export INTERFACE_OLD if we renamed a netifKay Sievers
2006-04-05merge device event handling and make database content available on "remove"Kay Sievers
2006-01-25let "ignore_device" always return the event successfullyKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-24don't do RUN if "ignore_device" is givenKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09replace libsysfsKay Sievers
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>
2005-11-12remove all built-in wait_for_sysfs logicKay Sievers
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-08-28rename ...trailing_char() to ...trailing_chars()Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27add and use name_list_cleanup() for cleaning up the string listsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-22move code to its own filesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>