Matthias Schwarzott
3f641815ec
udevmonitor: fix swapped event switch descriptions
2007-03-15 16:30:08 +01:00
Kay Sievers
0d2516c336
udevmonitor: add switch for kernel and udev events
2007-03-10 15:12:42 +01:00
Kay Sievers
8f4bc5f1df
add (subsystem) to udevmonitor output
2007-02-16 13:57:08 +01: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
239cc98b80
initialize unused sockets to -1
2006-08-05 13:24:05 +02:00
Kay Sievers
b437ec958a
remove 'static' from local variable
2006-07-25 14:45:09 +02:00
Kay Sievers
733f070ddd
switch uevent netlink socket to group 1 only
2006-07-21 21:41:11 +02:00
Kay Sievers
9571122e00
fix offsetof() build issue with recent glibc
2006-05-01 20:36:21 +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
62821d0de1
add linux/types.h back, old glibc-kernel-headers want it
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-12 05:09:34 +01:00
Marco d'Itri
ff3e4bed21
add strerror() to error logs
2005-11-07 18:44:18 +01:00
Kay Sievers
38ff77b80b
print useconds in udevmonitor
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-07 02:23:06 +01:00
Kay Sievers
916c5e4725
fix the new warnings I asked for
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 20:32:07 +02:00
Kay Sievers
9ae611be33
udevmonitor: cleanup on exit
...
We want to write the output buffer before
we exit, otherwise redirection to a file
does not work correctly.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-25 00:38:25 +02:00
Kay Sievers
9bbcdb56d8
fix exit code of udevinitsend and udevmonitor
...
Thanks to: Marco d'Itri <md@Linux.IT> for the initial patch.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-22 12:01:55 +02:00
Kay Sievers
24a12dcbb8
fix printed udevmonitor header
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-18 13:43:27 +02:00
Kay Sievers
40caaeec51
cleanup some debug output and move to info level + unify select() loops
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-15 11:57:04 +02:00
Kay Sievers
2b996ad193
add Usage: to udevmonitor and udevcontrol
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11 20:34:24 +02:00
Kay Sievers
d33c51c245
update SUSE rules
...
Tape naming is harder than expected, go back to block devices only.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-10 15:27:25 +02:00
Kay Sievers
47e353f9b9
add NETLINK define for the lazy distros
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-04 12:24:41 +02:00
Kay Sievers
1bc3362678
add udevmonitor, to debug netlink+udev events at the same time
...
This rule:
RUN+="socket:/org/kernel/udev/monitor"
send the event to the running monitor. Running udevstart give a nice
monitor output. Also the delay between the kernel uevent and the udev
udev event can be investigated:
pim:/home/kay/src/udev-kay # ./udevmonitor
UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1
UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0
UEVENT[1122920113] add@/class/scsi_host/host12
UEVENT[1122920113] add@/class/usb_device/usbdev2.99
UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host12/target12:0:0/12:0:0:0
UDEV [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1
UEVENT[1122920113] add@/block/sda
UEVENT[1122920113] add@/class/scsi_generic/sg0
UEVENT[1122920113] add@/class/scsi_device/12:0:0:0
UDEV [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0
UDEV [1122920113] add@/class/scsi_host/host12
UDEV [1122920113] add@/class/usb_device/usbdev2.99
UDEV [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host12/target12:0:0/12:0:0:0
UDEV [1122920113] add@/block/sda
UDEV [1122920113] add@/class/scsi_generic/sg0
UDEV [1122920113] add@/class/scsi_device/12:0:0:0
UEVENT[1122920115] add@/block/sda/sda1
UDEV [1122920115] add@/block/sda/sda1
pim:/home/kay/src/udev-kay # ./udevmonitor --env
UDEV [1122920185] add@/block/sda/sda1
ACTION=add
DEVPATH=/block/sda/sda1
SUBSYSTEM=block
SEQNUM=2159
MINOR=1
MAJOR=8
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host13/target13:0:0/13:0:0:0
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sd
UDEVD_EVENT=1
UDEV_LOG=3
ID_VENDOR=IBM
ID_MODEL=Memory_Key
ID_REVISION=3.04
ID_SERIAL=IBM_Memory_Key_0218B301030027E8
ID_TYPE=disk
ID_BUS=usb
ID_PATH=usb-0218B301030027E8:0:0:0
ID_FS_USAGE=filesystem
ID_FS_TYPE=vfat
ID_FS_VERSION=FAT16
ID_FS_UUID=42D8-9E02
ID_FS_LABEL_SAFE=s_p_c
DEVNAME=/dev/sda1
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01 20:22:46 +02:00