chiark / gitweb /
elogind.git
11 years agotest: replace ancient sysfs tree with recent one
Kay Sievers [Mon, 29 Sep 2008 02:12:44 +0000 (04:12 +0200)]
test: replace ancient sysfs tree with recent one

11 years agolibudev: enumerate - split new() and scan()
Kay Sievers [Mon, 29 Sep 2008 00:00:17 +0000 (02:00 +0200)]
libudev: enumerate - split new() and scan()

11 years agolibudev: enumerate - scan /sys/block/ if needed
Kay Sievers [Sun, 28 Sep 2008 21:17:29 +0000 (23:17 +0200)]
libudev: enumerate - scan /sys/block/ if needed

11 years agolibudev: enumerate "subsystem"
Kay Sievers [Sun, 28 Sep 2008 20:18:40 +0000 (22:18 +0200)]
libudev: enumerate "subsystem"

11 years agolibudev: enumerate - accept list of subsystems to scan, or skip
Kay Sievers [Sun, 28 Sep 2008 15:39:31 +0000 (17:39 +0200)]
libudev: enumerate - accept list of subsystems to scan, or skip

11 years agoavoid repeated scans for goto targets (udev_iter_find_label)
Alan Jenkins [Sun, 28 Sep 2008 11:02:44 +0000 (12:02 +0100)]
avoid repeated scans for goto targets (udev_iter_find_label)

The scans are now performed up-front at parse-time, instead of being
repeated for each event at run-time.

Cachegrind reports a 5% reduction in cpu cycles
(excluding the time spent in-kernel).

11 years agotrivial cleanup in udev_rules_iter
Alan Jenkins [Sun, 28 Sep 2008 11:01:38 +0000 (12:01 +0100)]
trivial cleanup in udev_rules_iter

11 years agolubudev: accept more sys directories as devices, and parent devices
Kay Sievers [Sun, 28 Sep 2008 01:34:57 +0000 (03:34 +0200)]
lubudev: accept more sys directories as devices, and parent devices

11 years agolibudev: more list rework
Kay Sievers [Sat, 27 Sep 2008 23:34:55 +0000 (01:34 +0200)]
libudev: more list rework

11 years agolibudev: rework list handling
Kay Sievers [Fri, 26 Sep 2008 17:44:53 +0000 (19:44 +0200)]
libudev: rework list handling

11 years agolibudev: device - read database only when needed
Kay Sievers [Fri, 26 Sep 2008 17:43:32 +0000 (19:43 +0200)]
libudev: device - read database only when needed

11 years agolibudev: initialize selinux only when needed
Kay Sievers [Fri, 26 Sep 2008 17:43:14 +0000 (19:43 +0200)]
libudev: initialize selinux only when needed

11 years agolibudev: enumerate_get_devices_list -> enumerate_get_list
Kay Sievers [Fri, 26 Sep 2008 17:41:50 +0000 (19:41 +0200)]
libudev: enumerate_get_devices_list -> enumerate_get_list

11 years agolibudev: get devnum from uevent file
Kay Sievers [Thu, 25 Sep 2008 21:26:22 +0000 (14:26 -0700)]
libudev: get devnum from uevent file

11 years agolibudev: replace awkward callback list interfaces with list iterators
Kay Sievers [Thu, 25 Sep 2008 11:20:27 +0000 (04:20 -0700)]
libudev: replace awkward callback list interfaces with list iterators

11 years agolibudev: add userdata pointer
Kay Sievers [Thu, 25 Sep 2008 04:39:29 +0000 (21:39 -0700)]
libudev: add userdata pointer

11 years agolibudev: also import "uevent" file when reading udev database
Kay Sievers [Wed, 24 Sep 2008 19:25:31 +0000 (12:25 -0700)]
libudev: also import "uevent" file when reading udev database

11 years agolibudev: add udev_device_new_from_devnum()
Kay Sievers [Mon, 22 Sep 2008 06:28:56 +0000 (23:28 -0700)]
libudev: add udev_device_new_from_devnum()

11 years agolibudev: udev_device_get_devname -> udev_device_get_devnode
Kay Sievers [Sat, 20 Sep 2008 07:01:20 +0000 (00:01 -0700)]
libudev: udev_device_get_devname -> udev_device_get_devnode

11 years agoalways include config.h from Makefile
Kay Sievers [Sat, 20 Sep 2008 06:03:49 +0000 (23:03 -0700)]
always include config.h from Makefile

