Kay Sievers
4c46d72a93
udevadm: info - do not print ATTR{dev}==
2008-04-28 05:07:47 +02:00
Kay Sievers
c70560feef
logging: add trailing newline to all strings
2008-04-20 21:07:06 +02:00
Kay Sievers
573bdd7e75
udevinfo: do not replace chars when printing ATTR== matches
2008-04-07 01:57:31 +02:00
Kay Sievers
e7e194a088
udevadm: info - resolve devpath if symlink is given
2008-03-29 16:12:41 +01:00
Kay Sievers
a5258107d2
udevadm: also return major==0 results for --device-id-of-file
2007-11-09 17:05:34 +01:00
Kay Sievers
f338bac885
udevadm: add info option --device-id-of-file=<file>
...
Now, that udevinfo is no longer in /usr, we can add this:
$ udevadm info --device-id-of-file=/
8 5
to create a dynamic rule to provide /dev/root.
2007-11-09 10:22:30 +01:00
Kay Sievers
225cb03bd8
udevadm: merge all udev tools into a single binary
2007-11-08 17:51:59 +01:00
Kay Sievers
e9b6477084
udevinfo: exclude "uevent" file from --attribute-walk
2007-10-24 16:51:33 +02:00
Kay Sievers
18770246ed
udevinfo: simplify symlink printing logic
2007-09-20 15:25:29 +02:00
Harald Hoyer
c952356635
remove extra space from udevinfo symlink output
2007-09-20 15:24:42 +02:00
Michael Morony
1f7a36f2c0
set buffer size if strlcpy/strlcat indicate truncation
2007-08-24 08:14:21 +02:00
Kay Sievers
92b229c727
no newline in log messages
2007-06-23 16:21:47 +02:00
Kay Sievers
fd80719273
sysfs: skip unknown sysfs directories
2007-06-04 11:20:18 +02:00
Kay Sievers
2f2c4fa442
replace_chars: replace spaces in node name
2007-05-17 20:01:54 +02:00
Kay Sievers
019d666907
udevinfo: export all information stored in database
2007-04-06 19:50:19 +02:00
Kay Sievers
be8594ab14
udevinfo: relax check for the correct device if looked up by name
2007-03-23 17:17:18 +01:00
Kay Sievers
3d0bb292b5
udevinfo: print link priority
2007-03-21 12:13:28 +01:00
Kay Sievers
3045132a0d
udevinfo: remove -d option
2007-03-18 15:08:53 +01:00
Kay Sievers
31de3a2ba1
read list of devices from index, make index private to database
2007-03-17 10:08:25 +01:00
Kay Sievers
88caa9da18
man: add missing options to various man pages
2007-03-07 18:00:12 +01:00
Kay Sievers
4e13cb5fb7
remove --version from the udevinfo man page
...
We have: udevd --version now, which is always available,
unlike udevinfo which is installed in /usr.
2007-02-24 23:57:04 +01:00
Arjan Opmeer
92be0b8700
fix udevinfo help text typo
2006-09-20 20:20:35 +02:00
Kay Sievers
bc2a89fad6
udevinfo: print error in --attribute-walk
2006-09-19 17:07:25 +02:00
Kay Sievers
492e76c9c1
udevinfo: do not show symlinks as attributes in --attribute-walk
2006-09-05 13:54:08 +02:00
Kay Sievers
64e0ce85de
udevinfo: fix SUBSYTEMS spelling error
2006-09-03 17:47:27 +02:00
Sergey Vlasov
e97717bac2
make struct option arrays static const
2006-09-03 14:12:51 +02:00
Kay Sievers
11f1bb5ab4
udevinfo: use long options
2006-09-03 04:05:20 +02:00
Kay Sievers
27b77df44d
update source file headers
2006-08-28 00:29:11 +02:00
Kay Sievers
e3396a2d38
cleanup commandline argument handling
...
Print and log failure, but don't fail for tools which are
usually not used iteractively. Add '--help' to all tools.
2006-08-21 02:38:20 +02:00
Kay Sievers
95776dc6ec
consistent key naming to match only the event device or include all parent devices
...
This scheme is more consistent and makes it obvious if a match happens
against the event device only, or the full chain of parent devices.
The old key names are now:
BUS -> SUBSYSTEMS
ID -> KERNELS
SYSFS -> ATTRS
DRIVER -> DRIVERS
Match keys for the event device:
KERNEL
SUBSYSTEM
ATTR
DRIVER (in a future release, for now the same as DRIVERS)
Match keys for all devices along the parent device chain:
KERNELS
SUBSYSTEMS
ATTRS
DRIVERS
ID, BUS, SYSFS are no longer mentioned in the man page but still work.
DRIVER must be converted to DRIVERS to match the new scheme. For now,
an error is logged, if DRIVER is used. In a future release, the DRIVER
key behaviour will change.
2006-08-19 16:06:25 +02:00
Kay Sievers
2362eea601
udevinfo, udevtest: simplify '/sys' stripping from devpath argument
2006-08-18 02:33:46 +02:00
Kay Sievers
1aa0c52b44
udevinfo: allow -a -n <node>
2006-08-18 02:31:37 +02:00
Kay Sievers
22f5934a85
udevinfo: add DRIVER==
2006-07-30 15:54:28 +02:00
Kay Sievers
6cf19e52c3
udevinfo: clarify parent device attribute use
2006-06-16 11:11:07 +02:00
Kay Sievers
1aa1e24848
replace libsysfs
...
We never used any of the libsysfs convenience features. Here we replace
it completely with 300 lines of code, which are much simpler and a bit
faster cause udev(d) does not open any syfs file for a simple event which
does not need any parent device information.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09 21:18:00 +01:00
Kay Sievers
fc55cf68ca
remove "udev_db" option from config file
...
All udev state is kept in /$udev_root/.udev/ now. No option to
configure that anymore, it will always be there.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16 04:14:15 +01:00
Kay Sievers
7b4f33ce60
udevinfo: restore -d option
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-31 02:35:35 +02:00
Kay Sievers
ae8cc07b2a
udevinfo: rename dump() to export()
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 04:56:24 +02:00
Kay Sievers
24ca5c3398
udevinfo: add database export
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-29 15:01:08 +02:00
Kay Sievers
7104c558da
don't store devpath in udevdb, we don't need it
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 23:27:43 +02:00
Kay Sievers
fb17920701
add and use name_list_cleanup() for cleaning up the string lists
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 16:15:41 +02:00
Kay Sievers
314edf3ca4
change parameter order of udev_db_search_name()
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 15:46:58 +02:00
Kay Sievers
64d735e652
print persistent data with "udevinfo -q all"
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 15:37:03 +02:00
Kay Sievers
db481105c2
prepare for new HAL udevdb dump
...
HAL soon wants to read the whole content of the udevdatabase while
starting up. This makes the whole udev structure available to the
udevinfo "dump".
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 02:59:20 +02:00
Thierry Vignaud
a1ea706a1e
fix udevinfo output
2005-08-10 17:06:01 +02:00
Kay Sievers
e8d569b414
move code to its own files
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-22 12:35:58 -04:00
Kay Sievers
b8476286d6
store the imported device information in the udevdb
...
Any program can query with udevinfo for persistent device
attributes evaluated on device discovery now.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-26 18:55:24 +02:00
Greg KH
e2bd03ff63
Fix udevinfo for empty sysfs directories
...
udevinfo would die if it ran into a sysfs directory with no attributes.
This is valid for a lot of scsi devices, so now we just continue on
up the chain.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-06-06 13:46:19 -07:00
kay.sievers@vrfy.org
fb39f0566e
[PATCH] move execute_program to utils + add action to init_device
2005-04-26 23:55:00 -07:00
kay.sievers@vrfy.org
6276fdd2ab
[PATCH] udevinfo: print SYSFS attribute the same way we match it
2005-04-26 23:54:59 -07:00