chiark / gitweb /
elogind.git
14 years agoextras/keymap: Fix WLAN button on ThinkPads
Martin Pitt [Wed, 17 Jun 2009 10:06:33 +0000 (12:06 +0200)]
extras/keymap: Fix WLAN button on ThinkPads

Fn+F5 was previously assigned to "radio" which is fairly useless under X.
Switch it to "wlan".

Reported in http://bugs.debian.org/504643

14 years agokeymap: move from udev-extras
Martin Pitt [Wed, 17 Jun 2009 09:56:52 +0000 (11:56 +0200)]
keymap: move from udev-extras

14 years agorules: remove MMC rule, 2.6.30 has the modalias
Kay Sievers [Wed, 17 Jun 2009 00:33:49 +0000 (02:33 +0200)]
rules: remove MMC rule, 2.6.30 has the modalias

14 years agocleanup ./configure installation directory options
Kay Sievers [Wed, 17 Jun 2009 00:25:07 +0000 (02:25 +0200)]
cleanup ./configure installation directory options

14 years agoNEWS: add --disable-extras
Kay Sievers [Tue, 16 Jun 2009 20:02:19 +0000 (22:02 +0200)]
NEWS: add --disable-extras

14 years agoautogen.sh: make "CFLAGS=-O0 ./autogen.sh" working
Kay Sievers [Tue, 16 Jun 2009 19:29:13 +0000 (21:29 +0200)]
autogen.sh: make "CFLAGS=-O0 ./autogen.sh" working

14 years agoconfigure: enable all extras by default, provide --disable-extras
Kay Sievers [Tue, 16 Jun 2009 19:13:15 +0000 (21:13 +0200)]
configure: enable all extras by default, provide --disable-extras

14 years agousb-db: move from udev-extras
Lennart Poettering [Tue, 16 Jun 2009 18:57:28 +0000 (20:57 +0200)]
usb-db: move from udev-extras

14 years agorules: tty/net - move from udev-extras
Dan Williams [Tue, 16 Jun 2009 18:27:22 +0000 (20:27 +0200)]
rules: tty/net - move from udev-extras

14 years agorules: sound - move from udev-extra
Lennart Poettering [Tue, 16 Jun 2009 18:26:20 +0000 (20:26 +0200)]
rules: sound - move from udev-extra

14 years agov4l_id: 70-v4l.rules -> 60-persistent-v4l.rules
Kay Sievers [Tue, 16 Jun 2009 18:13:17 +0000 (20:13 +0200)]
v4l_id: 70-v4l.rules -> 60-persistent-v4l.rules

14 years agogudev: fix typo in configure option
Kay Sievers [Tue, 16 Jun 2009 17:56:31 +0000 (19:56 +0200)]
gudev: fix typo in configure option

14 years agohid2hci: move from udev-extras
Mario Limonciello [Tue, 16 Jun 2009 17:30:22 +0000 (19:30 +0200)]
hid2hci: move from udev-extras

14 years agolibudev: doc - libudev-docs.sgml -> libudev-doc.xml
Kay Sievers [Tue, 16 Jun 2009 16:54:18 +0000 (18:54 +0200)]
libudev: doc - libudev-docs.sgml -> libudev-doc.xml

14 years agov4l_id: move from udev-extras
Kay Sievers [Tue, 16 Jun 2009 16:41:05 +0000 (18:41 +0200)]
v4l_id: move from udev-extras

14 years agoudev-acl: handle missing action when called in CK mode
Kay Sievers [Tue, 16 Jun 2009 16:11:40 +0000 (18:11 +0200)]
udev-acl: handle missing action when called in CK mode

14 years agoINSTALL: add --enable-extras
Kay Sievers [Tue, 16 Jun 2009 16:06:13 +0000 (18:06 +0200)]
INSTALL: add --enable-extras

14 years agogudev: move from udev-extras
David Zeuthen [Tue, 16 Jun 2009 15:52:15 +0000 (17:52 +0200)]
gudev: move from udev-extras

GObject libudev access. Initial version from Bastien Nocera, current
version by David Zeuthen.

