summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-08-09more distro rules updatesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09add firmware_helper to load firmwareKay Sievers
From: Bill Nottingham <notting@redhat.com> Changed reading of firmware blob to mmap and let firmware_helper follow the setting of the log level with UDEV_LOG.
2005-08-09update SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09add SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09update distro rules filesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08add flag for reading of precompiled rulesKay Sievers
Rules can be precompiled and stored on disk for initramfs, to avoid parsing the rules with every event again and again. Also the OWNER and GROUP names are already resolved to numerical values in the compiled rules. This flag is used for the upcoming move of the rules parsing into udevd: If the real root is mounted udevd is started and parses the rules only once. The event processes will inherit the already parsed rules from the daemon, so we want to ignore any precompiled rules and use the real rules files and watch the filesystem for changes to reload the rules automatically. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08allow clean shutdown of udevdKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08switch some strlcpy's to memcpyKay Sievers
strlcpy counts the sourec string lengt and is therefore not suitable to copy a defined length of characters from one string to another. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-05read sysfs attribute also from parent class deviceKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-04updated gentoo rule file to handle removable ide devices.Greg KH
Thanks to Kay for the quick fix. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-04add NETLINK define for the lazy distrosKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-02065 releaseGreg Kroah-Hartman
2005-08-02Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kayGreg Kroah-Hartman
2005-08-02Added persistent name rules for block devices to gentoo rule file.Greg Kroah-Hartman
Copied from Kay's rules from the SuSE package. Let the fun begin... Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-02update release notes for next versionKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01Added horrible (but fun) path_id script to extras.Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-01Update gentoo rules file.Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-01add udevmonitor, to debug netlink+udev events at the same timeKay Sievers
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-01allow RUN to send the environment to a local socketKay Sievers
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-01fix GGC signed pointer warnings and switch volume_id to stdintKay Sievers
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-07-23Oops, 064 release, not 063udev/v064Greg Kroah-Hartman
2005-07-23063 releaseGreg Kroah-Hartman
2005-07-22move code to its own filesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-20make SYSFS{} usable for all devicesKay Sievers
Patch from: Hannes Reinecke <hare@suse.de>
2005-07-19usb_id: fix typoHannes Reinecke
2005-07-19add ID_BUS to *_id programsHannes Reinecke
2005-07-19create_floppy_devices: add tool to create floppy nodes based on sysfs infoHannes Reinecke
2005-07-17volume_id: add OCFS (Oracle Cluster File System) supportAndre Masella
2005-07-17add padding to rules structureKay Sievers
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-16allow rules to have labels and skip to next labelKay Sievers
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-16thread unknown ENV{key} match as empty valueKay Sievers
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-14063 releaseGreg KH
2005-07-14add 'make tests' as I'm always typing that one wrong...Greg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-07-14Really commit the udev_run_devd changes...Greg KH
2005-07-14Fixed udev_run_devd to run the /etc/dev.d/DEVNAME/ files tooGreg KH
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-14Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kayGreg KH
2005-07-14correct default mode documentation in udevVille Skyttä
2005-07-14fix typo in GROUP value applicationAnton Farygin
2005-07-13volume_id: remove s390 dasd handling, it is dasd_id nowKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-13dasd_id: add s390 disk-label proberHannes Reinecke
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-07-13trivial fixes for *_id programsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12fix position of raw rules in gentoo config fileGreg KH
this solve issue of raw1394 device nodes showing up in the proper place. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-07-12IMPORT: add {parent} to import the persistent data of the parent deviceKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12allow multiple values to be matched with KEY=="value1|value2"Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12udevd: set incoming socket buffer SO_RCVBUF to maximumKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12remember mapped rules stateKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12ata_id: check for empty serial numberKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12compile dasd only on s390Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-08fix usb_id and let scsi_id ignore "illegal request"Hannes Reinecke
2005-07-07062 releaseudev/v062Greg Kroah-Hartman