Kay Sievers
d98bffa802
fix segfault caused by wrong pointer used in dbg()
2008-09-30 14:47:49 +02:00
Kay Sievers
f5001d2465
udevadm: trigger: use libudev
2008-09-30 13:43:35 +02:00
Kay Sievers
c97f839eed
libudev: enumerate - scan devices and subsystems, add subsystem and attribute filter
2008-09-30 13:42:26 +02:00
Kay Sievers
4aa0b15efb
fix dbg() callers
2008-09-29 19:03:08 +02:00
Alan Jenkins
9176ac1f4e
allow compiler to check dbg() arguments on non-debug builds
...
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-09-29 18:54:21 +02:00
Alan Jenkins
120ff8a0e8
fix messages (inc. debug compile failure) introduced when optimizing "goto"
...
Signed-off-by: <alan-jenkins@tuffmail.co.uk>
2008-09-29 18:39:41 +02:00
Alan Jenkins
659353f5a9
replace strerror() usage with threadsafe "%m" format string
...
strerror() is not threadsafe. It uses a buffer to build messages of the form
"Unknown error 387689".
syslog() provides a %m format which is equivalent to strerror(errno).
As a GNU extension, this is also accepted by printf and friends.
At least in the current implementation, it is correctly threadsafe.
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-09-29 17:06:00 +02:00
Kay Sievers
5c0f595d91
test: replace last reference of "/class/*" devpath
2008-09-29 05:18:23 +02:00
Kay Sievers
d0f398bc25
gitignore: move *.8 to subdirs
2008-09-29 05:03:43 +02:00
Kay Sievers
f2041f0116
test: add missing pci directory because of .gitignore *.7
2008-09-29 05:01:12 +02:00
Kay Sievers
c7fcba1bf4
test: replace ancient sysfs tree with recent one
2008-09-29 04:12:44 +02:00
Kay Sievers
438d4c3cd4
libudev: enumerate - split new() and scan()
2008-09-29 02:00:17 +02:00
Kay Sievers
b03e89cfba
libudev: enumerate - scan /sys/block/ if needed
2008-09-28 23:17:29 +02:00
Kay Sievers
6f67f1dfb7
libudev: enumerate "subsystem"
2008-09-28 22:18:40 +02:00
Kay Sievers
bc8184ede9
libudev: enumerate - accept list of subsystems to scan, or skip
2008-09-28 17:39:31 +02:00
Alan Jenkins
41b7a00922
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).
2008-09-28 14:11:47 +02:00
Alan Jenkins
669ed8675f
trivial cleanup in udev_rules_iter
2008-09-28 14:10:53 +02:00
Kay Sievers
b95f8a76e6
lubudev: accept more sys directories as devices, and parent devices
2008-09-28 03:34:57 +02:00
Kay Sievers
0de33a61d7
libudev: more list rework
2008-09-28 01:34:55 +02:00
Kay Sievers
e345e2670a
libudev: rework list handling
2008-09-26 19:44:53 +02:00
Kay Sievers
9921484458
libudev: device - read database only when needed
2008-09-26 19:43:32 +02:00
Kay Sievers
5fc523db68
libudev: initialize selinux only when needed
2008-09-26 19:43:14 +02:00
Kay Sievers
cd42b50d86
libudev: enumerate_get_devices_list -> enumerate_get_list
2008-09-26 19:41:50 +02:00
Kay Sievers
04f5d75f0c
libudev: get devnum from uevent file
2008-09-25 14:26:22 -07:00
Kay Sievers
bf7ad0ea66
libudev: replace awkward callback list interfaces with list iterators
2008-09-25 04:20:27 -07:00
Kay Sievers
c8e32461cc
libudev: add userdata pointer
2008-09-24 21:39:29 -07:00
Kay Sievers
03198b9303
libudev: also import "uevent" file when reading udev database
2008-09-24 12:25:31 -07:00
Kay Sievers
4c9dff47f6
libudev: add udev_device_new_from_devnum()
2008-09-21 23:28:56 -07:00
Kay Sievers
fb762bb928
libudev: udev_device_get_devname -> udev_device_get_devnode
2008-09-20 00:01:20 -07:00
Kay Sievers
38f27948cd
always include config.h from Makefile
2008-09-19 23:03:49 -07:00
Alan Jenkins
a4354f9385
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
2008-09-19 22:14:46 -07:00
Kay Sievers
279595bd1a
libudev: fix "subsystem" value
2008-09-17 23:58:38 -07:00
Kay Sievers
a076080bd4
libudev: pass udev_device in enumerate
2008-09-17 23:32:43 -07:00
Kay Sievers
7bcbf7ecc8
fix udevadm trigger
2008-09-16 16:32:42 -07:00
Alan Jenkins
034b37c83f
udev-test.pl: set non-zero exitcode if tests fail
2008-09-16 10:03:42 -07:00
Kay Sievers
44589a0c73
fix broken symlink resolving
2008-09-16 09:53:36 -07:00
Kay Sievers
c68a293678
vol_id: fix lib logging glue
2008-09-16 00:40:47 -07:00
Kay Sievers
7b3a52f499
libudev: rename ctrl_msg to ctrl_msg_wire
2008-09-15 18:01:15 -07:00
Kay Sievers
8753fadf2a
libudev: switch API from devpath to syspath
2008-09-15 17:12:47 -07:00
Kay Sievers
9a8047fa29
udevadm: info - fix lookup-by-name
2008-09-15 12:01:35 -07:00
Kay Sievers
0518da3b74
libudev: handle "device" link as parent, handle "class" "block" as "subsystem"
2008-09-15 11:19:56 -07:00
Kay Sievers
93b0f38458
libudev: udev_device - add attribute cache
2008-09-13 21:09:28 +02:00
Kay Sievers
b2d9e4f200
libudev: switch to "udev_device_get_parent"
2008-09-12 00:58:40 +02:00
Kay Sievers
55eb845c28
release 128
2008-09-11 17:09:57 +02:00
Kay Sievers
4ad3a37f50
udevadm: info - use "udev_device"
2008-09-11 17:08:12 +02:00
Kay Sievers
17fcfb5972
use size definitions from libudev
2008-09-10 21:50:21 +02:00
Kay Sievers
31c1f53745
get rid of udev_sysdeps.c
2008-09-10 18:59:42 +02:00
Kay Sievers
ecc9ec579f
convert to libudev and delete udev_utils_string.c
2008-09-10 18:39:23 +02:00
Kay Sievers
7525097713
extras: use libudev code
2008-09-10 18:24:39 +02:00
Kay Sievers
3eb46ec6dd
libudev: do not use any udev source file
2008-09-10 18:00:31 +02:00