14 years agoudev-acl: move from udev-extras
Kay Sievers [Tue, 16 Jun 2009 15:43:12 +0000 (17:43 +0200)]
udev-acl: move from udev-extras

The build of extras with larger external dependencies is wrapped in:
      --enable-extras

14 years agolibudev: doc - add empty libudev.types
Kay Sievers [Tue, 16 Jun 2009 13:38:40 +0000 (15:38 +0200)]
libudev: doc - add empty libudev.types

14 years agolibudev: remove prefix from .so version variables
Kay Sievers [Tue, 16 Jun 2009 12:56:10 +0000 (14:56 +0200)]
libudev: remove prefix from .so version variables

14 years agoTODO: update
Kay Sievers [Tue, 16 Jun 2009 12:21:08 +0000 (14:21 +0200)]
TODO: update

14 years agoautogen.sh: simplify
Kay Sievers [Tue, 16 Jun 2009 12:19:19 +0000 (14:19 +0200)]
autogen.sh: simplify

14 years agolibudev: move .so version to libudev Makefile
Kay Sievers [Tue, 16 Jun 2009 12:18:16 +0000 (14:18 +0200)]
libudev: move .so version to libudev Makefile

14 years agolibudev: doc - add namespace for index
Kay Sievers [Tue, 16 Jun 2009 01:02:46 +0000 (03:02 +0200)]
libudev: doc - add namespace for index

14 years agoupdate TODO
Kay Sievers [Tue, 16 Jun 2009 00:03:26 +0000 (02:03 +0200)]
update TODO

14 years agorules: Gentoo update
Matthias Schwarzott [Mon, 15 Jun 2009 22:44:39 +0000 (00:44 +0200)]
rules: Gentoo update

14 years agolibudev: doc - add queue
Kay Sievers [Mon, 15 Jun 2009 18:28:28 +0000 (20:28 +0200)]
libudev: doc - add queue

14 years agolibudev: doc - add enumerate
Kay Sievers [Mon, 15 Jun 2009 18:04:46 +0000 (20:04 +0200)]
libudev: doc - add enumerate

14 years agolibudev: doc - add section headers
Kay Sievers [Mon, 15 Jun 2009 15:09:43 +0000 (17:09 +0200)]
libudev: doc - add section headers

14 years agolibudev: update documentation
Kay Sievers [Mon, 15 Jun 2009 11:22:38 +0000 (13:22 +0200)]
libudev: update documentation

14 years agolibudev: add gtk-doc
Kay Sievers [Mon, 15 Jun 2009 11:22:21 +0000 (13:22 +0200)]
libudev: add gtk-doc

14 years agorules: Gentoo update
Matthias Schwarzott [Sun, 14 Jun 2009 16:27:52 +0000 (18:27 +0200)]
rules: Gentoo update

14 years agoUSE_LOG -> ENABLE_LOGGING, DEBUG -> ENABLE_DEBUG, USE_SELINUX -> WITH_SELINUX
Kay Sievers [Sun, 14 Jun 2009 15:53:15 +0000 (17:53 +0200)]
USE_LOG -> ENABLE_LOGGING, DEBUG -> ENABLE_DEBUG, USE_SELINUX -> WITH_SELINUX

14 years agoREADME: add INOTIFY and SIGNALFD
Kay Sievers [Thu, 11 Jun 2009 15:59:46 +0000 (17:59 +0200)]
README: add INOTIFY and SIGNALFD

14 years agoREADME: add kernel options
Kay Sievers [Thu, 11 Jun 2009 15:58:14 +0000 (17:58 +0200)]
README: add kernel options

14 years agoudevadm: info -revert "accept --query without argument"
Kay Sievers [Wed, 10 Jun 2009 13:55:24 +0000 (15:55 +0200)]
udevadm: info -revert "accept --query without argument"

Getopt is too dumb, the optional argument breaks "udevadm -q symlink".

14 years agoupdate NEWS
Kay Sievers [Tue, 9 Jun 2009 22:18:00 +0000 (00:18 +0200)]
update NEWS

