1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00
Commit Graph

3931 Commits

Author SHA1 Message Date
Kay Sievers
1e47c28bc5 Merge branch 'docs/README' of git://github.com/mfwitten/udev 2011-04-18 05:06:59 +02:00
Kay Sievers
82063a88d1 udevd: ppoll() -> epoll + signalfd 2011-04-18 02:14:24 +02:00
Kay Sievers
1d843b7d68 libudev: run_program() - select() -> epoll 2011-04-18 02:13:40 +02:00
Kay Sievers
13052c0285 use 'else if' in epoll event array loop 2011-04-17 22:10:18 +02:00
Kay Sievers
372b9bffa7 udevadm: test - use printf() instead of info() for non-debug output 2011-04-17 22:09:08 +02:00
Kay Sievers
f2fd4d2723 libudev: test - use epoll 2011-04-15 12:18:06 +02:00
Kay Sievers
578cd5101d udevadm: monitor - use epoll 2011-04-15 11:58:17 +02:00
Kay Sievers
29df09edd0 systemd: socket -> sockets 2011-04-15 01:43:27 +02:00
Kay Sievers
fdf52f5e2a libudev: ctrl, monitor - use SOCK_NONBLOCK 2011-04-15 01:14:10 +02:00
Kay Sievers
135f3e8d0b fix more warnings 2011-04-15 00:19:45 +02:00
Kay Sievers
7459bcdc8d udevd: get netlink socket from systemd 2011-04-14 23:46:44 +02:00
Kay Sievers
7f2d3a3fc8 require explicit "db_persist" to exclude device info from --db-cleanup 2011-04-14 14:44:56 +02:00
Kay Sievers
2b4f9e67c7 systemd: add OOMScoreAdjust=-1000 2011-04-14 14:44:21 +02:00
Kay Sievers
8b4631362f udevd: move OOM disable into --daemon option 2011-04-14 14:43:22 +02:00
Kay Sievers
d3990a576a "db_persist=" -> "db_persist" 2011-04-14 12:42:59 +02:00
Kay Sievers
02bf3e13e0 udevd: do not nice processes 2011-04-14 12:25:19 +02:00
Kay Sievers
9ead662791 udevadm: info --cleanup-db
Most of the udev database from initramfs should be deleted before
starting udev in the real root. udevadm: info --cleanup-db deletes
all database entries in /run/udev. Events that processed IMPORT{db},
or mark devices explicitely as persistent, will be excluded.
2011-04-13 22:33:01 +02:00
Kay Sievers
09913ced8c libudev: bump revision 2011-04-13 18:46:02 +02:00
Kay Sievers
a3eca08b19 udevadm: settle - watch queue file 2011-04-13 18:44:28 +02:00
Kay Sievers
80707e9ad6 libudev: ctrl - fix refcounting in connection handling 2011-04-13 18:21:47 +02:00
Kay Sievers
2903820a62 udevd: log warning if /run is not writable 2011-04-13 15:01:00 +02:00
Kay Sievers
e48e291202 trivial cleanups 2011-04-13 01:47:56 +02:00
Kay Sievers
ff2c503df0 udevadm: control - add --exit 2011-04-13 01:17:09 +02:00
Michael Witten
49500e9b0d Docs: README: Add a comma to offset the modifier
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:50 +00:00
Michael Witten
00ecb6745b Docs: README: set up' is the verb; setup' is a noun
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:48 +00:00
Michael Witten
fd752623fa Docs: README: Flip sentence structure to improve wording
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:47 +00:00
Michael Witten
cb936a3961 Docs: README: does never apply' -> never applies'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:46 +00:00
Michael Witten
e62c9c72cd Docs: README: Clarify configuration of existing devices
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:45 +00:00
Michael Witten
1224944f61 Docs: README: Clean up `udev extras' requirements
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:43 +00:00
Michael Witten
47d9121c9a Docs: README: Remove commas and use subjective mood
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:42 +00:00
Michael Witten
bde1af68b6 Docs: README: Add missing `and'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:41 +00:00
Michael Witten
3fe44a296a Docs: README: Use present tense
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:40 +00:00
Michael Witten
600b258456 Docs: README: Clean up a sentence
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:38 +00:00
Michael Witten
9698e70c1f Docs: README: ,' -> ;'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:37 +00:00
Michael Witten
a2ddee7392 Docs: README: to replace' -> replacing'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:36 +00:00
Kay Sievers
9602509521 selinux: firmware - do not label files in runtime dir 2011-04-08 03:08:16 +02:00
Kay Sievers
51f43b5329 selinux: do not label files in runtime dir
Do not label any files in the udev runtime directory, but only nodes,
links and directories below /dev.

In case the runtime directory falls back to /dev/.udev, label this
directory once at udevd startup, but never anything below it.
2011-04-08 01:09:20 +02:00
Seth Forshee
5e0ec43fc4 keymap: Support Dell Latitude XT2 tablet-mode navigation keys
The XT2 has a rocker (up/down/enter) and back button on the side
in tablet mode, none of which work currently. Add entries for
these keys.