11 years agoscsi_id: compiler warning on 32-bit
Alan Jenkins [Fri, 19 Sep 2008 14:53:25 +0000 (14:53 +0000)]
scsi_id: compiler warning on 32-bit

The sg_io_v4 interface passes pointers as u64s.  It turns out GCC
disapproves of us casting a u64 straight to a 32 bit pointer.

cc1: warnings being treated as errors
scsi_serial.c: In function ‘sg_err_category4’:
scsi_serial.c:159: warning: cast to pointer from integer of different size
scsi_serial.c: In function ‘scsi_dump_v4’:
scsi_serial.c:303: warning: cast to pointer from integer of different size

11 years agolibudev: fix "subsystem" value
Kay Sievers [Thu, 18 Sep 2008 06:58:38 +0000 (23:58 -0700)]
libudev: fix "subsystem" value

11 years agolibudev: pass udev_device in enumerate
Kay Sievers [Thu, 18 Sep 2008 06:32:43 +0000 (23:32 -0700)]
libudev: pass udev_device in enumerate

11 years agofix udevadm trigger
Kay Sievers [Tue, 16 Sep 2008 23:32:42 +0000 (16:32 -0700)]
fix udevadm trigger

11 years agoudev-test.pl: set non-zero exitcode if tests fail
Alan Jenkins [Tue, 16 Sep 2008 17:03:42 +0000 (10:03 -0700)]
udev-test.pl: set non-zero exitcode if tests fail

11 years agofix broken symlink resolving
Kay Sievers [Tue, 16 Sep 2008 16:53:36 +0000 (09:53 -0700)]
fix broken symlink resolving

11 years agovol_id: fix lib logging glue
Kay Sievers [Tue, 16 Sep 2008 07:40:47 +0000 (00:40 -0700)]
vol_id: fix lib logging glue

11 years agolibudev: rename ctrl_msg to ctrl_msg_wire
Kay Sievers [Tue, 16 Sep 2008 01:01:15 +0000 (18:01 -0700)]
libudev: rename ctrl_msg to ctrl_msg_wire

11 years agolibudev: switch API from devpath to syspath
Kay Sievers [Tue, 16 Sep 2008 00:12:47 +0000 (17:12 -0700)]
libudev: switch API from devpath to syspath

11 years agoudevadm: info - fix lookup-by-name
Kay Sievers [Mon, 15 Sep 2008 19:01:35 +0000 (12:01 -0700)]
udevadm: info - fix lookup-by-name

11 years agolibudev: handle "device" link as parent, handle "class" "block" as "subsystem"
Kay Sievers [Mon, 15 Sep 2008 18:19:56 +0000 (11:19 -0700)]
libudev: handle "device" link as parent, handle "class" "block" as "subsystem"

11 years agolibudev: udev_device - add attribute cache
Kay Sievers [Sat, 13 Sep 2008 19:09:28 +0000 (21:09 +0200)]
libudev: udev_device - add attribute cache

11 years agolibudev: switch to "udev_device_get_parent"
Kay Sievers [Thu, 11 Sep 2008 22:58:40 +0000 (00:58 +0200)]
libudev: switch to "udev_device_get_parent"

11 years agorelease 128
Kay Sievers [Thu, 11 Sep 2008 15:09:57 +0000 (17:09 +0200)]
release 128

11 years agoudevadm: info - use "udev_device"
Kay Sievers [Thu, 11 Sep 2008 15:08:12 +0000 (17:08 +0200)]
udevadm: info - use "udev_device"

11 years agouse size definitions from libudev
Kay Sievers [Wed, 10 Sep 2008 19:50:21 +0000 (21:50 +0200)]
use size definitions from libudev

11 years agoget rid of udev_sysdeps.c
Kay Sievers [Wed, 10 Sep 2008 16:59:42 +0000 (18:59 +0200)]
get rid of udev_sysdeps.c

11 years agoconvert to libudev and delete udev_utils_string.c
Kay Sievers [Wed, 10 Sep 2008 16:39:23 +0000 (18:39 +0200)]
convert to libudev and delete udev_utils_string.c

11 years agoextras: use libudev code
Kay Sievers [Wed, 10 Sep 2008 16:24:39 +0000 (18:24 +0200)]
extras: use libudev code

11 years agolibudev: do not use any udev source file
Kay Sievers [Wed, 10 Sep 2008 16:00:31 +0000 (18:00 +0200)]
libudev: do not use any udev source file