14 years agorules: remove scsi ch module loading rule
Kay Sievers [Tue, 9 Jun 2009 22:17:35 +0000 (00:17 +0200)]
rules: remove scsi ch module loading rule

14 years agolibudev: rename private files to *-private.c
Kay Sievers [Tue, 9 Jun 2009 21:12:12 +0000 (23:12 +0200)]
libudev: rename private files to *-private.c

14 years agomove common stuff from udev/ to private parts of libudev/
Kay Sievers [Tue, 9 Jun 2009 21:05:25 +0000 (23:05 +0200)]
move common stuff from udev/ to private parts of libudev/

14 years agomove syslog wrapper to libudev
Kay Sievers [Tue, 9 Jun 2009 20:47:48 +0000 (22:47 +0200)]
move syslog wrapper to libudev

14 years agolibudev: call log functions conditionally
Kay Sievers [Tue, 9 Jun 2009 17:03:39 +0000 (19:03 +0200)]
libudev: call log functions conditionally

14 years agoudevd: log info for created/killed workers
Kay Sievers [Tue, 9 Jun 2009 16:31:14 +0000 (18:31 +0200)]
udevd: log info for created/killed workers

14 years agolibudev: device_new() -> udev_device_new()
Kay Sievers [Tue, 9 Jun 2009 11:11:23 +0000 (13:11 +0200)]
libudev: device_new() -> udev_device_new()

14 years agofix libudev include in Makefile.am.in
Kay Sievers [Mon, 8 Jun 2009 20:25:58 +0000 (22:25 +0200)]
fix libudev include in Makefile.am.in

14 years agolibudev: move to top-level directory
Kay Sievers [Mon, 8 Jun 2009 19:36:06 +0000 (21:36 +0200)]
libudev: move to top-level directory

14 years agolibudev: add comments to libudev.h
Kay Sievers [Mon, 8 Jun 2009 17:31:07 +0000 (19:31 +0200)]
libudev: add comments to libudev.h

14 years agopath_id: rename scsi sub-fuctions
Kay Sievers [Mon, 8 Jun 2009 17:22:53 +0000 (19:22 +0200)]
path_id: rename scsi sub-fuctions

14 years agoudevd: print error if worker dies unexpectedly
Kay Sievers [Mon, 8 Jun 2009 15:16:48 +0000 (17:16 +0200)]
udevd: print error if worker dies unexpectedly

14 years agopath_id: delete old shell script
Kay Sievers [Mon, 8 Jun 2009 14:51:13 +0000 (16:51 +0200)]
path_id: delete old shell script

Removed with this is SAS disk support which never really worked properly,
and legacy IDE disk support, which can be re-implemented if needed.

14 years agopath_id: add iscsi support
Kay Sievers [Mon, 8 Jun 2009 14:48:27 +0000 (16:48 +0200)]
path_id: add iscsi support

14 years agopath_id: handle fibre channel
Kay Sievers [Mon, 8 Jun 2009 12:56:49 +0000 (14:56 +0200)]
path_id: handle fibre channel

14 years agoudevadm: monitor --environment -> --property
Kay Sievers [Sun, 7 Jun 2009 01:07:33 +0000 (03:07 +0200)]
udevadm: monitor --environment -> --property

14 years agoudevadm: control - --env -> --property
Kay Sievers [Sun, 7 Jun 2009 00:53:35 +0000 (02:53 +0200)]
udevadm: control - --env -> --property

14 years agoudevadm: info - accept --query without a value and print properties
Kay Sievers [Sun, 7 Jun 2009 00:39:54 +0000 (02:39 +0200)]
udevadm: info - accept --query without a value and print properties

14 years agoudevadm: trigger - add --property-match=<key>:<value>
Kay Sievers [Sun, 7 Jun 2009 00:07:54 +0000 (02:07 +0200)]
udevadm: trigger - add --property-match=<key>:<value>

14 years agolibudev: enumerate - allow multiple keys with the same name
Kay Sievers [Sat, 6 Jun 2009 23:51:38 +0000 (01:51 +0200)]
libudev: enumerate - allow multiple keys with the same name

14 years agofix signed/unsigned warning
Kay Sievers [Sat, 6 Jun 2009 19:19:56 +0000 (21:19 +0200)]
fix signed/unsigned warning

