summaryrefslogtreecommitdiff
path: root/udev
AgeCommit message (Collapse)Author
2009-08-19change database file namesKay Sievers
With very deeply nested devices, We can not use a single file name to carry an entire DEVPATH. Use <subsystem>:<sysname> as the database filename, which should also simplify the handling of devices moving around, as these values will not change but still be unique. For the name stack we use the <maj>:<min> now as the filename. > On Tue, Aug 18, 2009 at 09:59:56AM -0400, Ric Wheeler wrote: > The first is that udev grumbles during boot about "file name too long" > like the following: > > Aug 17 06:49:58 megadeth udevd-event[20447]: unable to create db file > '/dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:04.0\x2f0000:17:00.0\x2f0000:18:0a.0\x2f0000:1f:00.0\x2fhost11\x2fport-11:0\x2fexpander-11:0\x2fport-11:0:0\x2fexpander-11:1\x2fport-11:1:0\x2fexpander-11:2\x2fport-11:2:17\x2fexpander-11:3\x2fport-11:3:1\x2fend_device-11:3:1\x2fbsg\x2fend_device-11:3:1': > File name too long
2009-08-19warn about non-readable or empty rules fileKay Sievers
2009-08-19print warning for NAME="%k" - it breaks the kernel supplied DEVNAMEKay Sievers
2009-08-08udevd: block for 15 seconds after error when too old kernel is detectedKay Sievers
The compat code will go away some day and CONFIG_SYSFS_DEPRECATED kernels fail in too many setups now to be worth to support them.
2009-08-08fix spellingAlan Jenkins
Fix spelling in docbook comments, code comments, and a local variable name. Thanks to "ispell -h" for docbook HTML and "scspell" for source code. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-08-07Merge libudev, udev, and the unconditional extras in a single Makefile.am.Diego Elio 'Flameeyes' Pettenò
Instead of using multiple recursive Makefile.am files, use a single Makefile.am that sets and builds all the basic suite of libraries and binaries for udev. This reduces the number of files in the source tree, and also reduces drastically the build time when using parallel-make. With this setup, all the compile steps will be executed in parallel, and just the linking stage will be (partially) serialised on the libraries creation.
2009-08-07man: SYMLINK can be matched as well as assignedAlan Jenkins
If by-path / by-id links don't quite do what you want, this is a nice clean way to extend the behaviour. Real example: SYMLINK=="serial/by-id/usb-Novatel_Wireless_Inc*CDMA*-if00-port0", \\ SYMLINK+="cellcard" Some users ask how to do things like this. - create an additional link with a shorter name - create a link which matches more loosely (omit certain path segments e.g. serial numbers) - change permissions on certain USB device nodes Allow them to realize this without reading the friendly *.c files. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-08-07man: fix unused, inaccurate metadataAlan Jenkins
Dates aren't shown in the manpages. So they are not really useful, and no-one is going to remember to update them. "<refmiscinfo class="version"></refmiscinfo>" sounds even less useful. I leave the unused "title" and "productname" tags. They could theoretically be useful, and aren't hard to maintain. We just need to fix the "title" for udevadm. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-08-06"record_failed" -> "fail_event_on_error"Kay Sievers
2009-08-06re-enable failed event trackingKay Sievers
It did not work for the last couple of releases. If RUN{record_failed}+="..." is given, a non-zero execution will mark the event as failed. Recorded failed events can be re-triggered with: udevadm trigger --type=failed The failed tracking _might_ be useful for things which might not be ready to be executed at early bootup, but a bit later when the needed dependencies are available. In many cases though, it indicates that something is used in a way it should not.
2009-08-01update a few years of copyrightKay Sievers
2009-07-25make: build internal tools against libudev-private.laKay Sievers
2009-07-23format names are not case insensitiveKay Sievers
2009-07-23udevadm: trigger - add --sysname-match=Kay Sievers
$ udevadm trigger -n -v --subsystem-match=usb --sysname-match=2-1.1* /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.1 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.1/2-1.1.1:1.0 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.2 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.2/2-1.1.2:1.0 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.2/2-1.1.2:1.1 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1:1.0
2009-07-17udevd: add timestamp to --debug outputKay Sievers
2009-07-13udevd: use boolKay Sievers
2009-07-13udevd: handle SIGCHLD before the worker event messageKay Sievers
We may need to handle SIGCHLD before the queued worker message. The last reference, from the SIGCHLD or the worker message will clean up the worker context. In case we receive an unexpected SIGCHLD with an error, we let the event fail and clean up the worker context.
2009-07-11udevd: make sure a worker finishes event handling before exitingKay Sievers
Persistent network rules write out new rules files. When rules change, we need to kill all workers to update the in-memory copy of the rules. We need to make sure, that a worker finshes its work for all device messages it has accepted, before it exits after a SIGTERM from the main process.
2009-07-08udevadm: info - add space after R:, A:, W: on database exportKay Sievers
<zzam> kay: udevadmin info -e prints all lines with a space after the :, but the W: line <kay> zzam: yeah, seems so, and the R: and the A: <zzam> yeah
2009-07-08udevd: detach event from worker if we kill a workerKay Sievers
Jul 8 09:36:41 udevd[663]: worker [5491] did not accept message, kill it Jul 8 09:36:41 udevd[663]: worker [5491] unexpectedly returned with 0 Jul 8 09:36:41 udevd[663]: worker [5551] unexpectedly returned with 0 Jul 8 09:36:41 kernel: [ 156.832086] <6>udevd[663]: segfault at 4 ip 00959fbc sp bfbe7b78 error 6 in udevd[94f000+1c000] https://bugs.launchpad.net/ubuntu/+source/udev/+bug/396957
2009-07-07use MIN() MAX() from param.hKay Sievers
2009-07-02udevadm: test - print list of propertiesKay Sievers
2009-06-28man: udev - add private properties like ENV{.FOO}="bar"Kay Sievers
2009-06-28do not exports properties starting with a '.'Kay Sievers
Private variables can be marked like: ENV{.FOO}="bar"
2009-06-22udev/.gitignore: add udev.pcKay Sievers
2009-06-19udev.pc: addKay Sievers
2009-06-17cleanup ./configure installation directory optionsKay Sievers
2009-06-14USE_LOG -> ENABLE_LOGGING, DEBUG -> ENABLE_DEBUG, USE_SELINUX -> WITH_SELINUXKay Sievers
2009-06-10udevadm: info -revert "accept --query without argument"Kay Sievers
Getopt is too dumb, the optional argument breaks "udevadm -q symlink".
2009-06-09libudev: rename private files to *-private.cKay Sievers
2009-06-09move common stuff from udev/ to private parts of libudev/Kay Sievers
2009-06-09move syslog wrapper to libudevKay Sievers
2009-06-09udevd: log info for created/killed workersKay Sievers
2009-06-08libudev: move to top-level directoryKay Sievers
2009-06-08libudev: add comments to libudev.hKay Sievers
2009-06-08udevd: print error if worker dies unexpectedlyKay Sievers
2009-06-07udevadm: monitor --environment -> --propertyKay Sievers
2009-06-07udevadm: control - --env -> --propertyKay Sievers
2009-06-07udevadm: info - accept --query without a value and print propertiesKay Sievers
2009-06-07udevadm: trigger - add --property-match=<key>:<value>Kay Sievers
2009-06-07libudev: enumerate - allow multiple keys with the same nameKay Sievers
2009-06-06fix signed/unsigned warningKay Sievers
2009-06-06cleanup $attr{} substitutionKay Sievers
2009-06-06allow format substitution in path of ATTR{<path>}=="<value>"Kay Sievers
2009-06-05udevd: use enum instead of char in struct declarationKay 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