summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-06-04rules: do not call path_id for virtual devicesKay Sievers
2009-06-04udevd: close netlink socket in worker and set cloexecKay Sievers
2009-06-04udevd: convert to event worker processesKay Sievers
Event processes now get re-used after they handled an event. This reduces pressure on the CPU significantly because cloned event processes no longer cause page faults in the main daemon. After the events have settled, the no longer needed worker processes get killed.
2009-06-01str[sp]cpyl: add __attribute__ ((sentinel))Kay Sievers
2009-05-29udevd: remove check for dev_t, DEVPATH_OLD takes care of thatKay Sievers
2009-05-29udevadm: settle - add --exit-if-exists=<file>Kay Sievers
2009-05-29cdrom_id: add error message if open() failsKay Sievers
2009-05-28udevadm: control - add comment to man page about --reload-rulesKay Sievers
2009-05-28udevd: queue-export - fix crashAlan Jenkins
The math in skip_to() was the wrong way round and allocated a variable size array on the stack with a massively negative size. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-05-28udev-selinux.c: remove libudev headerAlan Jenkins
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-05-26cdrom_id: suppress ID_CDROM_MEDIA_STATE=blank for plain non-writable CDROM mediaKay Sievers
Some broken fake cdrom drives return ID_CDROM_MEDIA_STATE=blank. $ /lib/udev/cdrom_id -d /dev/sr1 main: probing: '/dev/sr1' cd_inquiry: INQUIRY: [Nokia ][S60 ][1.0 ] cd_profiles: GET CONFIGURATION: number of profiles 76 cd_profiles: current profile 0x08 cd_media_toc: READ TOC: len: 12 cd_media_toc: last track 1 starts at block 0 cd_media_info: disk type 00 ID_CDROM=1 ID_CDROM_MRW=1 ID_CDROM_MRW_W=1 ID_CDROM_MEDIA=1 ID_CDROM_MEDIA_CD=1 ID_CDROM_MEDIA_STATE=blank Others work fine, but ID_CDROM_MEDIA_STATE is not needed for non-writable CDROM media: $ /lib/udev/cdrom_id -d /dev/sr1 main: probing: '/dev/sr1' cd_inquiry: INQUIRY: [SanDisk ][U3 Cruzer Micro ][8.02] cd_profiles: GET CONFIGURATION: number of profiles 72 cd_profiles: current profile 0x08 cd_media_toc: READ TOC: len: 20 cd_media_toc: track=1 info=0x4(data) start_block=0 cd_media_toc: last track 1 starts at block 0 cd_media_info: disk type 00 ID_CDROM=1 ID_CDROM_MRW=1 ID_CDROM_MRW_W=1 ID_CDROM_MEDIA=1 ID_CDROM_MEDIA_CD=1 ID_CDROM_MEDIA_STATE=complete ID_CDROM_MEDIA_SESSION_COUNT=1 ID_CDROM_MEDIA_TRACK_COUNT=1 ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
2009-05-22test: check string substitutions in OWNER and GROUPBenjamin Gilbert
String substitutions in OWNER and GROUP keys were broken in udev 137-142. Explicitly test for this, since such breakage will not manifest in typical rulesets.
2009-05-22rules: add SUBSYSTEM match to scsi rulesKay Sievers
On Fri, May 22, 2009 at 16:15, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote: > I've been looking at what is responsible for all the path lookup activity in > coldplug. On my debian stable system, it looks like every device gets its > parent looked up in sysfs. I think this is due to SUBSYSTEMS matches. > > I see the udev default rules are different, but it looks like they still > test for SUBSYSTEMS on every single device. Should we add SUBSYSTEM="scsi_generic" > to these three rules?
2009-05-21update NEWSKay Sievers
2009-05-21udevadm: settle - make --timeout=0 workingKay Sievers
2009-05-21udevd: implement a more efficient queue file formatAlan Jenkins
Directory lookups show up in profiling. The queue files are responsible for a large proportion of file-related system calls in udev coldplug. Instead of creating a file for each event, append their details to a log file. The file is periodically rebuilt (garbage-collected) to prevent it from growing indefinitely. This single queue file replaces both the queue directory and the uevent_seqnum file. On desktop systems the file tends not to grow beyond one page. So it should also save a small amount of memory in tmpfs. Tests on a running EeePC indicate average savings of 5% *udevd* cpu time as measured by oprofile. __link_path_walk is reduced from 1.5% to 1.3%. It is not completely clear where the rest of the gains come from. In tests running ~400 events, the queue file is rebuilt about 5 times. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-05-21udevd: remove tiny bit of dead codeAlan Jenkins
2009-05-21fix location of database filesKay Sievers
2009-05-21keep the ifdef'd udevd testing/profiling hackKay Sievers
2009-05-20require key names in uppercaseKay Sievers
Drop pretty expensive case-insensitive matching, and key names in mixed or lowercase are not supported anyway.
2009-05-20remove unused GL_FORMAT from rules parserKay Sievers
2009-05-20update TODOKay Sievers
2009-05-20use openat(), unlinkat(), fstatat()Kay Sievers
2009-05-20edd_id: use openat()Kay Sievers
2009-05-20use more efficient string copyingKay Sievers
2009-05-20udevadm: settle - fix timeoutAlan Jenkins
The timeout wasn't working when settle was run as root: # udevadm control --stop-exec-queue # udevadm trigger # udevadm settle --timeout=1 ... (hangs) Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-05-19remove format char string truncation syntaxKay Sievers
2009-05-14OWNER/GROUP: fix if logicScott James Remnant
The introduction of the --resolve-names=early/never code introduced a bug to the OWNER/GROUP lookup. Previously if the name had contained $, lookup would have been performed later; after the patch, the key ended up being ignored!
2009-05-14rule-generator: cd - skip by-path links if we create by-id linksKay Sievers
2009-05-14Revert "rules: v4l do not mix vbi and video nodes"Kay Sievers
This reverts commit 6205f1186e4980544ea425d31770358d1b2579e4.
2009-05-13fix possible endless loop for GOTO to non-existent LABELKay Sievers
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526365
2009-05-13rules: v4l do not mix vbi and video nodesKay Sievers
2009-05-13version bumpKay Sievers
2009-05-13release 142Kay Sievers
2009-05-12delete libvolume_idKay Sievers
2009-05-11delete vol_id and require util-linux-ng's blkidKay Sievers
2009-05-11update TODOKay Sievers
2009-05-07add "static" back to the inline functionsKay Sievers
<Keybuk> kay: udev git head ftbfs <Keybuk> udev-watch.o: In function `udev_selinux_init': <Keybuk> /../udev/udev.h:130: multiple definition of `udev_selinux_init'
2009-05-05rules: fix ieee1394 rulesKay Sievers
2009-05-05remove asmlinkageKay Sievers
2009-05-04remove all PHYSDEVPATH handling and warning aboutKay Sievers
2009-05-04oops, removed ppp entry from rules got committedKay Sievers
2009-05-04handle devtmpfs nodesKay Sievers
UDev follows the kernel given name, and re-uses the kernel created device node. If the kernel and spcecified udev rules disagree, the udev specified node node is created and the kernel-created on is deleted.
2009-05-03rule-generator: net - whitelist NICs that violate MAC local schemeLubomir Rintel
According to list of assigned ethernet codes [1] referred to by IANA [2] certain global addresses do not follow the assignement scheme and use numbers reserved for local use. Several such adapters are quite widely used, generate rules for them. [1] http://www.cavebear.com/archive/cavebear/Ethernet/vendor.html [2] http://www.iana.org/assignments/ethernet-numbers
2009-05-03rules: remove initramfs commentKay Sievers
2009-05-02udevd: revert initial device node creationKay Sievers
2009-05-01rules: add "event*" matchKay Sievers
2009-05-01build: use AC_MSG_RESULTKay Sievers
2009-04-29update TODOKay Sievers
2009-04-28accept DEVNAME from the kernel as a hint for the node nameKay Sievers