14 years agopath_id: add comments
Kay Sievers [Sat, 6 Jun 2009 18:36:46 +0000 (20:36 +0200)]
path_id: add comments

14 years agopath_id: update SCSI handling
Kay Sievers [Sat, 6 Jun 2009 18:30:56 +0000 (20:30 +0200)]
path_id: update SCSI handling

14 years agopath_id: implement in C using libudev
Kay Sievers [Sat, 6 Jun 2009 14:07:06 +0000 (16:07 +0200)]
path_id: implement in C using libudev

14 years agocleanup $attr{} substitution
Kay Sievers [Sat, 6 Jun 2009 02:54:41 +0000 (04:54 +0200)]
cleanup $attr{} substitution

14 years agoallow format substitution in path of ATTR{<path>}=="<value>"
Kay Sievers [Sat, 6 Jun 2009 02:52:52 +0000 (04:52 +0200)]
allow format substitution in path of ATTR{<path>}=="<value>"

14 years agoudevd: use enum instead of char in struct declaration
Kay Sievers [Fri, 5 Jun 2009 21:27:11 +0000 (23:27 +0200)]
udevd: use enum instead of char in struct declaration

14 years agorules: make RFKILL control device world readable
Marcel Holtmann [Fri, 5 Jun 2009 13:09:05 +0000 (15:09 +0200)]
rules: make RFKILL control device world readable

14 years agorules: do not call path_id for virtual devices
Kay Sievers [Thu, 4 Jun 2009 01:21:33 +0000 (03:21 +0200)]
rules: do not call path_id for virtual devices

14 years agoudevd: close netlink socket in worker and set cloexec
Kay Sievers [Thu, 4 Jun 2009 00:49:42 +0000 (02:49 +0200)]
udevd: close netlink socket in worker and set cloexec

14 years agoudevd: convert to event worker processes
Kay Sievers [Wed, 3 Jun 2009 23:44:04 +0000 (01:44 +0200)]
udevd: convert to event worker processes

Event processes now get re-used after they handled an event. This reduces
pressure on the CPU significantly because cloned event processes no longer
cause page faults in the main daemon. After the events have settled, the
no longer needed worker processes get killed.

14 years agostr[sp]cpyl: add __attribute__ ((sentinel))
Kay Sievers [Mon, 1 Jun 2009 19:10:29 +0000 (21:10 +0200)]
str[sp]cpyl: add __attribute__ ((sentinel))

14 years agoudevd: remove check for dev_t, DEVPATH_OLD takes care of that
Kay Sievers [Fri, 29 May 2009 16:54:03 +0000 (18:54 +0200)]
udevd: remove check for dev_t, DEVPATH_OLD takes care of that

14 years agoudevadm: settle - add --exit-if-exists=<file>
Kay Sievers [Fri, 29 May 2009 12:05:39 +0000 (14:05 +0200)]
udevadm: settle - add --exit-if-exists=<file>

14 years agocdrom_id: add error message if open() fails
Kay Sievers [Fri, 29 May 2009 11:21:38 +0000 (13:21 +0200)]
cdrom_id: add error message if open() fails

14 years agoudevadm: control - add comment to man page about --reload-rules
Kay Sievers [Thu, 28 May 2009 17:21:35 +0000 (19:21 +0200)]
udevadm: control - add comment to man page about --reload-rules

14 years agoudevd: queue-export - fix crash
Alan Jenkins [Thu, 28 May 2009 16:59:06 +0000 (17:59 +0100)]
udevd: queue-export - fix crash

The math in skip_to() was the wrong way round and allocated a
variable size array on the stack with a massively negative size.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
14 years agoudev-selinux.c: remove libudev header
Alan Jenkins [Thu, 28 May 2009 10:50:10 +0000 (12:50 +0200)]
udev-selinux.c: remove libudev header

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
14 years agocdrom_id: suppress ID_CDROM_MEDIA_STATE=blank for plain non-writable CDROM media
Kay Sievers [Mon, 25 May 2009 22:50:45 +0000 (00:50 +0200)]
cdrom_id: suppress ID_CDROM_MEDIA_STATE=blank for plain non-writable CDROM media