There is some overlap here with scan codes used in other Dell
models, so these buttons are put in a new file specific to this
model.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-04-05 19:38:36 +02:00
Martin Pitt
55eb500cc5 Avoid spinning up CD on pressing eject button
When the CD tray door is locked and the hardware eject button is pressed, newer
kernels (2.6.38+) will send out a change event with a DISK_EJECT_REQUEST==1
property. Do not run cdrom_id and blkid in this case, as the media state and
contents does not change, and this only needlessly spins up the drive again
right before ejection.
2011-04-04 11:47:54 +02:00
Martin Pitt
9bb54267a1 Revert "Do not build extras with --disable-extras"
This reverts commit 905818f596.

We do want to build some extras, just not the ones with extra dependencies.
Thanks to Juergen Daubert for pointing this out.
2011-03-31 19:23:19 +02:00
Thomas Egerer
6ee9b2cb8c udevd: add 'N:' to optstring in getopt_long 2011-03-31 17:26:37 +02:00
Lee, Chun-Yi
ff4a035a8a Add rule for Acer Aspire One ZG8 to use acer-aspire_5720 keymap
Acer Aspire One ZG8's bluetooth HW key emit 0xD9 scancode, it must map
to KEY_BLUETOOTH like Acer Aspire 5720. So, add rule for Acer Aspire One
ZG8 use acer-aspire_5720 keymap.

Tested on Acer Aspire One ZG8 netbook.

Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-03-31 16:37:31 +02:00
Kay Sievers
daf32d3217 systemd: let settle depend on trigger, do not block basic with trigger 2011-03-31 13:16:42 +02:00
David Zeuthen
42b9482ab2 Run ata_id on non-removable USB devices
If a USB device is marked as removable, it is often a SATA/PATA disk
in an enclosure (note that flash card readers and usb storage sticks
are always marked as removable). In this case, try running ata_id
(which sends ATA commands wrapped in SCSI ATA PASS THROUGH commands)
to get information about the disk. If this fails, just fall back to
running usb_id since it could be the device isn't an ATA device at
all or the device doesn't have a SAT layer.

This extra information is nice to have as it indicates if it is
suitable to send e.g. SMART commands to the disk, whether the disk
supports power management and so on. Additionally, the VPD and serial
number returned by ata_id is usually more accurate as it stems from
the disk itself instead of the enclosure.

Note that udisks has been doing this for a while

 KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="udisks-probe-ata-smart $tempnode"

so this change shouldn't be too disruptive (udisks-probe-ata-smart
also sends ATA commands via the ATA PASS THROUGH command).

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-30 10:28:24 -04:00
Kay Sievers
a138cd0714 version bump 2011-03-30 16:03:56 +02:00
Kay Sievers
30b0fee9be release 167 2011-03-30 15:58:14 +02:00
Kay Sievers
7ce99fece5 systemd: udev.socket - disable implicit dependencies
Set hostname to <eeepc>.
  Found ordering cycle on sysinit.target/start
  Walked on cycle path to systemd-tmpfiles-setup.service/start
  Walked on cycle path to local-fs.target/start
  Walked on cycle path to fedora-storage-init.service/start
  Walked on cycle path to fedora-wait-storage.service/start
  Walked on cycle path to udev-settle.service/start
  Walked on cycle path to udev.service/start
  Walked on cycle path to udev.socket/start
  Walked on cycle path to sysinit.target/start
  Breaking ordering cycle by deleting job systemd-tmpfiles-setup.service/start
2011-03-29 17:59:29 +02:00
Kay Sievers
ce440d1c1b systemd: do not enable udev-settle.service by default
This barrier service is usually not enabled by default. If enabled,
it acts as a barrier for basic.target -- so all later services will
wait for udev completely finishing its coldplug run.

It might be enabled just unconditionally, or pulled-in on-demand by
broken or non-hotplug-aware services that assume a fully populated
/dev at startup.
2011-03-29 01:14:53 +02:00
Kay Sievers
b4155660f2 libudev: make valgrind happy
Warning: noted but unhandled ioctl 0x641e with no size/direction hints
  Syscall param socketcall.setsockopt(optval) points to uninitialised byte(s)
  at 0x6A30BAA: setsockopt (syscall-template.S:82)
  by 0x4E36E1C: udev_monitor_filter_update (libudev-monitor.c:347)
  by 0x4E36ED8: udev_monitor_enable_receiving (libudev-monitor.c:373)
  by 0x8A9E68E: I830ScreenInit (intel_driver.c:838)
  by 0x42EE9E: AddScreen (dispatch.c:3890)
  by 0x471561: InitOutput (xf86Init.c:738)
  by 0x422C18: main (main.c:205)
  Location 0x7ff0000c2 is 2 bytes inside local var "filter"
  declared at libudev-monitor.c:256, in frame #1 of thread 1
  Uninitialised value was created by a stack allocation
  at 0x4E30860: ??? (in /lib64/libudev.so.0.10.0)

Thanks to Zdenek Kabelac.
2011-03-28 14:34:05 +02:00
Kay Sievers
672ff71911 libudev: docs - add udev_get_run_path() 2011-03-25 17:58:30 +01:00