11 years agolibudev: rename libudev-utils.c libudev-util.c
Kay Sievers [Wed, 10 Sep 2008 15:12:33 +0000 (17:12 +0200)]
libudev: rename libudev-utils.c libudev-util.c

11 years agolibudev: get rid of udev_utils.c
Kay Sievers [Wed, 10 Sep 2008 15:08:24 +0000 (17:08 +0200)]
libudev: get rid of udev_utils.c

11 years agolibudev: get rid of udev_sysfs.c
Kay Sievers [Wed, 10 Sep 2008 12:29:07 +0000 (14:29 +0200)]
libudev: get rid of udev_sysfs.c

11 years agolibudev: do not use udev_db.c
Kay Sievers [Wed, 10 Sep 2008 12:17:36 +0000 (14:17 +0200)]
libudev: do not use udev_db.c

11 years agolibudev: udev_device - add more properties
Kay Sievers [Wed, 10 Sep 2008 08:09:34 +0000 (10:09 +0200)]
libudev: udev_device - add more properties

11 years agoupdate file headers
Kay Sievers [Wed, 10 Sep 2008 00:40:42 +0000 (02:40 +0200)]
update file headers

11 years agovolume_id: merge util.h in libvolume_id-private.h
Kay Sievers [Wed, 10 Sep 2008 00:31:11 +0000 (02:31 +0200)]
volume_id: merge util.h in libvolume_id-private.h

11 years agolibudev: initialize selinux after logging
Kay Sievers [Tue, 9 Sep 2008 23:47:51 +0000 (01:47 +0200)]
libudev: initialize selinux after logging

11 years agolibudev: add selinux
Kay Sievers [Tue, 9 Sep 2008 22:46:17 +0000 (00:46 +0200)]
libudev: add selinux

11 years agolibudev: rename enumerate function
Kay Sievers [Tue, 9 Sep 2008 20:10:33 +0000 (22:10 +0200)]
libudev: rename enumerate function

11 years agolibudev: udev_device - read "driver" value
Kay Sievers [Tue, 9 Sep 2008 16:14:54 +0000 (18:14 +0200)]
libudev: udev_device - read "driver" value

11 years agoudevadm: monitor - use libudev code to retrieve device data
Kay Sievers [Tue, 9 Sep 2008 15:41:17 +0000 (17:41 +0200)]
udevadm: monitor - use libudev code to retrieve device data

11 years agolibudev: monitor- add netlink uevent support
Kay Sievers [Tue, 9 Sep 2008 15:38:10 +0000 (17:38 +0200)]
libudev: monitor- add netlink uevent support

11 years agoudevd: remove max_childs_running logic
Kay Sievers [Tue, 9 Sep 2008 13:14:38 +0000 (15:14 +0200)]
udevd: remove max_childs_running logic

This was needed in the old days, where all the hotplug scripts did
nothing better than sleep for seconds to work around timing issues.
It made sure, that w continued to fork processes, while the machine
was doing nothing than sleeping, but the maximim number of childs
was already reached. This is no longer needed today, we do not run
many of these scripts anymore.

11 years agoudevadm: log message if udevadm link is used
Kay Sievers [Tue, 9 Sep 2008 12:48:42 +0000 (14:48 +0200)]
udevadm: log message if udevadm link is used

11 years agolibudev: monitor - add event properties to udev_device
Kay Sievers [Tue, 9 Sep 2008 12:37:36 +0000 (14:37 +0200)]
libudev: monitor - add event properties to udev_device

11 years agoudevadm: monitor - use libudev for udev monitor
Kay Sievers [Tue, 9 Sep 2008 12:07:08 +0000 (14:07 +0200)]
udevadm: monitor - use libudev for udev monitor

11 years agoadd a bunch of private device properties to udev_device
Kay Sievers [Tue, 9 Sep 2008 12:06:20 +0000 (14:06 +0200)]
add a bunch of private device properties to udev_device

11 years agofix off-by-one in pass_env_to_socket()
Alan Jenkins [Mon, 8 Sep 2008 22:48:17 +0000 (00:48 +0200)]
fix off-by-one in pass_env_to_socket()

11 years agotest-udev: remove unused var
Kay Sievers [Mon, 8 Sep 2008 22:47:48 +0000 (00:47 +0200)]
test-udev: remove unused var

11 years agothreadsafe rules iteration
Alan Jenkins [Mon, 8 Sep 2008 22:09:49 +0000 (00:09 +0200)]
threadsafe rules iteration

