summaryrefslogtreecommitdiff
path: root/udev
AgeCommit message (Collapse)Author
2009-01-21split up long lineKay Sievers
2009-01-21Merge commit '9032f119f07ad3b5116b3d4858816d851d4127de'Kay Sievers
2009-01-21Merge commit '5f03ed8a56d308af72db8a48ab66ed68667af2c6'Kay Sievers
Conflicts: udev/udevd.c
2009-01-21increase netif renaming timeout from 30 to 90 secondsKay Sievers
2009-01-21reap children fasterOlaf Kirch
udevd's event_queue_manager loop is pretty sensitive to the delays of exiting child processes. I found that it helps boot times if we try to reap children as quickly as possible. This patch changes event_queue_manager to call sigchilds_waiting if it finds a signal has been received. Signed-off-by: Olaf Kirch <okir@suse.de>
2009-01-21open-code pollfd setupKay Sievers
2009-01-20Expose delayed name resolutionScott James Remnant
udevd had the ability to delay name resolution until the event, but this was never exposed. Add a --resolve-names=late option to do so.
2009-01-20Allow user and group lookup to be disabled.Scott James Remnant
In certain cut-down situations such as an installer or inside the initramfs, we simply don't have any kind of name service. While we could use rules without OWNER or GROUP, it's better to have the same rules as a full system and have udevd ignore those parts of the rules. Adds a --resolve-names=never switch to udevd that has this effect.
2009-01-20udevd: use ppoll instead of signal pipesOlaf Kirch
udevd uses a rather old-fashioned way of handling signals while waiting for input through select (ie by using an unnamed pipe, to which the signal handler writes one byte for every signal received). This is rather awkward and may potentially even block if we receive more signals than the kernel's pipe buffer. This patch replaces all of that with ppoll, which was designed for this purpose. It also removes the SA_RESTART flag from all installed signal handlers, because otherwise the ppoll call would just be restarted after handling eg a SIGCHLD. Signed-off-by: Olaf Kirch <okir@suse.de>
2009-01-16remove stray initializerAlan Jenkins
Picked up by "gcc -Wextra". udevadm.c:83: warning: initialized field overwritten udevadm.c:83: warning: (near initialization for ‘cmds[2].help’) This is just a cleanup. It doesn't change the code generated by gcc.
2009-01-16man: typo fixesAlan Jenkins
2009-01-16cleanup old names before creating the new namesKay Sievers
Scott found that the node /dev/pktcdvd can not be replaced by /dev/pktcdvd/control by changing the rules, and re-trigger the event. We used to create the new names before we cleaned up the old ones, which can not work if we need to create subdir with the same name.
2009-01-16remove name from index if the node name has changedKay Sievers
Scott discovered that a changed rule, which renames a device node leaves the old node name around as a symlink. So drop the reference to the old name.
2009-01-15udevadm: test - remove --force optionKay Sievers
Since a while we change the database with a "test" run, but do not update the node and symlinks. We need to "force" all the time, to keep things in sync.
2009-01-15do not complain about a missing /etc/udev/rules.d/Kay Sievers
Scott mentioned that initramfs does not neccessarily have that directory, so do not log an error.
2009-01-14libudev: use 4096 bytes buffer for attribute readingKay Sievers
2009-01-06libudev: test - add udev_device_get_property_value()Kay Sievers
2009-01-06libudev: device - add udev_device_get_property_value()Kay Sievers
2009-01-05udevadm: s/udevinfo/udevadm info/Kay Sievers
2009-01-05enable skipping of "naming-only" rulesKay Sievers
2009-01-03libudev: subsytem -> subsystemKay Sievers
2009-01-03libudev: device - remove udev_device_get_parent_with_subsystemMarcel Holtmann
2009-01-03libudev: device - lookup subsystem and devtype togetherMarcel Holtmann
2009-01-03libudev: device - read "uevent" only if info is not already loadedKay Sievers
2009-01-02man: udev - update NAME assignmentMichal Soltys
2009-01-02libudev: device - add devtype supportMarcel Holtmann
2008-12-29libudev: enumerate - add lookup by propertyKay Sievers
2008-12-29require non-SYSFS_DEPRECATED 2.6.20+ kernelKay Sievers
2008-12-28if needed, store database entries also for devices which do not have a ↵Kay Sievers
device node
2008-12-20"'/sbin/modprobe abnormal' exit" - also print program optionsKay Sievers
2008-12-16libudev: include <sys/types.h>Kay Sievers
2008-12-08udevadm: settle - allow --timeout=0 and --quietKay Sievers
2008-12-06make: do not delete autotools generated file with distcleanKay Sievers
[...] running the command `make maintainer-clean' should not delete `configure' even if `configure' can be remade using a rule in the Makefile. More generally, `make maintainer-clean' should not delete anything that needs to exist in order to run `configure' and then begin to build the program. This is the only exception; `maintainer-clean' should delete everything else that can be rebuilt.
2008-12-02fix network interface name swappingKay Sievers
2008-11-24silence PHYSDEV* warning for WAIT_FOR* rulesKay Sievers
2008-11-24fix handling of swapping node name with symlink nameKay Sievers
2008-11-21include errno.h in sysdeps.hGabor Z. Papp
2008-11-20libudev: accept NULL whitelist in util_replace_chars()Kay Sievers
2008-11-17fix $links substitution for devices without any linkKay Sievers
Reported-by: Michel Hermier <michel.hermier@gmail.com>
2008-11-17udevd: fix cleanup of /dev/.udev/uevent_seqnumKay Sievers
2008-11-17limit $attr(<symlink>) magic to well-known links onlyKay Sievers
2008-11-15udevadm: fix option parsing breakage with klibcSergey Vlasov
The klibc implementation of getopt_long() behaves slightly different from the glibc one - in particular, it treats the change of the option string argument between invocations as start of parsing a different command line, and resets its state. However, the udevadm code expected getopt_long() invocations in subcommands to continue parsing the rest of command line after initial options has been parsed at the top level; with klibc this broke, causing all udevadm subcommands to stop recognizing their options. Instead of relying on the glibc behavior, reset the getopt_long() state properly before invoking the subcommand handler: move argv to point to the subcommand name, decrease argc appropriately, and set optind = 0. This also fixes a minor bug visible with glibc - without setting optind = 0 all getopt_long() calls in subcommand handlers were behaving as if "+" was specified as the first character of the option string (which disables option reordering), because that state was set by the first getopt_long() call at the top level, and was not reset when parsing subcommand options. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
2008-11-14libudev: device - handle disk "device" link for partitions in deprecated ↵Kay Sievers
sysfs layout Thanks to Mikhail Kolesnik <mike@openbunker.org> for finding this.
2008-11-13remove len == 0 check, the index root is always '\0'Kay Sievers
2008-11-13udevadm: info - unify -V and --versionKay Sievers
2008-11-13set errno = ENOSYS in inotify stubKay Sievers
2008-11-13merge trie nodes, childs and root into a single arrayKay Sievers
2008-11-12reserve child slot 0Kay Sievers
2008-11-12string index - split nodes and childs to allow and unlimited number of childsKay Sievers
2008-11-11silence "comparison between signed and unsigned"Kay Sievers