summaryrefslogtreecommitdiff
path: root/libudev
AgeCommit message (Collapse)Author
2010-12-15libudev: record and export "age" of device recordKay Sievers
2010-12-15libudev: fix renamed device nodes detection logicKay Sievers
2010-12-14libudev: enumerate - allow to filter-out not-already-initialized devicesKay Sievers
2010-12-14check ifindex > 0 instead of subsystem == "net"Kay Sievers
2010-12-14udevd: write full database file for (unsupported) renamed device nodesKay Sievers
2010-12-12udevd: switch to common id_filename functionsKay Sievers
2010-12-11udevd: simplify udev database and fix DEVNAME handlingKay Sievers
2010-12-10udevd: use dev_t or netif ifindex as database keyKay Sievers
We need to preserve the database of network interfaces while we rename them. Use the kernel's numbers wherever possible, instead of the device names. Fix wrong database filenames which contain a '/', translated from '!' in the kernel name. Fix segfault for kobject pathes where the subsystem can not be determined from sysfs.
2010-12-10libudev: do not overwrite path with readlink() callKay Sievers
2010-10-22libudev: return kernel provided devnode when asked before we handled any rulesKay Sievers
2010-10-13udevd: do not wrongly delay events for devices with swapped namesKay Sievers
Renaming network devices might delay events for the other device, which has the same devpath in the meantime as the original event. Causing a delay until the timout of the event is reached. Look at the ifindex/devnum of the devices to check if they are really the same devices.
2010-08-11do not rename the database on device renameKay Sievers
Harald Hoyer discovered some incorrect behavior while debugging problems with network interface renaming: Udev events might be queued for devices which are renamed. A new device registered the same time may claime the old name and create a database entry for it. The current rename logic would move over this databse entry to the wrong device.
2010-08-10fix broken "compile warning fix"Kay Sievers
2010-08-08udev: fix compile warningYin Kangkai
CC udev/udevd.o In file included from udev/udev.h:27, from udev/udevd.c:47: ./libudev/libudev-private.h: In function ‘udev_selinux_setfscreateconat’: ./libudev/libudev-private.h:230: warning: declaration of ‘dirfd’ shadows a global declaration /usr/include/dirent.h:224: warning: shadowed declaration is here Signed-off-by: Yin Kangkai <kangkai.yin@intel.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-03call util_delete_path() only when we actually deleted stuffKay Sievers
2010-07-19log an error when a message from the wrong version of udevadm is ignoredMarco d'Itri
2010-06-05libudev: fix fd leak in udev_enumerate_scan_devices() when tags are searchedKay Sievers
Thanks to Lennart for finding this.
2010-05-31libudev: doc - fix typoKay Sievers
2010-05-28udevd: read debug settings from kernel commandlineKay Sievers
2010-05-27childs -> childrenKay Sievers
2010-05-27while (1) -> for (;;)Kay Sievers
2010-05-25libudev: fix udev_queue_get_seqnum_sequence_is_finished() with empty queue fileKay Sievers
We an empty or garbage-collected queue file, we might not have a record for the first sequence we wait for, and therefore must not wait for it.
2010-05-20udevd: create standard symlinks and handle /lib/udev/devicesKay Sievers
2010-05-14libudev: add O_CLOEXECKay Sievers
2010-05-12reset process priority before executing RUN+=Kay Sievers
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581235
2010-05-07libudev: add documentation for recently added functionsKay Sievers
2010-04-23export udev_device_get_tags_list_entry()Kay Sievers
2010-04-23export tag functionsKay Sievers
2010-04-23libudev: accept NULL in udev_device_get_tags_list_entry()Kay Sievers
2010-04-23delete old tags when configuration changesKay Sievers
2010-04-22fix logic on-demand loading logic for db and ueventKay Sievers
2010-04-22add TAG= to improve event filtering and device enumerationKay Sievers
2010-04-21more readlink buffer size handlingKay Sievers
2010-04-13remove "ignore_remove" optionKay Sievers
2010-04-13remove "all_partitions" optionKay Sievers
We can not predict the major/minor of non-existing devices: $ grep . /sys/class/block/sd*/dev /sys/class/block/sda1/dev:259:524288 /sys/class/block/sda2/dev:259:262144 /sys/class/block/sda3/dev:259:786432 /sys/class/block/sda4/dev:259:131072 /sys/class/block/sda/dev:259:0 /sys/class/block/sdb/dev:259:655360 /sys/class/block/sdc/dev:259:393216 If this functionality is still needed for some broken hardware, it needs to be solved with a tool not part of the udev package. Because such option is unreliable and unsafe to use.
2010-03-25libudev: update documentationKay Sievers
2010-03-18add LGPL COPYING to libudev and GUdevKay Sievers
2010-03-17libudev: add udev_device_new_from_environment()Kay Sievers
2010-03-11libudev: docs - .gitignore backup filesKay Sievers
2010-03-10libbudev-private: rename udev_list_entry_get_flag()Kay Sievers
2010-03-02Increase UTIL_LINE_SIZE from 2048 to 16384David Zeuthen
Recent udisks versions, for LVM2 integration, ships with probers that produce very long lines such as UDISKS_LVM2_PV_VG_PV_LIST= uuid=98lyZl-Ya7U-p26Z-Ia7b-xf8u-xZqP-jc4njb;size=2000397795328;allocated_size=2000397795328 uuid=iFs0cM-sxCF-ceQK-hZl1-kbwo-ZTjq-gSewQR;size=2000397795328;allocated_size=2000397795328 [...] e.g. roughly 100 bytes per LVM2 physical volume for each LVM2 PV encountered. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-03-02Use UTIL_LINE_SIZE, not UTIL_PATH_SIZE to truncate propertiesDavid Zeuthen
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-03-02Decrease buffer size when advancing past NUL byteDavid Zeuthen
Otherwise we'll overflow the buffer if space is tight. Also add a comment explaining this. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-02-17libudev: export udev_monitor_set_receive_buffer_size()Scott James Remnant
This function is useful for anything that's likely to be running alongside udevd during cold-plugging, and is using libudev to receive the events. It makes little sense for it to be private, or to require other software to relearn how to adjust the buffer size. Signed-off-by: Scott James Remnant <scott@ubuntu.com>
2010-01-13libudev: device - create db file atomicallyKay Sievers
We need to prevent that libudev parses half-written database files. Also for "change" events, we need to make sure, that database files always exist to be read by libudev, and that they are not first deleted before they are re-created.
2010-01-07work around gtk-doc which breaks distcheckKay Sievers
2010-01-07libudev: doc - add symbols to sections.txtKay Sievers
2009-12-30libudev: enumerate - fix move_later logicThomas de Grenier de Latour
The move_later_prefix variable was reset to zero on each loop iteration, and thus the move_later entry (if any) was not added right after changing to another syspath prefix, but rather after exiting the enumeration loop.
2009-12-25remove UDEV_RUN environment variableKay Sievers
It handles only RUN but not IMPORT and PROGRAM. There is no sane way to suppress program execution. Most important programs run with IMPORT these days. Also events can no longer suppressed with the libudev netlink messages, so UDEV_RUN does nothing useful and is just inconsistent.
2009-12-25fix typo in log message priority handlingKay Sievers