Move ->current out of "struct udev_rules" and into a new "struct udev_rules_iter".

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
11 years agotest-udev: cleanup libudev context and overridden rules file string
Kay Sievers [Mon, 8 Sep 2008 22:08:42 +0000 (00:08 +0200)]
test-udev: cleanup libudev context and overridden rules file string

11 years agoremove redundant "remove trailing newlines" in udevadm info
Alan Jenkins [Mon, 8 Sep 2008 20:02:07 +0000 (22:02 +0200)]
remove redundant "remove trailing newlines" in udevadm info

11 years agoremove redundant string copy in udev_rules_apply_format()
Alan Jenkins [Mon, 8 Sep 2008 19:59:27 +0000 (21:59 +0200)]
remove redundant string copy in udev_rules_apply_format()

11 years agofix name compare bug name_list_key_add()
Alan Jenkins [Mon, 8 Sep 2008 19:51:30 +0000 (21:51 +0200)]
fix name compare bug name_list_key_add()

The search for an existing key e.g. FOO would match longer
keys e.g. FOOBAR. Reuse the correct code from name_list_remove().

11 years agoudev-test.pl: set udev_log="err"
Kay Sievers [Mon, 8 Sep 2008 19:50:17 +0000 (21:50 +0200)]
udev-test.pl: set udev_log="err"

11 years agomove udev_ctrl to libudev-private
Kay Sievers [Mon, 8 Sep 2008 15:59:00 +0000 (17:59 +0200)]
move udev_ctrl to libudev-private

11 years agoudevadm: add --version --help options to man page, hide them as commands
Kay Sievers [Sun, 7 Sep 2008 12:48:33 +0000 (14:48 +0200)]
udevadm: add --version --help options to man page, hide them as commands

11 years agovol_id: add --debug option
Kay Sievers [Sat, 6 Sep 2008 14:37:00 +0000 (16:37 +0200)]
vol_id: add --debug option

11 years agovolume_id: linux_raid - fix logic for volumes with size == 0
Kay Sievers [Sat, 6 Sep 2008 14:23:21 +0000 (16:23 +0200)]
volume_id: linux_raid - fix logic for volumes with size == 0

11 years agouse libudev code, unify logging, pass udev context around everywhere
Kay Sievers [Sat, 6 Sep 2008 13:45:31 +0000 (15:45 +0200)]
use libudev code, unify logging, pass udev context around everywhere

11 years agoautogen.sh: add debug
Kay Sievers [Sat, 6 Sep 2008 13:22:19 +0000 (15:22 +0200)]
autogen.sh: add debug

11 years agoudevadm: move init from commands to udevadm
Kay Sievers [Thu, 4 Sep 2008 08:34:48 +0000 (10:34 +0200)]
udevadm: move init from commands to udevadm

11 years agoudevadm: split out control functions
Kay Sievers [Wed, 3 Sep 2008 21:48:44 +0000 (23:48 +0200)]
udevadm: split out control functions

11 years agoudevadm: rename internal functions to udevadm_*
Kay Sievers [Wed, 3 Sep 2008 21:38:32 +0000 (23:38 +0200)]
udevadm: rename internal functions to udevadm_*

11 years agoudevadm: rename source files
Kay Sievers [Wed, 3 Sep 2008 21:33:06 +0000 (23:33 +0200)]
udevadm: rename source files

11 years agoudev-test.pl: remove left-over comment from --valgrind option
Kay Sievers [Wed, 3 Sep 2008 20:00:55 +0000 (22:00 +0200)]
udev-test.pl: remove left-over comment from --valgrind option

11 years agoudevadm: print warning to stderr if udevadm is called by symlink
Kay Sievers [Wed, 3 Sep 2008 19:59:21 +0000 (21:59 +0200)]
udevadm: print warning to stderr if udevadm is called by symlink

11 years agoudevadm: control - use getopt_long()
Kay Sievers [Wed, 3 Sep 2008 19:56:47 +0000 (21:56 +0200)]
udevadm: control - use getopt_long()

11 years agoudevadm: info - fix broken --device-id-of-file=
Kay Sievers [Wed, 3 Sep 2008 17:50:36 +0000 (19:50 +0200)]
udevadm: info - fix broken --device-id-of-file=

11 years agoremove deprecated envp[] in main()
Alan Jenkins [Tue, 2 Sep 2008 21:19:36 +0000 (23:19 +0200)]
remove deprecated envp[] in main()

envp is not standardized, and may become invalid when environment variables
are modified.  Since udev never actually uses it, we can simply remove it.

