Hannes Reinecke
babb0ec586
udevd: add --event-timeout commandline option
...
Some events take longer than the default 30 seconds. Killing those
events will leave the machine halfway configured.
Add a commandline option '--event-timeout' to handle these cases.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-30 09:30:59 -04:00
Kay Sievers
c4ffad5655
udev: exclude MD from block device ownership event locking
...
MD instantiates devices at open(). This is incomptible with the
locking logic, as the "change" event emitted when stopping a
device will bring it back.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-25 07:59:15 -04:00
Zbigniew Jędrzejewski-Szmek
e0f01e5b67
Be more careful when checking for empty files
...
If we want to avoid reading a totally empty file, it seems better
to check after we have opened the file, not before.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-19 13:27:32 -04:00
Anthony G. Basile
54fac72da7
src/libudev/Makefile.am: update libudev revision
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-15 08:19:07 -04:00
Bastien Nocera
c99c8103e7
accelerometer: Don't wait for new data from the sensor
...
Instead of waiting for new data from the sensor, which might be
a long time coming, depending on the sensor device, ask the kernel
for the last state for that particular input device.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-10 16:21:59 -04:00
Anthony G. Basile
a51173a35e
configure.ac: bump to 1.9 = upstream 215
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-06 08:00:08 -04:00
Anthony G. Basile
368ad52438
src/libudev/util.c: import flush_fd() from upstream
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-06 07:59:11 -04:00
Kay Sievers
231fb49727
hwdb: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-05 07:44:53 -04:00
Marcel Holtmann
5dc78d90e0
hwdb: Update database of Bluetooth company identifiers
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-05 07:44:12 -04:00
Tom Hirst
b856641839
rules: don't enable usb pm for Avocent devices
...
The Avocent KVM over IP devices doesn't work correctly with USB power
management enabled.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-02 09:42:05 -04:00
Kay Sievers
9031b0d0a7
libudev: queue - watch entire directory to allow the re-use of the watch descriptor
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-01 07:22:32 -04:00
Kay Sievers
a31296d41e
libudev: queue provide file descriptor to watch busy event queue
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-01 07:20:47 -04:00
Kay Sievers
e17b263727
libudev: fix udev_queue_get_queue_is_empty() logic
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-01 07:16:16 -04:00
Anthony G. Basile
cd03d84ff0
configure.ac: separate out rootlibdir and rootlibexecdir
2014-06-24 15:28:01 -04:00
Anthony G. Basile
9851827c99
configure.ac: improve install paths for udevlibexecdir, udevkeymapdir, udevkeymapforceredir, udevrulesdir
2014-06-24 13:04:46 -04:00
Kay Sievers
df07929b8a
gudev: replace regex with sym file
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-24 10:09:40 -04:00
Anthony G. Basile
441d5c2b39
configure.ac: bump to 1.8 = upstream 214
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-19 19:58:05 -04:00
Kay Sievers
37f39cae3b
rules: add loop-control and btrfs-control to "disk" group
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-19 08:01:37 -04:00
Marcel Holtmann
900bee63a5
hwdb: Update database of Bluetooth company identifiers
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-19 08:00:13 -04:00
Thomas Hindoe Paaboel Andersen
b80d8297ad
udev: check the return value from udev_enumerate_scan_devices
...
The return value from udev_enumerate_scan_devices was stored but
never used. I assume this was meant to be checked.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-15 09:30:49 -04:00
Christian Hesse
4fb073f4e8
udev: really exclude device-mapper from block device ownership event locking
...
Arguments were wrong order, no?
This fixes commits:
e918a1b5a94f270186dca59156354acd2a596494
3d06f4183470d42361303086ed9dedd29c0ffc1b
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-15 09:30:02 -04:00
Kay Sievers
5e3ab83ab3
udev: assign group "input" to all input devices
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-15 08:14:30 -04:00
Kay Sievers
b4df39ea74
udev: stop using "floppy" group
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-15 08:13:39 -04:00
Kay Sievers
2c93acb8c2
hwdb: fix case-sensitive match
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:53:04 -04:00
Zbigniew Jędrzejewski-Szmek
f12c9a6b38
keyboard: add Plantronics .Audio mute button
...
https://bugs.freedesktop.org/show_bug.cgi?id=79495
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:52:58 -04:00
Martin Pitt
12f28fa2b8
keymap: Asus EeePC touchpad toggle key
...
Originally is KEY_TOUCHPAD_TOGGLE, but X.org can't handle the big key events,
so use the F21 convention.
https://bugs.freedesktop.org/show_bug.cgi?id=72807
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:52:25 -04:00
Martin Pitt
96414129c8
keymap: Add Lenovo Enhanced USB Keyboard
...
https://bugs.freedesktop.org/show_bug.cgi?id=77234
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:51:53 -04:00
Kay Sievers
0c693f06e3
udev: guard REREADPT by exclusive lock instead of O_EXCL
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:44:41 -04:00
Kay Sievers
eb666fd898
udev: make sure we always get "change" for the disk
...
The kernel will return 0 for REREADPT when no partition table
is found, we have to send out "change" ourselves.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:44:03 -04:00
Kay Sievers
1fc745cac2
udev: guard REREADP logic with open(O_ECXL)
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:43:13 -04:00
Anthony G. Basile
8a892f6109
[PATCH] udev: try first re-reading the partition table
...
mounted partitions:
# dd if=/dev/zero of=/dev/sda bs=1 count=1
UDEV [4157.369250] change .../0:0:0:0/block/sda (block)
UDEV [4157.375059] change .../0:0:0:0/block/sda/sda1 (block)
UDEV [4157.397088] change .../0:0:0:0/block/sda/sda2 (block)
UDEV [4157.404842] change .../0:0:0:0/block/sda/sda4 (block)
unmounted partitions:
# dd if=/dev/zero of=/dev/sdb bs=1 count=1
UDEV [4163.450217] remove .../target6:0:0/6:0:0:0/block/sdb/sdb1 (block)
UDEV [4163.593167] change .../target6:0:0/6:0:0:0/block/sdb (block)
UDEV [4163.713982] add .../target6:0:0/6:0:0:0/block/sdb/sdb1 (block)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:41:42 -04:00
Kay Sievers
50decc8ac8
udev: synthesize "change' events for partitions when tools change the disk
...
This should make sure that fdisk-like programs will automatically
cause an update of all partitions, just like mkfs-like programs cause
an update of the partition.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:38:45 -04:00
Kay Sievers
7c09c01851
udevd: inotify - modernizations
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-06 17:40:31 -04:00
Kay Sievers
592a10b51c
udev: exclude device-mapper from block device ownership event locking
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-06 17:39:40 -04:00
Kay Sievers
b493e3e702
udev: always close lock file descriptor
...
https://bugs.freedesktop.org/show_bug.cgi?id=79576
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-06 17:38:01 -04:00
Cristian Rodríguez
09aadd5a14
udev-builtin-keyboard: do tell on which device EVIOCSKEYCODE failed.
...
I am getting
"Error calling EVIOCSKEYCODE (scan code 0xc022d, key code 418): Invalid
argument", the error message does not tell on which specific device the
problem is, add that info.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-01 14:28:02 -04:00
Anthony G. Basile
9ea99e7409
configure.ac: bump to 1.7 = upstream 213
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-01 14:14:12 -04:00
Anthony G. Basile
2083b3f57f
UPSTREAM.notes: out of date and obsolete
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-24 10:34:26 -04:00
Anthony G. Basile
78069e398d
hwdb: clean up Makefile.am
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-23 09:00:40 -04:00
Kay Sievers
07d5d5979f
hwdb: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-23 08:58:03 -04:00
Evan Nemerson
e6d7b9e442
gudev: add missing (nullable) annotations on return values
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-23 08:56:54 -04:00
Harald Hoyer
e936eee10f
udevadm-settle: fixed return code for empty queue
...
If the udev queue is empty and "/run/udev/queue" does not exist,
"udevadm settle" would return with EXIT_FAILURE, because the inotify on
"/run/udev/queue" would fail with ENOENT.
This patch lets "udevadm settle" exit with EXIT_SUCCESS in this case.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-23 08:54:40 -04:00
Thomas Hindoe Paaboel Andersen
db1e5f3021
udev: avoid use of uninitialized err
...
After 1ea972174baba40dbc80c51cbfc4edc49764b59b err is no longer
set unless we hit a special case. Initialize it to 0 and remove
a check that will never fail.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-17 08:10:06 -04:00
Marcel Holtmann
3e13ad0711
hwdb: Update database of Bluetooth company identifiers
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-17 08:08:10 -04:00
Anthony G. Basile
9611fc1fc7
src/scsi_id/scsi_id.c: remove redeclaration of VERSION
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-15 19:52:18 -04:00
Zbigniew Jedrzejewski-Szmek
f8e5fbd9c8
Remove unnecessary casts in printfs
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-15 19:34:56 -04:00
Kay Sievers
db992ba3a7
udev: do not skip the execution of RUN when renaming a network device fails
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-15 17:25:25 -04:00
Anthony G. Basile
47ef6b2c66
src/libudev/missing.h: clean up and fix build on uclibc and musl
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-13 10:53:21 -04:00
Kay Sievers
a19b50448a
hwdb: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-10 18:38:51 -04:00
Anthony G. Basile
8292d01912
src/scsi_id/scsi_id.c: Add _GNU_SOURCE for struct file_handle
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-01 12:14:48 -04:00