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

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

12 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

12 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

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

12 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

12 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

12 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

12 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

12 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

12 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

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

12 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

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

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

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

12 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

12 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

12 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

12 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.

12 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

12 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

12 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

12 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

12 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()

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

12 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>
12 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

12 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

12 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()

12 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().

12 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"

12 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

12 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

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

12 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

12 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

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

12 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

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

12 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_*

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

12 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

12 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

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

12 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=

12 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.

12 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

12 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

12 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()

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

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

12 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

12 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

12 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>
12 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

12 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.

12 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

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

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

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

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

12 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

12 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

12 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

12 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

12 years agovolume_id: remove left-over fd close()
Kay Sievers [Fri, 29 Aug 2008 15:06:08 +0000 (17:06 +0200)]
volume_id: remove left-over fd close()

12 years agovolume_id: remove deprecated functions and bump major version
Kay Sievers [Thu, 28 Aug 2008 21:39:41 +0000 (23:39 +0200)]
volume_id: remove deprecated functions and bump major version

12 years agolibudev: add udev event monitor API
Kay Sievers [Thu, 28 Aug 2008 21:05:01 +0000 (23:05 +0200)]
libudev: add udev event monitor API

12 years agoupdate INSTALL
Kay Sievers [Thu, 28 Aug 2008 20:58:03 +0000 (22:58 +0200)]
update INSTALL

12 years agolibudev: split source files
Kay Sievers [Wed, 27 Aug 2008 20:02:41 +0000 (22:02 +0200)]
libudev: split source files

12 years agolibudev: add library to access udev information
Kay Sievers [Wed, 27 Aug 2008 15:11:58 +0000 (17:11 +0200)]
libudev: add library to access udev information

12 years agorules: fix md rules for partitioned devices
Michal Soltys [Wed, 27 Aug 2008 14:58:10 +0000 (16:58 +0200)]
rules: fix md rules for partitioned devices

12 years agorules: optical drives - probe at last session offset, do not probe for raid
Kay Sievers [Fri, 22 Aug 2008 08:11:34 +0000 (10:11 +0200)]
rules: optical drives - probe at last session offset, do not probe for raid

12 years agovol_id: make the --offset= argument optional
Kay Sievers [Fri, 22 Aug 2008 08:04:55 +0000 (10:04 +0200)]
vol_id: make the --offset= argument optional

12 years agobuild: fix "make dist"
Kay Sievers [Wed, 13 Aug 2008 09:48:42 +0000 (11:48 +0200)]
build: fix "make dist"

12 years agoadd missing 'v' for "make changelog"
Kay Sievers [Wed, 13 Aug 2008 09:41:25 +0000 (11:41 +0200)]
add missing 'v' for "make changelog"

12 years agoupdate .gitignore
Kay Sievers [Wed, 13 Aug 2008 09:30:26 +0000 (11:30 +0200)]
update .gitignore

Based on Karel's patch. Thanks!

12 years agobuild-sys: remove non-POSIX variable names
Karel Zak [Tue, 12 Aug 2008 22:01:46 +0000 (00:01 +0200)]
build-sys: remove non-POSIX variable names