Should anyone miss it in future, they can use the standardized environ
variable - like udev_rules.c does already.

11 years agoudev_device_init() remove statically allocated device support
Kay Sievers [Mon, 1 Sep 2008 18:59:09 +0000 (20:59 +0200)]
udev_device_init() remove statically allocated device support

11 years agodo not needlessly declare some local variables in udev_rules_parse.c as static
Alan Jenkins [Mon, 1 Sep 2008 17:46:19 +0000 (19:46 +0200)]
do not needlessly declare some local variables in udev_rules_parse.c as static

11 years agolibudev: add udev_device_get_syspath()
Kay Sievers [Mon, 1 Sep 2008 16:52:22 +0000 (18:52 +0200)]
libudev: add udev_device_get_syspath()

11 years agolibudev: fix monitor documentation
Kay Sievers [Mon, 1 Sep 2008 14:41:41 +0000 (16:41 +0200)]
libudev: fix monitor documentation

11 years agoremove FAQ
Kay Sievers [Mon, 1 Sep 2008 14:40:31 +0000 (16:40 +0200)]
remove FAQ

11 years agovolume_id: fail on undefined __BYTE_ORDER
Kay Sievers [Mon, 1 Sep 2008 14:39:34 +0000 (16:39 +0200)]
volume_id: fail on undefined __BYTE_ORDER

11 years agolibudev: libudev.pc add Libs.private
Kay Sievers [Mon, 1 Sep 2008 14:38:10 +0000 (16:38 +0200)]
libudev: libudev.pc add Libs.private

11 years agofix uninitialized name_list error::ignore_error
Alan Jenkins [Mon, 1 Sep 2008 14:36:43 +0000 (16:36 +0200)]
fix uninitialized name_list error::ignore_error

Running udevd under valgrind (and then udevtrigger):

==17705== Conditional jump or move depends on uninitialised value(s)
==17705==    at 0x407BBB: udev_rules_run (udev_rules.c:522)
==17705==    by 0x4109F0: udev_event_process (udevd.c:145)
==17705==    by 0x410E2C: udev_event_run (udevd.c:251)
==17705==    by 0x411A8D: msg_queue_manager (udevd.c:581)
==17705==    by 0x41386B: main (udevd.c:1284)

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
11 years agoudev-test.pl: add --valgrind option
Kay Sievers [Mon, 1 Sep 2008 14:20:06 +0000 (16:20 +0200)]
udev-test.pl: add --valgrind option

11 years agofix dangling pointer returned by attr_get_by_subsys_id()
Kay Sievers [Mon, 1 Sep 2008 08:21:05 +0000 (10:21 +0200)]
fix dangling pointer returned by attr_get_by_subsys_id()

Thanks to Alan Jenkins <alan-jenkins@tuffmail.co.uk> for
finding this.

11 years agovolume_id: hfs - calculate proper uuid
Kay Sievers [Sun, 31 Aug 2008 10:20:24 +0000 (12:20 +0200)]
volume_id: hfs - calculate proper uuid

11 years agoautogen.sh: add --with-selinux
Kay Sievers [Sat, 30 Aug 2008 21:08:19 +0000 (23:08 +0200)]
autogen.sh: add --with-selinux

11 years agolibudev: fix --disable-log
Kay Sievers [Sat, 30 Aug 2008 21:07:50 +0000 (23:07 +0200)]
libudev: fix --disable-log

11 years agolibudev: add monitor documentation
Kay Sievers [Sat, 30 Aug 2008 14:16:37 +0000 (16:16 +0200)]
libudev: add monitor documentation

11 years agorelease 127
Kay Sievers [Fri, 29 Aug 2008 19:41:15 +0000 (21:41 +0200)]
release 127

11 years agolibudev: require LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
Kay Sievers [Fri, 29 Aug 2008 19:22:24 +0000 (21:22 +0200)]
libudev: require LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE

11 years agofirmware.sh: lookup lookup kernel provided firmware directory
Kay Sievers [Fri, 29 Aug 2008 19:00:43 +0000 (21:00 +0200)]
firmware.sh: lookup lookup kernel provided firmware directory

11 years agolibudev: link against selinux if needed
Kay Sievers [Fri, 29 Aug 2008 18:48:25 +0000 (20:48 +0200)]
libudev: link against selinux if needed

11 years agosplit udev_device.c to leave out rules handling from libudev
Kay Sievers [Fri, 29 Aug 2008 18:32:05 +0000 (20:32 +0200)]
split udev_device.c to leave out rules handling from libudev