Greg Kroah-Hartman
74f1ce92c4
Added persistent name rules for block devices to gentoo rule file.
...
Copied from Kay's rules from the SuSE package.
Let the fun begin...
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-02 12:28:50 -07:00
Kay Sievers
61341fae4f
update release notes for next version
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-02 04:32:19 +02:00
Greg Kroah-Hartman
97b7aa1f78
Added horrible (but fun) path_id script to extras.
...
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-01 16:37:41 -07:00
Greg Kroah-Hartman
be962ec9a8
Update gentoo rules file.
...
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-01 15:44:02 -07: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
Kay Sievers
d455b0085d
allow RUN to send the environment to a local socket
...
RUN="socket:<name>" will send the environment in the kernel uevent
format to the named destination. Using the socket instead of the program
to pass the hotplug events to the HAL daemon, cuts down the running
time of udevstart from 0.8 to 0.4 seconds on my box.
env -i ACTION=add DEVPATH=/block/hda/hda1 strace -s10000 ./udev block
sendto(3, "add@/block/hda/hda1\0
ACTION=add\0DEVPATH=/block/hda/hda1\0UDEV_LOG=3\0
ID_TYPE=disk\0ID_MODEL=HTS726060M9AT00\0ID_SERIAL=MRH401M4G6UM9B\0
ID_REVISION=MH4OA6BA\0ID_BUS=ata\0ID_PATH=pci-0000:00:1f.1-ide-0:0\0
ID_FS_USAGE=other\0ID_FS_TYPE=swap\0ID_FS_VERSION=2\0
ID_FS_UUID=9352cfef-7687-47bc-a2a3-34cf136f72e1\0
ID_FS_LABEL=ThisIsSwap\0ID_FS_LABEL_SAFE=ThisIsSwap\0
DEVNAME=/dev/hda1\0"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01 05:07:19 +02:00
Kay Sievers
70721db6d7
fix GGC signed pointer warnings and switch volume_id to stdint
...
Solaris uses volume_id now and they fiddled around with configure scripts
to map the linux kernel int types. Adding the types locally to volume_id
breaks the klibc build, so just switch to these ugly types and forget it. :)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01 01:33:36 +02:00
Greg Kroah-Hartman
62a22c8d75
Oops, 064 release, not 063
2005-07-23 12:27:02 -04:00
Greg Kroah-Hartman
fa5c98ab9c
063 release
2005-07-23 12:26:28 -04: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
761e5b476f
make SYSFS{} usable for all devices
...
Patch from:
Hannes Reinecke <hare@suse.de>
2005-07-20 12:12:56 -04:00
Hannes Reinecke
33aa91b1be
usb_id: fix typo
2005-07-19 14:36:34 -04:00
Hannes Reinecke
46f01c6dc4
add ID_BUS to *_id programs
2005-07-19 11:18:19 -04:00
Hannes Reinecke
bf375e3af6
create_floppy_devices: add tool to create floppy nodes based on sysfs info
2005-07-19 11:14:12 -04:00
Andre Masella
6a5aac78f4
volume_id: add OCFS (Oracle Cluster File System) support
2005-07-17 09:54:40 -04:00
Kay Sievers
422d5becc3
add padding to rules structure
...
Some architectures really want well alingned structures.
Thanks to Jim Gifford <maillist@jg555.com> for help finding it.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-17 09:40:29 -04:00
Kay Sievers
594dd61025
allow rules to have labels and skip to next label
...
This will allow us to have whole blocks of rules to skip
conditionally. The following section creates the node "yes":
GOTO="TEST"
NAME="no"
NAME="no2", LABEL="NO"
NAME="yes", LABEL="TEST"
NAME="no3"
2005-07-16 07:46:31 +02:00
Kay Sievers
c609f627fa
thread unknown ENV{key} match as empty value
...
This way we can run a rule if a certain key is not set by:
ENV{key}="" or ENV{key}!="?*"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-16 05:50:34 +02:00
Greg KH
8365854ccd
063 release
2005-07-14 16:09:21 -07:00
Greg KH
0de3c3edeb
add 'make tests' as I'm always typing that one wrong...
...
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-07-14 15:27:30 -07:00
Greg KH
04b90b7e25
Really commit the udev_run_devd changes...
2005-07-14 15:24:59 -07:00
Greg KH
78e21e3ed4
Fixed udev_run_devd to run the /etc/dev.d/DEVNAME/ files too
...
Note, this assumes that you are putting your device nodes in /dev/, the
better thing to do is use the RUN= rule and not rely on this program at all.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-07-14 15:19:37 -07:00
Greg KH
39e54555a9
Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
2005-07-14 14:13:34 -07:00
Ville Skyttä
7fe082a8a4
correct default mode documentation in udev
2005-07-14 11:43:05 +02:00
Anton Farygin
8cf97fb046
fix typo in GROUP value application
2005-07-14 11:39:55 +02:00
Kay Sievers
b0f57eb066
volume_id: remove s390 dasd handling, it is dasd_id now
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-13 12:01:53 +02:00
Hannes Reinecke
15e5209b8e
dasd_id: add s390 disk-label prober
...
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-07-13 11:35:51 +02:00
Kay Sievers
5f84d7264d
trivial fixes for *_id programs
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-13 11:23:21 +02:00
Greg KH
afd6b4acc8
fix position of raw rules in gentoo config file
...
this solve issue of raw1394 device nodes showing up in the proper place.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-07-12 15:46:54 -07:00
Kay Sievers
0bfb84e1ed
IMPORT: add {parent} to import the persistent data of the parent device
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 14:46:36 +02:00
Kay Sievers
0cd4ac473a
allow multiple values to be matched with KEY=="value1|value2"
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 12:52:56 +02:00
Kay Sievers
cbbde2ba6c
udevd: set incoming socket buffer SO_RCVBUF to maximum
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:44:51 +02:00
Kay Sievers
ef520ba25f
remember mapped rules state
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:42:39 +02:00
Kay Sievers
e03bce6321
ata_id: check for empty serial number
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:41:09 +02:00
Kay Sievers
4431072fb8
compile dasd only on s390
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:39:56 +02:00
Hannes Reinecke
b4a2906bf1
fix usb_id and let scsi_id ignore "illegal request"
2005-07-08 03:29:19 +02:00
Greg Kroah-Hartman
face198a5f
062 release
2005-07-07 15:00:50 -07:00
Kay Sievers
7b2bdb4b1b
fix symlink values separated by multiple spaces
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07 23:43:13 +02:00
Kay Sievers
97c0448d9a
update RELEASE-NOTES
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07 23:01:04 +02:00
Kay Sievers
a72e3f666b
fix typo in group assignment
...
Thanks to: Georgi Georgiev
2005-07-07 22:40:09 +02:00
Kay Sievers
613ffbeb15
fix default-name handling and NAME="" rules
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07 22:32:48 +02:00
Kay Sievers
b2fe4b9ac9
add WAIT_FOR_SYSFS key to loop until a file in sysfs arrives
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07 20:05:51 +02:00
Kay Sievers
5f79d72c43
fix unquoted strings in udevinitsend
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07 16:02:03 +02:00
Greg Kroah-Hartman
a82f23bf96
061 release
2005-07-06 14:24:08 -07:00
Greg KH
831139235e
Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
2005-07-06 13:52:14 -07:00
Kay Sievers
133dd3ce33
update RELEASE-NOTES
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-06 22:17:06 +02:00
Greg Kroah-Hartman
0cc976eeaf
fix cdrom symlink problem in gentoo rules
2005-07-06 13:15:23 -07:00
Greg KH
040e26dc99
Sync up the Debian rules files
2005-07-06 13:09:05 -07:00
Kay Sievers
1196e46c33
we want to provide OPTFLAGS
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-06 21:36:21 +02:00
Kay Sievers
8815afa1df
rename ALARM_TIMEOUT to UDEV_ALARM_TIMEOUT
...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-06 14:42:26 +02:00