summaryrefslogtreecommitdiff
path: root/libudev
AgeCommit message (Collapse)Author
2011-03-23use /run/udev/ if possible and fall back to /dev/.udev/Kay Sievers
2011-03-15move /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd ↵Kay Sievers
startup
2011-03-05libudev: resolve ifindex in udev_device_new_from_id_filename()Kay Sievers
2011-03-04libudev: udev_device_get_sysattr_list_entry() updateKay Sievers
2011-03-04test-libudev: add short optionsKay Sievers
2011-03-04libudev: use sysfs attr ilist interface for attribute walkThomas Egerer
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
2011-03-04libudev: allow to get list of all available sysfs attrs for a deviceThomas Egerer
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
2011-02-15update some commentsKay Sievers
2011-02-15udevadm: enumerate - update prev pointer properlyKei Tokunaga
When I tried to boot a system with 256 disks x 4 paths with device-mapper, udevadm trigger (--type=devices) that was called from start_udev ended up dumping a core due to a segmentation fault. In udev_enumerate_get_list_entry(), if it finds the devices that should be delayed, it calls syspath_add(). If realloc() in syspath_add() allocates the required memory at a different memory address, referring prev->len afterward causes the segmentation fault. Signed-off-by: Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com>
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>