summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-19configure.ac: bump to version 3.2.2eudev/v3.2.2eudev/masterAnthony G. Basile
2017-02-25src/udev/udev-rules.c: fix global properties, issue #142Anthony G. Basile
An important hunk was lost when merging systemd commit adeba500 leading to broken global properties, issue #142. This commit fixes this bug. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-01-05src/udev/udev-builtin-keyboard.c: fix build with gperf 3.1Anthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-01-01configure.ac: add option to disable building programsYann E. MORIN
In some cases (e.g. trimmed-down chroot or containers), libudev is the only thing needed, with udevd and assorted programs totally useless (e.g. because /dev is bind-mounted from the real one and managed out-side the chroot/container). Add an option to ./configure to enable/disable building the programs; this option defaults to "enable", so that it is backward compatible with existing build procedure, and because it by default makes sense to have udevd et al. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-30Merge pull request #139 from barbieri/eudev-old-kernelsAnthony G. Basile
udev-builtin-input_id.c: add missing kernel header defines.
2016-12-30udev-builtin-input_id.c: add missing kernel header defines.Gustavo Sverzut Barbieri
Add missing defines so eudev builds for older kernels such as 2.6 Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
2016-12-21Merge pull request #137 from 10ne1/dev/aratiu/upstream-disable-mtd_probeAnthony G. Basile
configure.ac: add option to disable mtd_probe
2016-12-21configure.ac: add option to disable mtd_probeIoan-Adrian Ratiu
FTL is not necessarily present on all kernels so it's useful to have an option to disable this. Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
2016-12-11configure.ac bump 3.2.1eudev/v3.2.1Anthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11udev: Add rules for accelerometer orientation quirksBastien Nocera
This commit adds a rules file to extract the properties from hwdb to set on i2c IIO devices. This is used to set the ACCEL_MOUNT_MATRIX property on IIO devices, to be consumed by iio-sensor-proxy or equivalent daemon. The hwdb file contains documentation on how to write quirks. Note however that mount information is usually exported in: - the device-tree for ARM devices - the ACPI DSDT for Intel-compatible devices but currently not extracted by the kernel. Also note that some devices have the framebuffer rotation that changes between the bootloader and the main system, which might mean that the accelerometer is then wrongly oriented. This is a missing feature in the i915 kernel driver: https://bugs.freedesktop.org/show_bug.cgi?id=94894 which needs to be fixed, and won't require quirks. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11hwdb, rules: updateAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-26travis: Add docbook depLuca Barbato
2016-11-23rules: updateAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-23hwdb: updateAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-21src/libudev/libudev.h, src/udev/udev.h: include <sys/sysmacros.h>Anthony G. Basile
<sys/sysmacros.h> is no longer implicitly pulled in via <sys/types.h> in glibc 2.24 and above. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-08-06src/shared/missing.h: fix getrandom system call number on ARM64Thomas Petazzoni
The getrandom() system call number is indeed 384 on ARM, but it is not the same on ARM64. ARM64 uses the asm-generic headers, including for system call numbers, so the getrandom() system call number on ARM64 is 278. This fixes runtime issues of eudev on ARM64, such as: Populating /dev using udev: [ 6.186817] udevd[1204]: starting version 3.1.5 [ 6.191662] udevd[1204]: syscall 384 [ 6.195217] Code: aa0503e4 aa0603e5 aa0703e6 d4000001 (b13ffc1f) [ 6.201291] CPU: 4 PID: 1204 Comm: udevd Not tainted 4.7.0+ #1 [ 6.207079] Hardware name: ARM Juno development board (r2) (DT) [ 6.212954] task: ffff800976421900 task.stack: ffff800975610000 [ 6.218825] PC is at 0xffff97f12234 [ 6.222281] LR is at 0x41b15c [ 6.225214] pc : [<0000ffff97f12234>] lr : [<000000000041b15c>] pstate: 80000000 [ 6.232544] sp : 0000ffffcf9b3870 [ 6.235828] x29: 0000ffffcf9b3870 x28: 0000000000428218 [ 6.241110] x27: 0000000000000000 x26: 000000000042a7e3 [ 6.246395] x25: 0000ffffcf9b39c8 x24: 0000000000428000 [ 6.251670] x23: 0000000000449000 x22: 0000000000449678 [ 6.256946] x21: 0000000000000010 x20: 0000000000449000 [ 6.262233] x19: 0000000000449678 x18: 0000000000000000 [ 6.267507] x17: 0000ffff97f12210 x16: 0000000000449440 [ 6.272779] x15: 0000ffff97e4f730 x14: 0000ffff98050cb8 [ 6.278060] x13: 000000000000033c x12: 00000000000004b4 [ 6.283331] x11: 0000000000000000 x10: 0101010101010101 [ 6.288604] x9 : 0000000000001010 x8 : 0000000000000180 [ 6.293882] x7 : ffffffffffffffff x6 : ffffffffffffffff [ 6.299154] x5 : 00000000271e36c0 x4 : 0007061c00190d07 [ 6.304426] x3 : 00000000271e36d0 x2 : 0000000000000001 [ 6.309705] x1 : 0000000000000010 x0 : 0000000000449678 [ 6.314976] [ 6.398734] sky2 0000:08:00.0 enp8s0: renamed from eth0 Reported-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-06-01configure.ac: bump 3.2 = upstream 220eudev/v3.2Anthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-31udevd: remove unnecessary cgroups handlingMurray Calavera
Signed-off-by: Murray Calavera <murray.calavera@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25rules: updateAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25hwdb: updateAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10rules: updateAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10hwdb: updateAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24shared: remove unused file `exit-status`Murray Calavera
Signed-off-by: Murray Calavera <murray.calavera@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24shared: remove unused function `execute_command`Murray Calavera
Signed-off-by: Murray Calavera <murray.calavera@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21src/shared/util.c: fix typoAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21src/shared/util.c: add fallback for ppoll(), issue #129.Anthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21configure.ac: fix some white spaceAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21hwdb: updateAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-02-28configure.ac: use automake 1.11Anthony G. Basile
2016-02-28configure.ac: we don't need xsltproc, but making doc's doesAnthony G. Basile
2016-02-28README.md: update for travis-ciAnthony G. Basile
2016-02-27travis.yml: we don't need gtk-doc-tools anymoreAnthony G. Basile
2016-02-27gitignore: ignore write_net_rulesAnthony G. Basile
2016-02-27hwdb: updateAnthony G. Basile
2015-11-22src/udev/udevd.c: add eudev startup message for kmsgRichard Narron
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-11-16Merge pull request #125 from rworkman/trivialAnthony G. Basile
Remove obsolete udev_root references
2015-11-15Remove obsolete udev_root referencesRobby Workman
This was removed in 6ada823a9a0979ea145fd70add1007c21caa45c0
2015-10-13Update .travis.ymleudev/v3.1.5Anthony G. Basile
2015-10-13configure.ac: bump 3.1.5 = upstream 220Anthony G. Basile
2015-10-12hwdb and rules: import changes from upstream.Anthony G. Basile
2015-09-25Forward-ported network rule-generator code from eudev-1.10eudev/v3.1.4Ian Stakenvicius
2015-09-11Revert "udevd: warn if we receive SIGCHLD from untracked worker"eudev/v3.1.3Anthony G. Basile
This reverts commit 75e930ed64b62ac7e684cbe3493963371904d55b. This fixes issue #121. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-09-11Merge pull request #123 from gentoo/nonrotblueness
Solid state drives should use noop IO elevator
2015-09-11Merge pull request #122 from RomainNaour/musl-fixesblueness
Musl fixes
2015-09-11Merge pull request #124 from rcsheets/debug-output-spacing-fixblueness
Add missing space between filename and error message
2015-09-08Add missing space between filename and error messageRobert C. Sheets
2015-08-29Solid state drives should use noop IO elevatorRichard Yao
It is often suggested that users set noop on SSDs and it turns out that udev can do this for users. Setting noop disables the IO priorization and IO reordering logic inside the kernel, but leaves front/back merging in place. This reduction in overhead should increase the number of requests sent to solid state media to the maximum possible,which is said to improve performance on SSDs. Unfortunately, few benchmarks try real world work loads with a clear cache to measure the actual difference. The benchmarks conducted by Daniel Nashed cleared the cache. They favor noop, although the workload seems somewhat unrealistic: http://blog.nashcom.de/nashcomblog.nsf/dx/linux-io-performance-tweek.htm The BFQ developers' benchmarks on SSDs appear to account for both. They show noop as being far better than CFQ and second only to BFQ, which is out of tree: https://lwn.net/Articles/600366/ In addition, I have experienced lockup-like effects on ext4 on an OCZ Vertex 2 SSD with the discard mount option enabled when recursively unlinking a subdirectory path that contains millions of files. The system was useless for hours. Setting noop allowed the unlink to finish in minutes. This is because the reordering from CFQ interleaved the TRIM command with write IOs, effectively putting barriers between them because because TRIM is a non-queued command prior to SATA 3.1. A good default should perform well in general and have the property that poor performance in the worst case scenarios is minimized. The previous examples contradict CFQ's ability to achieve that on solid state media. I believe that we should implement a udev rule to set noop on solid state media by default. It should be said that Milan Broz wrote it first, although there is only one way to write this rule in a manner consistent with the codebase: http://permalink.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/6045 It should be said that this will be a regression for those that rely on the "Block IO Controller" cgroup because it is only supported by CFQ when CONFIG_CFQ_GROUP_IOSCHED=y. My experience as a ZoL developer is that very few users rely on this behavior and consequently, I believe that the benefit from enabling this far outweighs the harm to the few that need it. Those that do need it should be able to disable this rule themselves. Container management software that expects the Block IO Controller to be supported should be modified to enable CFQ explicitly if it does not already do that. This has been tested against both a SATA mechanical drive and a SATA solid state drive. It changes the elevator to noop on the solid state drive, but does not touch it on the mechanical drive. Signed-off-by: Richard Yao <ryao@gentoo.org>
2015-07-31build-sys: check for strndupaRomain Naour
strndupa is a GNU extension, therefore it's not available for all libc libraries (musl). This patch is based on the one proposed by Emil Renner Berthing for systemd [1]. [1] http://lists.freedesktop.org/archives/systemd-devel/2014-September/023190.html Signed-off-by: Romain Naour <romain.naour@openwide.fr>
2015-07-31build-sys: check for mallinfoRomain Naour
mallinfo is not specified by POSIX or the C standards, therefore it's not available for all libc libraries (musl). Add the ability to disable mallinfo statistics. Fixes: selinux-util.c: In function ‘mac_selinux_init’: selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known struct mallinfo before_mallinfo, after_mallinfo; Signed-off-by: Romain Naour <romain.naour@openwide.fr>
2015-07-20udevd: don't unref worker objects on SIGSTOP/SIGCONTTom Gundersen
We should not be receiving these anyway, but let's be correct. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>