Makefile.am:24: shell echo $$(( $(VERSION: non-POSIX variable name
Makefile.am:24: (probably a GNU make extension)
Makefile.am:26: shell echo $$(($(VERSION: non-POSIX variable name
Makefile.am:26: (probably a GNU make extension)
Makefile.am:29: shell echo $$(($(VERSION: non-POSIX variable name
Makefile.am:29: (probably a GNU make extension)

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: don't duplicate file names
Karel Zak [Tue, 12 Aug 2008 22:01:44 +0000 (00:01 +0200)]
build-sys: don't duplicate file names

Almost all filenames in udev/Makefile.am are duplicated in
{udevd,udevadm,test_udev}_SOURCE lists.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoadd some warnings
Kay Sievers [Tue, 12 Aug 2008 09:19:32 +0000 (11:19 +0200)]
add some warnings

12 years agoadd missing includes
Kay Sievers [Tue, 12 Aug 2008 09:18:39 +0000 (11:18 +0200)]
add missing includes

12 years agorules: Gentoo update
Kay Sievers [Mon, 11 Aug 2008 14:55:38 +0000 (16:55 +0200)]
rules: Gentoo update

12 years agorules: add isdn rules
Kay Sievers [Mon, 11 Aug 2008 08:34:36 +0000 (10:34 +0200)]
rules: add isdn rules

12 years agorules: add nvram
Kay Sievers [Mon, 11 Aug 2008 08:34:18 +0000 (10:34 +0200)]
rules: add nvram

12 years agorules: delete all distro rules which do not use default rules
Kay Sievers [Sat, 9 Aug 2008 20:06:59 +0000 (22:06 +0200)]
rules: delete all distro rules which do not use default rules

12 years agofix .gitignore
Kay Sievers [Sat, 9 Aug 2008 12:05:54 +0000 (14:05 +0200)]
fix .gitignore

12 years agoignore duplicated rules file names
Kay Sievers [Sat, 9 Aug 2008 12:05:01 +0000 (14:05 +0200)]
ignore duplicated rules file names

12 years agoudevadm: trigger - add missing attr filter to synthesized "subsystem" register events
Kay Sievers [Fri, 8 Aug 2008 20:39:32 +0000 (22:39 +0200)]
udevadm: trigger - add missing attr filter to synthesized "subsystem" register events

12 years agobuild: remove autopoint check
Kay Sievers [Fri, 8 Aug 2008 20:38:46 +0000 (22:38 +0200)]
build: remove autopoint check

12 years agoadd inotify dummy definitions if inotify is not available
Kay Sievers [Fri, 8 Aug 2008 20:36:58 +0000 (22:36 +0200)]
add inotify dummy definitions if inotify is not available

12 years agorelease 126
Kay Sievers [Sat, 2 Aug 2008 08:51:23 +0000 (10:51 +0200)]
release 126

12 years agorules: run vol_id on opticals only if media is found
Kay Sievers [Sat, 2 Aug 2008 08:26:48 +0000 (10:26 +0200)]
rules: run vol_id on opticals only if media is found

Opening an optical drive device node without O_NONBLOCK autocloses the
tray, we run vol_id on every media change by kernel emitted "change"
events, which can make it hard to change the media when the tray closes
immediatey again.:) We check for cdrom_id to indicate an existing track,
if no media is found, we will not open the device with vol_id.

Thanks to Christian Krause and DavidZ for debugging and testing.

12 years agorules: Debian update
Marco d'Itri [Thu, 31 Jul 2008 08:29:39 +0000 (10:29 +0200)]
rules: Debian update

12 years agovolume_id: create relative links
Kay Sievers [Wed, 30 Jul 2008 13:50:12 +0000 (15:50 +0200)]
volume_id: create relative links

12 years agovolume_id: move static lib to $prefix
Kay Sievers [Wed, 30 Jul 2008 12:45:43 +0000 (14:45 +0200)]
volume_id: move static lib to $prefix

12 years agoINSTALL: --enable-selinux not --with-selinux
Kay Sievers [Wed, 30 Jul 2008 11:57:51 +0000 (13:57 +0200)]
INSTALL: --enable-selinux not --with-selinux

12 years agoupdate ChangeLog
Kay Sievers [Wed, 30 Jul 2008 11:38:53 +0000 (13:38 +0200)]
update ChangeLog

12 years agorules: update Fedora rules
Kay Sievers [Wed, 30 Jul 2008 11:21:20 +0000 (13:21 +0200)]
rules: update Fedora rules

12 years agorules: mode 0660 for group "disk"
Kay Sievers [Wed, 30 Jul 2008 11:20:31 +0000 (13:20 +0200)]
rules: mode 0660 for group "disk"