1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
Commit Graph

112 Commits

Author SHA1 Message Date
Kay Sievers
ea6039a309 udev: allow firmware requests to bypass the dependency tracking
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-10-07 18:22:14 +02:00
Robert Milasan
2cf598fe02 udev: collect - use snprintf() 2012-09-27 15:51:58 +02:00
Lukas Nykryn
9c513fe009 udev: free fd before return in accelerometer.c 2012-09-23 14:24:44 +02:00
Lukas Nykryn
ab261e1226 udev: free fd before return in scsi_serial.c 2012-09-23 14:24:43 +02:00
Václav Pavlín
0820a4f0f6 udev: free rule structure on error 2012-09-23 14:24:43 +02:00
Václav Pavlín
cb32f0141e udev: check return value of write 2012-09-23 14:24:43 +02:00
Václav Pavlín
6bb2f0a08a udev: check return value of symlink 2012-09-23 14:24:43 +02:00
Václav Pavlín
8dc8ef598d udev: check malloc return in collect/collect.c
Returns from no memory checks updated with log_oom call
2012-09-23 14:24:43 +02:00
Kay Sievers
0bb91b5010 udev: add btrfs support
All "btrfs" file systems will be registered with the kernel when they
show up.

Incomplete multi-device volumes will set SYSTEMD_READY=0, to prevent
access until the volume is complete and fully registered.
2012-09-17 13:54:03 +02:00
Thomas Hindoe Paaboel Andersen
c53158818d man: fix a bunch of typos in docs
https://bugs.freedesktop.org/show_bug.cgi?id=54501
2012-09-13 19:34:24 +02:00
Lennart Poettering
01ed0e2307 dev-setup: make NULL as parameter for dev_setup() equivalent to "" 2012-08-21 17:23:03 +02:00
Dave Reisner
8f0e73f250 dev-setup: allow a path prefix for use in chroots
With this adjustment, we can reuse this code elsewhere, such as in
nspawn.
2012-08-21 17:19:35 +02:00
Kay Sievers
45b51b6b71 keymap: fix map name reference 2012-08-16 21:00:06 +02:00
Martin Pitt
405053fafa keymap: Add Sony VGN
https://launchpad.net/bugs/939868
2012-08-15 08:46:03 +02:00
Kay Sievers
dbf61afb29 udev: export udev_device_new_from_device_id() 2012-08-10 19:56:57 +02:00
Kay Sievers
238b53a024 udev: fix typo in copyright 2012-08-08 18:24:50 +02:00
Kay Sievers
7781e063e8 udev: re-initialize builtins in the daemon process, not in the worker 2012-08-08 16:27:11 +02:00
Kay Sievers
3b8c1cb01f udev: initialize rules dir timestamps when reading rules
On Wed, Aug 8, 2012 at 11:48 AM, Michael Schroeder <mls@suse.de> wrote:
> if rules are installed in the first 3 seconds after the udev start,
> the stamps will all be zero, so the [first] call to check_rules_timestamp()
> will just copy the current mtime [and not cause a rules re-load].
2012-08-08 14:45:16 +02:00
Martin Pitt
c672070ca9 keyboard-force-release: Fix previous commit
Was missing a * for the globbing.
2012-08-03 13:52:48 +02:00
Martin Pitt
d4c44191b7 keyboard-force-release: Apply to all Fujitso AMILO models
https://launchpad.net/bugs/1011323 reports more AMILO models which need this
quirk; enough to assume that all of them need it, and applying it on working
models does not really hurt.
2012-08-03 13:50:46 +02:00
Kay Sievers
1c7dfbf249 udev: path_id - add comment about the unrteliable rebase logic 2012-08-03 10:52:24 +02:00
Kay Sievers
023b9d33e9 udev: set log.c's log level from udev's kernel command line option 2012-07-30 22:34:07 +02:00
Kay Sievers
02aee10881 udev: add missing newline when writing to /dev/kmsg 2012-07-30 17:21:22 +02:00
Kay Sievers
e239cd8de0 udev: cdrom_id, accelerometer - enable debug output for --debug 2012-07-26 12:03:25 +02:00
Shawn Landden
0d0f0c50d3 log.h: new log_oom() -> int -ENOMEM, use it
also a number of minor fixups and bug fixes: spelling, oom errors
that didn't print errors, not properly forwarding error codes,
few more consistency issues, et cetera
2012-07-26 11:48:26 +02:00
Shawn Landden
669241a076 use "Out of memory." consistantly (or with "\n")
glibc/glib both use "out of memory" consistantly so maybe we should
consider that instead of this.