Some broken fake cdrom drives return ID_CDROM_MEDIA_STATE=blank.

  $ /lib/udev/cdrom_id -d /dev/sr1
  main: probing: '/dev/sr1'
  cd_inquiry: INQUIRY: [Nokia   ][S60             ][1.0 ]
  cd_profiles: GET CONFIGURATION: number of profiles 76
  cd_profiles: current profile 0x08
  cd_media_toc: READ TOC: len: 12
  cd_media_toc: last track 1 starts at block 0
  cd_media_info: disk type 00
  ID_CDROM=1
  ID_CDROM_MRW=1
  ID_CDROM_MRW_W=1
  ID_CDROM_MEDIA=1
  ID_CDROM_MEDIA_CD=1
  ID_CDROM_MEDIA_STATE=blank

Others work fine, but ID_CDROM_MEDIA_STATE is not needed for non-writable CDROM media:

  $ /lib/udev/cdrom_id -d /dev/sr1
  main: probing: '/dev/sr1'
  cd_inquiry: INQUIRY: [SanDisk ][U3 Cruzer Micro ][8.02]
  cd_profiles: GET CONFIGURATION: number of profiles 72
  cd_profiles: current profile 0x08
  cd_media_toc: READ TOC: len: 20
  cd_media_toc: track=1 info=0x4(data) start_block=0
  cd_media_toc: last track 1 starts at block 0
  cd_media_info: disk type 00
  ID_CDROM=1
  ID_CDROM_MRW=1
  ID_CDROM_MRW_W=1
  ID_CDROM_MEDIA=1
  ID_CDROM_MEDIA_CD=1
  ID_CDROM_MEDIA_STATE=complete
  ID_CDROM_MEDIA_SESSION_COUNT=1
  ID_CDROM_MEDIA_TRACK_COUNT=1
  ID_CDROM_MEDIA_TRACK_COUNT_DATA=1

14 years agotest: check string substitutions in OWNER and GROUP
Benjamin Gilbert [Fri, 22 May 2009 18:54:46 +0000 (20:54 +0200)]
test: check string substitutions in OWNER and GROUP

String substitutions in OWNER and GROUP keys were broken in udev 137-142.
Explicitly test for this, since such breakage will not manifest in typical
rulesets.

14 years agorules: add SUBSYSTEM match to scsi rules
Kay Sievers [Fri, 22 May 2009 14:44:53 +0000 (16:44 +0200)]
rules: add SUBSYSTEM match to scsi rules

On Fri, May 22, 2009 at 16:15, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
> I've been looking at what is responsible for all the path lookup activity in
> coldplug.  On my debian stable system, it looks like every device gets its
> parent looked up in sysfs.  I think this is due to SUBSYSTEMS matches.
>
> I see the udev default rules are different, but it looks like they still
> test for SUBSYSTEMS on every single device. Should we add SUBSYSTEM="scsi_generic"
> to these three rules?

14 years agoupdate NEWS
Kay Sievers [Thu, 21 May 2009 21:52:09 +0000 (23:52 +0200)]
update NEWS

14 years agoudevadm: settle - make --timeout=0 working
Kay Sievers [Thu, 21 May 2009 21:49:53 +0000 (23:49 +0200)]
udevadm: settle - make --timeout=0 working

14 years agoudevd: implement a more efficient queue file format
Alan Jenkins [Thu, 21 May 2009 20:22:37 +0000 (22:22 +0200)]
udevd: implement a more efficient queue file format

Directory lookups show up in profiling. The queue files are responsible
for a large proportion of file-related system calls in udev coldplug.

Instead of creating a file for each event, append their details to a
log file.  The file is periodically rebuilt (garbage-collected) to
prevent it from growing indefinitely.

This single queue file replaces both the queue directory and the
uevent_seqnum file. On desktop systems the file tends not to grow
beyond one page. So it should also save a small amount of memory in
tmpfs.

