Commit Graph

10219 Commits

Author SHA1 Message Date
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
Anthony G. Basile
9916d5e79c src/libudev/path-util.c: don't use IN_SET() macro
We do not import this macro which is unnecessarily complex
for this one case.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-05-01 09:49:01 -04:00
Zbigniew Jędrzejewski-Szmek
8e22a81141 udev: warn when name_to_handle_at is not implemented
We have a bunch of reports from people who have a custom kernel and
are confused why udev is not running. Issue a warning on
error. Barring an error in the code, the only error that is possible
is ENOSYS.

https://bugzilla.redhat.com/show_bug.cgi?id=1072966
2014-04-26 14:10:21 -04:00
Lennart Poettering
56127c00c3 util: make sure all our name_to_handle_at() code makes use of file_handle_union
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-26 14:09:19 -04:00
Dave Reisner
c59a37701b implement a union to pad out file_handle
Cases where name_to_handle_at is used allocated the full struct to be
MAX_HANDLE_SZ, and assigned this size to handle_bytes. This is wrong
since handle_bytes should describe the length of the flexible array
member and not the whole struct.

Define a union type which includes sufficient padding to allow
assignment of MAX_HANDLE_SZ to be correct.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-26 14:06:06 -04:00
Robert Milasan
48255c443b udev: increase the size of RESULT buffer
Under some conditions, in udev_rules_apply_to_event the fact that
result is 1024 bytes, creates problems if the output of the running
command/app is bigger then 1024 bytes.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-24 16:12:18 -04:00
Kay Sievers
2ac0b74a96 udev: serialize/synchronize block device event handling with file locks
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-24 16:08:14 -04:00
Anthony G. Basile
01ae6f2a16 src/libudev: whitespace cleanup
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-24 16:05:18 -04:00
Anthony G. Basile
da46611254 src/udev: code cleanup
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-24 16:02:16 -04:00
Kay Sievers
2500dbc810 udev: remove seqnum API and all assumptions about seqnums
The way the kernel namespaces have been implemented breaks assumptions
udev made regarding uevent sequence numbers. Creating devices in a
namespace "steals" uevents and its sequence numbers from the host. It
confuses the "udevadmin settle" logic, which might block until util a
timeout is reached, even when no uevent is pending.

Remove any assumptions about sequence numbers and deprecate libudev's
API exposing these numbers; none of that can reliably be used anymore
when namespaces are involved.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-24 15:40:08 -04:00
Marcel Holtmann
dbc5e32fae hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-12 19:12:34 -04:00
Tom Gundersen
bd255c361d udev: net_id - use constants rather than magic numbers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-07 08:35:31 -04:00
Anthony G. Basile
4b76ac0bff Revisit issue #87: fails to build on linux headers 3.13
We switch to defining _GNU_SOURCE as we do for cdrom_id.c
for a more consistant approach to this issue.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-05 16:32:30 -04:00
Eric Le Bihan
c4c2658040 libudev: Fix redefinition of usec_t and nsec_t.
The type definitions usec_t and nsec_t where defined twice: in
path-util.h and util.h.

time-util.h and time-util.c now gather the time-related functions and
definitions (as in upstream systemd).

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-04 13:36:54 -04:00
Anthony G. Basile
a1a5424a62 configure.ac: bring version numbers in line with upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-03 13:31:29 -04:00
Kay Sievers
40c72b0478 udev: do not export "static node" tags for non-existing devices
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-03 08:55:58 -04:00
Tom Gundersen
5aafc733e7 udev: persistent naming - we cannot use virtio numbers as they are not stable
This reverts commit 8741f2defa: 'Add virtio-blk support to path_id' and
commit e3d563346c4237af23335cc6904e0662efdf62ad: 'udev: net_id - handle virtio buses'.

Distros may want to take note of this, as it changes behavior.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-28 11:44:54 -04:00
Kay Sievers
0d6a3aec20 udev: update net_id comments
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-28 11:43:15 -04:00
Anthony G. Basile
75e0b7ce10 Update hwdb
This is upstream commits

    f89b42ec0fd51feab5566d6bdbacee101023c037

    15f392394e75ffb7f318920008fd1bbe4e82b488

by Marcel Holtmann <marcel@holtmann.org> and Scott Thrasher <scott.thrasher@gmail.com>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-28 11:40:34 -04:00
Anthony G. Basile
6330a66ad2 configure.ac: bump to 1.5.3
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 18:44:40 -04:00
Kay Sievers
0114457e2f hwdb: update 2014-03-22 18:21:20 -04:00
Anthony G. Basile
974354dee5 Revisit issue #87: fails to build on linux headers 3.13
Dropping <fcntl.h> in favor of <linux/fcntl.h> is incorrect.  Yet
uClibc needs O_CLOEXEC from <linux/fcntl.h>.  So we re-introduce
<fcntl.h> and include <linux/fcntl.h> only on uClibc systems to
avoid redefinitions.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 18:07:36 -04:00
blueness
ac73951d24 Merge pull request #91 from lhb-jr/fix_discardconst_warn
src/udev/udev-builtin-kmod.c: fix discardconst warn

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 16:52:55 -04:00
blueness
fbfcfb49a6 Merge pull request #90 from lhb-jr/fix_nocheckreturn
Fixed gcc warnings that call returns not checked

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 16:51:07 -04:00
blueness
12c87cef17 Merge pull request #88 from lhb-jr/check_for_docbook
configure.ac: find docbook catalog

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 16:50:11 -04:00
lhb-jr
a45adc4f91 completed fix to 'discard const' warning
modified:   src/udev/udev-builtin-kmod.c
2014-03-21 12:19:04 -04:00