Eliminates one string out of a number of binaries. Also fixes extra newline
in udev/scsi_id
2012-07-25 11:23:57 +02:00
Terence Honles
f84b1a8c3a keymap: Broaden ThinkPad X2.. tablet match to also apply to X230
https://bugs.freedesktop.org/show_bug.cgi?id=52371
2012-07-23 06:32:46 +02:00
Zbigniew Jędrzejewski-Szmek
d91b8841d7 collect, keymap, systemctl: use _noreturn_ 2012-07-22 23:53:48 +02:00
Kay Sievers
2a3fe9a759 udev: path_id - export path for platform block devices
Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
>
> E.g. I have a platform with two sdhci controllers with different purposes.
> First slot is an external slot while second one is internal with a
> non-removable card.
>
> When there is a card in the external slot at boot, the non-removable card is
> named 'mmcblk1'; without the external card it is 'mmcblk0'.  Vice versa for the
> external card.

https://bugs.freedesktop.org/show_bug.cgi?id=52309
2012-07-20 16:01:13 +02:00
Kay Sievers
39177382a4 udev: firmware - do not cancel requests in the initrd 2012-07-19 12:33:30 +02:00
Rex Tsai
94469041d9 keymap: Add Dell Latitude force-release quirk
Signed-off-by: Martin Pitt <martinpitt@gnome.org>
2012-07-18 11:47:13 +02:00
Kay Sievers
fdc0d8468a Revert "keymap: add --version option"
This reverts commit d8f173fd2e.
2012-07-17 16:39:14 +02:00
Zbigniew Jędrzejewski-Szmek
d8f173fd2e keymap: add --version option 2012-07-17 16:34:30 +02:00
Kay Sievers
4cb72937d3 udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /run 2012-07-15 22:10:46 +02:00
Kay Sievers
c6eefe3664 udev: avoid creating /dev/kmsg with fopen() to support CONFIG_PRINTK=n 2012-07-14 00:33:59 +02:00
Lennart Poettering
4b2615684b log: correct usage of logging API at a few places 2012-07-13 15:45:45 +02:00
Kay Sievers
2be7287b0e udev: never touch device nodes with symlink requests 2012-07-09 18:13:41 +02:00
Kay Sievers
97595710b7 udev: network device renaming - immediately give up if the target name isn't available 2012-07-05 17:40:50 +02:00
Kay Sievers
47ef94ac5f udev: add some O_CLOEXEC 2012-07-05 17:33:24 +02:00
Kay Sievers
daa9cf546c udev: ata_id - fixup all 8 not only 6 bytes of the fw_rev string
The last two digits are in the wrong order:
  $ hdparm -I /dev/sda | grep Revision
  4PC10362

  $ /lib/udev/ata_id -x /dev/sda | grep REVISION
  4PC10326
2012-07-05 16:56:58 +02:00
Lennart Poettering
c9bc076461 mount-setup: don't complain if we try to fix the label of a dir beneath a mount but can't due to EROFS 2012-07-03 16:25:50 +02:00
Kay Sievers
ef8a2bf648 udev: static nodes - fix default permissions if no rules is given
<falconindy> kay: just curious -- it looks like nodes created by udev from
  modules.devname all have 000 perms, and there's nothing in udev that attempts
  to change this. is it intended?
<falconindy> c---------   1 root root     10, 223 Jul  1 23:10 uinput
<kay> falconindy: we might miss the default of 0600
<falconindy> seems like it
<kay> falconindy: stuff that has a rule works i guess
<kay> falconindy: i'll add the 0600 now
2012-07-02 20:45:59 +02:00
Dave Reisner
ddbe6850b2 udevd: fix bogus mkdir invocation
The filename parameter passed to mkdir can't contain anything but a
garbage value at this point. This was meant to be the full pathname to
the new udev DB, as the mkdir_parents() call before it won't create the
trailing child directory.

[replace mkdir_parents() + mkdir() with mkdir_p() -- kay]
2012-07-02 03:09:18 +02:00
Dave Reisner
b80680eda9 udevd: use ROOTPREFIX to create path to modules.devname 2012-07-02 03:04:24 +02:00
Kay Sievers
72a2af7aa9 udev: use the matching binary name "systemd-udevd" in log messages 2012-06-27 15:29:55 +02:00
Kay Sievers
4f5d327a49 udev: support "udevadm info /dev/sda; udevadm info /sys/class/block/sda" 2012-06-10 22:53:07 +02:00
Kay Sievers
3cbd5f6be1 udev: remove remaining selinux labeling for file in /run 2012-06-05 17:31:32 +02:00
Kay Sievers
e6f86cac16 udev: kernel cmdline - accept rd.* parameters 2012-06-04 22:46:32 +02:00
Kay Sievers
145dae7eb3 udev: reset /proc/self/oom_score_adj in worker processes
Only the main daemon process should be excluded from OOM handling,
not the worker processes or their child processes.
2012-06-04 18:10:50 +02:00
Kay Sievers
d315bba6f6 udev: limit minimum worker count to 16 2012-06-04 16:40:31 +02:00