Tests on a running EeePC indicate average savings of 5% *udevd* cpu time
as measured by oprofile. __link_path_walk is reduced from 1.5% to
1.3%. It is not completely clear where the rest of the gains come from.

In tests running ~400 events, the queue file is rebuilt about 5 times.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
14 years agoudevd: remove tiny bit of dead code
Alan Jenkins [Thu, 21 May 2009 16:31:43 +0000 (18:31 +0200)]
udevd: remove tiny bit of dead code

14 years agofix location of database files
Kay Sievers [Wed, 20 May 2009 23:44:45 +0000 (01:44 +0200)]
fix location of database files

14 years agokeep the ifdef'd udevd testing/profiling hack
Kay Sievers [Wed, 20 May 2009 23:20:18 +0000 (01:20 +0200)]
keep the ifdef'd udevd testing/profiling hack

14 years agorequire key names in uppercase
Kay Sievers [Wed, 20 May 2009 21:45:32 +0000 (23:45 +0200)]
require key names in uppercase

Drop pretty expensive case-insensitive matching, and key names in
mixed or lowercase are not supported anyway.

14 years agoremove unused GL_FORMAT from rules parser
Kay Sievers [Wed, 20 May 2009 21:12:22 +0000 (23:12 +0200)]
remove unused GL_FORMAT from rules parser

14 years agoupdate TODO
Kay Sievers [Wed, 20 May 2009 17:43:26 +0000 (19:43 +0200)]
update TODO

14 years agouse openat(), unlinkat(), fstatat()
Kay Sievers [Wed, 20 May 2009 16:58:52 +0000 (18:58 +0200)]
use openat(), unlinkat(), fstatat()

14 years agoedd_id: use openat()
Kay Sievers [Wed, 20 May 2009 16:10:26 +0000 (18:10 +0200)]
edd_id: use openat()

14 years agouse more efficient string copying
Kay Sievers [Wed, 20 May 2009 15:57:52 +0000 (17:57 +0200)]
use more efficient string copying

14 years agoudevadm: settle - fix timeout
Alan Jenkins [Wed, 20 May 2009 14:12:22 +0000 (16:12 +0200)]
udevadm: settle - fix timeout

The timeout wasn't working when settle was run as root:
  # udevadm control --stop-exec-queue
  # udevadm trigger
  # udevadm settle --timeout=1
  ... (hangs)

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
14 years agoremove format char string truncation syntax
Kay Sievers [Tue, 19 May 2009 10:56:17 +0000 (12:56 +0200)]
remove format char string truncation syntax

14 years agoOWNER/GROUP: fix if logic
Scott James Remnant [Thu, 14 May 2009 11:42:44 +0000 (12:42 +0100)]
OWNER/GROUP: fix if logic

The introduction of the --resolve-names=early/never code introduced a
bug to the OWNER/GROUP lookup.  Previously if the name had contained $,
lookup would have been performed later; after the patch, the key ended
up being ignored!

14 years agorule-generator: cd - skip by-path links if we create by-id links
Kay Sievers [Thu, 14 May 2009 10:57:19 +0000 (12:57 +0200)]
rule-generator: cd - skip by-path links if we create by-id links

14 years agoRevert "rules: v4l do not mix vbi and video nodes"
Kay Sievers [Wed, 13 May 2009 22:32:25 +0000 (00:32 +0200)]
Revert "rules: v4l do not mix vbi and video nodes"

This reverts commit 6205f1186e4980544ea425d31770358d1b2579e4.

14 years agofix possible endless loop for GOTO to non-existent LABEL
Kay Sievers [Wed, 13 May 2009 16:01:32 +0000 (18:01 +0200)]
fix possible endless loop for GOTO to non-existent LABEL

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526365

14 years agorules: v4l do not mix vbi and video nodes
Kay Sievers [Wed, 13 May 2009 15:55:08 +0000 (17:55 +0200)]
rules: v4l do not mix vbi and video nodes

14 years agoversion bump
Kay Sievers [Wed, 13 May 2009 01:13:08 +0000 (03:13 +0200)]
version bump

14 years agorelease 142
Kay Sievers [Wed, 13 May 2009 00:35:37 +0000 (02:35 +0200)]
release 142