summaryrefslogtreecommitdiff
path: root/src/udev
AgeCommit message (Collapse)Author
2012-11-17Rename src/shared to src/include, a saner nameAnthony G. Basile
2012-11-17udev: firmware - disable firmware loading when firmware file is 0 byteUmut Tezduyar
If firmware file is not found in the file system, udev terminates firmware loading. This is not the case if firmware file exists in the file system but doesn't have any data in it.
2012-11-17Add missing HAVE_ACL preprocessor directivesRichard Yao
This fixes a build failure with --disable-acl Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17src/test: disable for now to get a full buildAnthony G. Basile
2012-11-17Eliminate blkid-builtinRichard Yao
Changes to rules were introduced by 7c2dee4a4d7f1b264031daaee786a8fe429884e1 while builtin-blkid support was introduced in other commits. The removal of systemd resulted in this code causing linker errors. This code adds complexity with no clear benefit, so we remove it. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17Eliminate kmod dependencyRichard Yao
Changes to rules were introduced by 06316d9f1a91b4d3efdb7402e72498cb3deb1806 while kmod support was introduced in other commits. A ton of commits were made involving kmod and it is quite clear that it is broken, so we remove it. This changes our rules to depend on modprobe. As long as the modprobe binary is in /, and not /usr, udev module loading should function properly. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17src/gudev: builds successfullyAnthony G. Basile
2012-11-17src/udev: breakout Makefile.am for helpersAnthony G. Basile
2012-11-17src/udev: continue restoring needed depsAnthony G. Basile
2012-11-16src/udev: restore needed deps from src/shareAnthony G. Basile
2012-11-16src/udev/log.c: remove log_parse_environment()Anthony G. Basile
2012-11-16src/udev/Makefile.am: work towards fixing up udev buildAnthony G. Basile
2012-11-16src/udev: work towards building udevAnthony G. Basile
2012-11-15src/libudev: successfully buildsAnthony G. Basile
2012-11-15Final step of revamping the build systemAnthony G. Basile
The structure of the source tree is basically correct and this is about as far as we can go without hacking at the C code.
2012-11-15Second step of revamping the build systemAnthony G. Basile
The original Makefile.am was drawn to the top level. This commit breaks it out into the various directories with SUBDIRS connecting them. This makes each directory easier to maintain.
2012-11-15Isolation of udev code from remaining systemdAnthony G. Basile
This commit is a first attempt to isolate the udev code from the remaining code base. It intentionally does not modify any files but purely delete files which, on a first examination, appear to not be needed. This is a sweeping commit which may easily have missed needed code. Files can be retrieved by doing a checkout from the previous commit: git checkout 2944f347d0 -- <filename>
2012-11-13udev: properly handle symlink removal by 'change' eventKay Sievers
If a 'change' event is supposed to remove created symlinks, we create a new device structure from the sysfs device and fill it with the list of links, to compute the delta of the old and new list of links to apply. If the device is already 'remove'd by the kernel though, udev fails to create the device structure, so the links are not removed properly. > From: Neil Brown <nfbrown@suse.com> > Date: Thu, 8 Nov 2012 10:39:06 +0100 > Subject: [PATCH] If a 'change' event does not get handled by udev until > after the device has subsequently disappeared, udev mis-handles > it. This can happen with 'md' devices which emit a change > event and then a remove event when they are stopped. It is > normally only noticed if udev is very busy (lots of arrays > being stopped at once) or the machine is otherwise loaded > and reponding slowly. > > There are two problems. > > 1/ udev_device_new_from_syspath() will refuse to create the device > structure if the device does not exist in /sys, and particularly if > the uevent file does not exist. > If a 'db' file does exist, that is sufficient evidence that the device > is genuine and should be created. Equally if we have just received an > event from the kernel about the device, it must be real. > > This patch just disabled the test for the 'uevent' file, it doesn't > try imposing any other tests - it isn't clear that they are really > needed. > > 2/ udev_event_execute_rules() calls udev_device_read_db() on a 'device' > structure that is largely uninitialised and in particular does not > have the 'subsystem' set. udev_device_read_db() needs the subsystem > so it tries to read the 'subsystem' symlink out of sysfs. If the > device is already deleted, this naturally fails. > udev_event_execute_rules() knows the subsystem (as it was in the > event message) so this patch simply sets the subsystem for the device > structure to be loaded to match the subsystem of the device structure > that is handling the event. > > With these two changes, deleted handling of change events will still > correctly remove any symlinks that are not needed any more. Use udev_device_new() instead of allowing udev_device_new_from_syspath() to proceed without a sysfs device.
2012-11-12remove duplicate semicolonsThomas Hindoe Paaboel Andersen
2012-11-12use the same email address everywhereKay Sievers
2012-11-12udev: use usec_t and now()Kay Sievers
2012-11-09udev: net_id - add builtin to retrieve data for network devicesKay Sievers
2012-11-09udev: hwdb - search parents for 'modalias' and dataKay Sievers
2012-11-09udev: update file headersKay Sievers
2012-11-02udev: break over-long linesKay Sievers
2012-10-28udev: add "udevadm hwdb --test=<modalias>"Kay Sievers
2012-10-28udev: get rid of SYSCONFDIRKay Sievers
2012-10-27libudev: import hwdb and export lookup interfaceKay Sievers
2012-10-26keymap: Add HP EliteBook 8440pMartin Pitt
Thanks to Glen Ditchfield <gjditchfield@acm.org>! https://launchpad.net/bugs/1071579
2012-10-26udev: builtin - do not fail builtin initialization if one of them returns an ↵Kay Sievers
error
2012-10-26udev: kmod - fix typoKay Sievers
2012-10-25udev: kmod, hwdb - do not fail if databases are not availableKay Sievers
2012-10-25udev: hwdb - exit if no database is availableKay Sievers
2012-10-25udev: hwdb validate() return when the database is not openedKay Sievers
2012-10-25udev: hwdb - remove run_onceKay Sievers
2012-10-25udev: hwdb - properly initialize search structureKay Sievers
2012-10-25udev: set optind = 0, not the usual 1, to reset getopt_long()s internal stateKay Sievers
2012-10-23udev: add hardware database supportKay Sievers
2012-10-22udev: use strbuf to store rules stringsKay Sievers
2012-10-19keymap: Tolerate invalid entries in keymapsMartin Pitt
Some keymaps apply to a large range of computer models, not all of which have all of the scan codes in the maps. If a single scan code is invalid, do not abort but continue with the next entry in the map. Instead just show the error message for that particular scan code, to help with debugging.
2012-10-19keymap: Fix parsing of hex scan codes in tablesMartin Pitt
Commit b1f87c76b1 changed sscanf from %i to %u, as scan codes are unsigned numbers which can be > 0x7FFFFFFF. However, sscanf doesn't accept hexadecimal numbers for %u. It works fine with %i, so revert this back.
2012-10-19README.keymap.txt: Drop fdi2rules.py documentationMartin Pitt
This was removed ages ago.
2012-10-11udev: path_id - add scm supportSebastian Ott
Add support for scm block devices. Introduced here: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=f30664e2 Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
2012-10-10keymap: Fix scan codes > 0x7FFFFFFFMartin Pitt
According to Linux drivers/input/evdev.c, scan codes are unsigned, not int nor uint32_t. Thanks to Dejan Tosovic <dejan@post.com> for reporting this!
2012-10-09udev: support multiple entries for ENV{SYSTEMD_ALIAS} and ENV{SYSTEM_WANTS}Kay Sievers
2012-10-08udev: remove SYMLINK "unique" optionKay Sievers
2012-10-07udev: allow firmware requests to bypass the dependency trackingKay Sievers
The removal of the TIMEOUT= handling in udevd put firmware requests into the devpath parent/child dependency tracking. Drivers which block in module_init() asking userspace for firmware ran into a 30 sec device timeout. The whole firmware loading willl hopefully move into the kernel and the fragile-since-day-one fake async driver-core device dance involving udev can be retired: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=abb139e75c2cdbb955e840d6331cb5863e409d0e
2012-09-27udev: collect - use snprintf()Robert Milasan
2012-09-23udev: free fd before return in accelerometer.cLukas Nykryn
2012-09-23udev: free fd before return in scsi_serial.cLukas Nykryn