chiark / gitweb /
elogind.git
18 years agochange parameter order of udev_db_search_name()
Kay Sievers [Sat, 27 Aug 2005 13:46:58 +0000 (15:46 +0200)]
change parameter order of udev_db_search_name()

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoprint persistent data with "udevinfo -q all"
Kay Sievers [Sat, 27 Aug 2005 13:37:03 +0000 (15:37 +0200)]
print persistent data with "udevinfo -q all"

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoprepare for new HAL udevdb dump
Kay Sievers [Sat, 27 Aug 2005 00:59:20 +0000 (02:59 +0200)]
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>
18 years agofix lookup for name in the udevdb, it should return the devpath
Kay Sievers [Fri, 26 Aug 2005 20:43:49 +0000 (22:43 +0200)]
fix lookup for name in the udevdb, it should return the devpath

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agostore ENV{key}="value" exported keys in the database
Kay Sievers [Fri, 26 Aug 2005 19:38:18 +0000 (21:38 +0200)]
store ENV{key}="value" exported keys in the database

Just like the IMPORT values are stored in the udev database the
exported keys are stored in the udev database. The database is also
imported on a remove event before the rules are matched. So it
is possible to do:
  ACTION=="add", KERNEL=="sda", ENV{MY_DEVICE}="1234", RUN+="/bin/logger add $devpath"
  ACTION=="remove", ENV{MY_DEVICE}=="1234", RUN+="/bin/logger remove $devpath"

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoswitch to '==' in raid-devfs.sh
Thierry Vignaud [Fri, 26 Aug 2005 12:52:57 +0000 (14:52 +0200)]
switch to '==' in raid-devfs.sh

18 years agoupdate SUSE rules
Kay Sievers [Fri, 26 Aug 2005 12:27:13 +0000 (14:27 +0200)]
update SUSE rules

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd pci_express to bus list
Kay Sievers [Thu, 25 Aug 2005 01:37:38 +0000 (03:37 +0200)]
add pci_express to bus list

Hopefully that wait_for_sysfs crap can go away some day...

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdate SUSE rules
Kay Sievers [Thu, 25 Aug 2005 00:30:01 +0000 (02:30 +0200)]
update SUSE rules

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agopath_id: remove SUSE specific PATH
Kay Sievers [Wed, 24 Aug 2005 22:40:41 +0000 (00:40 +0200)]
path_id: remove SUSE specific PATH

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofix typo in firmware_helper
Amir Shalem [Wed, 24 Aug 2005 22:39:45 +0000 (00:39 +0200)]
fix typo in firmware_helper

The wrong string is being nullifed.

18 years agoudevmonitor: cleanup on exit
Kay Sievers [Wed, 24 Aug 2005 22:38:25 +0000 (00:38 +0200)]
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>
18 years agovolume_id: don't probe for mac_partition_maps
Kay Sievers [Wed, 24 Aug 2005 22:37:46 +0000 (00:37 +0200)]
volume_id: don't probe for mac_partition_maps

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoudevd: keep the right order for messages without SEQNUM
Kay Sievers [Mon, 22 Aug 2005 22:57:46 +0000 (00:57 +0200)]
udevd: keep the right order for messages without SEQNUM

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofix exit code of udevinitsend and udevmonitor
Kay Sievers [Mon, 22 Aug 2005 10:01:55 +0000 (12:01 +0200)]
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>
18 years agoadd program name to logged error
Kay Sievers [Mon, 22 Aug 2005 09:42:58 +0000 (11:42 +0200)]
add program name to logged error

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years ago*_id: fix zero length in set_str()
Kay Sievers [Mon, 22 Aug 2005 09:37:12 +0000 (11:37 +0200)]
*_id: fix zero length in set_str()

Thanks to Olaf Hering <olh@suse.de>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years ago068 release
Greg KH [Thu, 18 Aug 2005 17:04:49 +0000 (10:04 -0700)]
068 release

18 years agoadd EXTRAS documentation to the README file.
Greg KH [Thu, 18 Aug 2005 17:02:27 +0000 (10:02 -0700)]
add EXTRAS documentation to the README file.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agofix printed udevmonitor header
Kay Sievers [Thu, 18 Aug 2005 11:43:27 +0000 (13:43 +0200)]
fix printed udevmonitor header

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agobring std(in|out|err) fd's in a sane state
Kay Sievers [Thu, 18 Aug 2005 11:07:15 +0000 (13:07 +0200)]
bring std(in|out|err) fd's in a sane state

If the kernel forks us as an usermodhelper, we don't have any of
the standard fd's and the first open() will start with fd=0.
This is inherited to all forked childs and confuses later forked
helpers where we want to read from a pipe connected to the helpers
stdout/stderr.

  # ls -l /proc/$(pidof udevd)/fd
  total 6
  dr-x------  2 root root  0 2005-08-18 12:44 .
  dr-xr-xr-x  4 root root  0 2005-08-18 12:44 ..
  lrwx------  1 root root 64 2005-08-18 12:44 0 -> /dev/null
  lrwx------  1 root root 64 2005-08-18 12:44 1 -> socket:[1274617]
  lr-x------  1 root root 64 2005-08-18 12:44 2 -> pipe:[1274618]
  l-wx------  1 root root 64 2005-08-18 12:44 3 -> pipe:[1274618]
  lrwx------  1 root root 64 2005-08-18 12:44 4 -> socket:[1274619]
  lrwx------  1 root root 64 2005-08-18 12:44 5 -> socket:[1274620]

Ouch! This will obviously not redirect sterr, it will kill the pipe
we established between the parent and the child:

  devnull = open("/dev/null", O_RDWR);
  dup2(devnull, STDERR_FILENO);

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofix typo in cdrom_id syslog
Kay Sievers [Thu, 18 Aug 2005 02:54:59 +0000 (04:54 +0200)]
fix typo in cdrom_id syslog

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoMerge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udev
Kay Sievers [Thu, 18 Aug 2005 02:48:43 +0000 (04:48 +0200)]
Merge rsync.kernel.org/pub/scm/linux/hotplug/udev

18 years agocdrom_id: change err() to info() to help with debugging problems
Greg Kroah-Hartman [Wed, 17 Aug 2005 23:10:32 +0000 (16:10 -0700)]
cdrom_id: change err() to info() to help with debugging problems

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoAlways open the cdrom drive in non-blocking mode in cdrom_id
Greg Kroah-Hartman [Wed, 17 Aug 2005 23:09:03 +0000 (16:09 -0700)]
Always open the cdrom drive in non-blocking mode in cdrom_id

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agovol_id: fix sloppy error handling
Kay Sievers [Wed, 17 Aug 2005 14:58:19 +0000 (16:58 +0200)]
vol_id: fix sloppy error handling

vol_id segfaults if read() fails on broken devices reporting
the wrong size.

Thanks to Erhard Schultchen for the debugging.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoENV{TEST}=="1" compares and ENV{TEST}="1" sets the environment
Kay Sievers [Tue, 16 Aug 2005 02:25:20 +0000 (04:25 +0200)]
ENV{TEST}=="1" compares and ENV{TEST}="1" sets the environment

This can be uses to export stuff to the event environment or
to carry a state from one rule to another, like enabling/disabling
later rules conditionally.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agomove udevmonitor to /usr/sbin
Kay Sievers [Mon, 15 Aug 2005 10:00:43 +0000 (12:00 +0200)]
move udevmonitor to /usr/sbin

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agocleanup some debug output and move to info level + unify select() loops
Kay Sievers [Mon, 15 Aug 2005 09:57:04 +0000 (11:57 +0200)]
cleanup some debug output and move to info level + unify select() loops

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years ago067 release
Greg Kroah-Hartman [Sat, 13 Aug 2005 17:10:50 +0000 (10:10 -0700)]
067 release

18 years agodon't fail too bad, if /dev/null does not exist
Kay Sievers [Sat, 13 Aug 2005 00:36:12 +0000 (02:36 +0200)]
don't fail too bad, if /dev/null does not exist

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofix udevstart event ordering, we want /dev/null very early
Kay Sievers [Sat, 13 Aug 2005 00:19:22 +0000 (02:19 +0200)]
fix udevstart event ordering, we want /dev/null very early

18 years agoMerge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udev
Kay Sievers [Sat, 13 Aug 2005 00:16:54 +0000 (02:16 +0200)]
Merge rsync.kernel.org/pub/scm/linux/hotplug/udev

18 years agofix more compiler warnings ...
Kay Sievers [Fri, 12 Aug 2005 22:18:44 +0000 (00:18 +0200)]
fix more compiler warnings ...

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadded the cdrom.h #defines directly into the cdrom_id.c file
Greg Kroah-Hartman [Fri, 12 Aug 2005 18:37:56 +0000 (11:37 -0700)]
added the cdrom.h #defines directly into the cdrom_id.c file

This solves the problem with building the file against old kernel header
files.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agofix make install, as we don't provide a default rule set anymore
Kay Sievers [Fri, 12 Aug 2005 00:07:50 +0000 (02:07 +0200)]
fix make install, as we don't provide a default rule set anymore

Several people complained about the "default" rules and the "default"
setup. Here we start to remove things where we can't hava a  "default".
The best examples for rules are in the distro folders, just pick the one
that matches your needs and start from there.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdate SUSE rules
Kay Sievers [Thu, 11 Aug 2005 22:50:48 +0000 (00:50 +0200)]
update SUSE rules

don't use ID_TYPE, so cdroms will be in /dev/disk/

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years ago066 release
Greg KH [Thu, 11 Aug 2005 22:44:08 +0000 (15:44 -0700)]
066 release

18 years agotweak the gentoo rules some more.
Greg KH [Thu, 11 Aug 2005 22:32:14 +0000 (15:32 -0700)]
tweak the gentoo rules some more.
- make the persistant rules smaller
- add usbfs-like device node support

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agochanged location of gentoo helper apps to be /sbin instead of in scripts dir
Greg KH [Thu, 11 Aug 2005 22:10:10 +0000 (15:10 -0700)]
changed location of gentoo helper apps to be /sbin instead of in scripts dir

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoChange the gentoo rules to use cdrom_id instead of cdsymlink.sh
Greg KH [Thu, 11 Aug 2005 22:08:08 +0000 (15:08 -0700)]
Change the gentoo rules to use cdrom_id instead of cdsymlink.sh

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agofix klibc build issue in cdrom_id.c
Greg KH [Thu, 11 Aug 2005 21:38:33 +0000 (14:38 -0700)]
fix klibc build issue in cdrom_id.c

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoadded cdrom_id to the build check
Greg KH [Thu, 11 Aug 2005 21:37:54 +0000 (14:37 -0700)]
added cdrom_id to the build check

18 years agochanged cdrom_id exports to be easier to understand and consistant with other _id...
Greg KH [Thu, 11 Aug 2005 21:04:24 +0000 (14:04 -0700)]
changed cdrom_id exports to be easier to understand and consistant with other _id programs.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoCreated cdrom_id program to make it easier to determine cdrom types
Greg KH [Thu, 11 Aug 2005 20:59:21 +0000 (13:59 -0700)]
Created cdrom_id program to make it easier to determine cdrom types

Based on the framework from ata_id by Kay.
Now we can drop the cdsymlinks.sh and .c files

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoupdate gentoo rule file.
Greg KH [Thu, 11 Aug 2005 20:02:44 +0000 (13:02 -0700)]
update gentoo rule file.
This fixes the issue of cdroms not showing up in the proper group,
and them showing up in /dev/cd/ for the persistant names.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agomove some logging to the info level
Kay Sievers [Thu, 11 Aug 2005 19:01:46 +0000 (21:01 +0200)]
move some logging to the info level

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd Usage: to udevmonitor and udevcontrol
Kay Sievers [Thu, 11 Aug 2005 18:34:24 +0000 (20:34 +0200)]
add Usage: to udevmonitor and udevcontrol

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoallow logging of all output from executed tools
Kay Sievers [Thu, 11 Aug 2005 15:32:59 +0000 (17:32 +0200)]
allow logging of all output from executed tools

If USE_DEBUG=true and udev_log="debug", all output of the forked
programs to stdout and stderr is send to syslog.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdate SUSE rules
Kay Sievers [Thu, 11 Aug 2005 15:19:05 +0000 (17:19 +0200)]
update SUSE rules

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofix udevinfo output
Thierry Vignaud [Wed, 10 Aug 2005 15:06:01 +0000 (17:06 +0200)]
fix udevinfo output

18 years agosplit udev_util in several files
Kay Sievers [Wed, 10 Aug 2005 14:54:14 +0000 (16:54 +0200)]
split udev_util in several files

It too big for the small tools to link against for only the log function.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdate SUSE rules
Kay Sievers [Wed, 10 Aug 2005 13:27:25 +0000 (15:27 +0200)]
update SUSE rules

Tape naming is harder than expected, go back to block devices only.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agotrivial text cleanups
Kay Sievers [Tue, 9 Aug 2005 20:11:44 +0000 (22:11 +0200)]
trivial text cleanups

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoremove example rules and put the dev.d stuff into the run_directory folder
Kay Sievers [Tue, 9 Aug 2005 18:11:26 +0000 (20:11 +0200)]
remove example rules and put the dev.d stuff into the run_directory folder

The distro rules are the best example you can get and the use of
dev.d/ is no longer recommended.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdate README
Kay Sievers [Tue, 9 Aug 2005 17:45:08 +0000 (19:45 +0200)]
update README

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agomore distro rules updates
Kay Sievers [Tue, 9 Aug 2005 17:17:25 +0000 (19:17 +0200)]
more distro rules updates

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd firmware_helper to load firmware
Kay Sievers [Tue, 9 Aug 2005 17:00:37 +0000 (19:00 +0200)]
add firmware_helper to load firmware

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.

18 years agoupdate SUSE rules
Kay Sievers [Tue, 9 Aug 2005 13:53:17 +0000 (15:53 +0200)]
update SUSE rules

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd SUSE rules
Kay Sievers [Tue, 9 Aug 2005 10:29:12 +0000 (12:29 +0200)]
add SUSE rules

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdate distro rules files
Kay Sievers [Tue, 9 Aug 2005 09:58:11 +0000 (11:58 +0200)]
update distro rules files

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd flag for reading of precompiled rules
Kay Sievers [Mon, 8 Aug 2005 15:43:42 +0000 (17:43 +0200)]
add flag for reading of precompiled rules

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>
18 years agoallow clean shutdown of udevd
Kay Sievers [Mon, 8 Aug 2005 03:07:36 +0000 (05:07 +0200)]
allow clean shutdown of udevd

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoswitch some strlcpy's to memcpy
Kay Sievers [Mon, 8 Aug 2005 00:21:55 +0000 (02:21 +0200)]
switch some strlcpy's to memcpy

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>
18 years agoread sysfs attribute also from parent class device
Kay Sievers [Thu, 4 Aug 2005 23:52:57 +0000 (01:52 +0200)]
read sysfs attribute also from parent class device

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdated gentoo rule file to handle removable ide devices.
Greg KH [Thu, 4 Aug 2005 23:33:53 +0000 (16:33 -0700)]
updated gentoo rule file to handle removable ide devices.

Thanks to Kay for the quick fix.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoadd NETLINK define for the lazy distros
Kay Sievers [Thu, 4 Aug 2005 10:24:41 +0000 (12:24 +0200)]
add NETLINK define for the lazy distros

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years ago065 release
Greg Kroah-Hartman [Tue, 2 Aug 2005 20:56:41 +0000 (13:56 -0700)]
065 release

18 years agoMerge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
Greg Kroah-Hartman [Tue, 2 Aug 2005 20:07:30 +0000 (13:07 -0700)]
Merge gregkh@ehlo.org:/home/kay/public_html/linux/hotplug/udev-kay

18 years agoAdded persistent name rules for block devices to gentoo rule file.
Greg Kroah-Hartman [Tue, 2 Aug 2005 19:28:50 +0000 (12:28 -0700)]
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>
18 years agoupdate release notes for next version
Kay Sievers [Tue, 2 Aug 2005 02:32:19 +0000 (04:32 +0200)]
update release notes for next version

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoAdded horrible (but fun) path_id script to extras.
Greg Kroah-Hartman [Mon, 1 Aug 2005 23:37:41 +0000 (16:37 -0700)]
Added horrible (but fun) path_id script to extras.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoUpdate gentoo rules file.
Greg Kroah-Hartman [Mon, 1 Aug 2005 22:44:02 +0000 (15:44 -0700)]
Update gentoo rules file.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoadd udevmonitor, to debug netlink+udev events at the same time
Kay Sievers [Mon, 1 Aug 2005 18:22:46 +0000 (20:22 +0200)]
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>
18 years agoallow RUN to send the environment to a local socket
Kay Sievers [Mon, 1 Aug 2005 03:07:19 +0000 (05:07 +0200)]
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>
18 years agofix GGC signed pointer warnings and switch volume_id to stdint
Kay Sievers [Sun, 31 Jul 2005 23:33:36 +0000 (01:33 +0200)]
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>
18 years agoOops, 064 release, not 063 064
Greg Kroah-Hartman [Sat, 23 Jul 2005 16:27:02 +0000 (12:27 -0400)]
Oops, 064 release, not 063

18 years ago063 release
Greg Kroah-Hartman [Sat, 23 Jul 2005 16:26:28 +0000 (12:26 -0400)]
063 release

18 years agomove code to its own files
Kay Sievers [Fri, 22 Jul 2005 16:35:58 +0000 (12:35 -0400)]
move code to its own files

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agomake SYSFS{} usable for all devices
Kay Sievers [Wed, 20 Jul 2005 16:12:56 +0000 (12:12 -0400)]
make SYSFS{} usable for all devices

Patch from:
  Hannes Reinecke <hare@suse.de>

18 years agousb_id: fix typo
Hannes Reinecke [Tue, 19 Jul 2005 18:36:34 +0000 (14:36 -0400)]
usb_id: fix typo

18 years agoadd ID_BUS to *_id programs
Hannes Reinecke [Tue, 19 Jul 2005 15:18:19 +0000 (11:18 -0400)]
add ID_BUS to *_id programs

18 years agocreate_floppy_devices: add tool to create floppy nodes based on sysfs info
Hannes Reinecke [Tue, 19 Jul 2005 15:14:12 +0000 (11:14 -0400)]
create_floppy_devices: add tool to create floppy nodes based on sysfs info

18 years agovolume_id: add OCFS (Oracle Cluster File System) support
Andre Masella [Sun, 17 Jul 2005 13:54:40 +0000 (09:54 -0400)]
volume_id: add OCFS (Oracle Cluster File System) support

18 years agoadd padding to rules structure
Kay Sievers [Sun, 17 Jul 2005 13:40:29 +0000 (09:40 -0400)]
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>
18 years agoallow rules to have labels and skip to next label
Kay Sievers [Sat, 16 Jul 2005 05:46:31 +0000 (07:46 +0200)]
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"

18 years agothread unknown ENV{key} match as empty value
Kay Sievers [Sat, 16 Jul 2005 03:50:34 +0000 (05:50 +0200)]
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>
18 years ago063 release
Greg KH [Thu, 14 Jul 2005 23:09:21 +0000 (16:09 -0700)]
063 release

18 years agoadd 'make tests' as I'm always typing that one wrong...
Greg KH [Thu, 14 Jul 2005 22:27:30 +0000 (15:27 -0700)]
add 'make tests' as I'm always typing that one wrong...

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years agoReally commit the udev_run_devd changes...
Greg KH [Thu, 14 Jul 2005 22:24:59 +0000 (15:24 -0700)]
Really commit the udev_run_devd changes...

18 years agoFixed udev_run_devd to run the /etc/dev.d/DEVNAME/ files too
Greg KH [Thu, 14 Jul 2005 22:19:37 +0000 (15:19 -0700)]
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>
18 years agoMerge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
Greg KH [Thu, 14 Jul 2005 21:13:34 +0000 (14:13 -0700)]
Merge gregkh@ehlo.org:/home/kay/public_html/linux/hotplug/udev-kay

18 years agocorrect default mode documentation in udev
Ville Skyttä [Thu, 14 Jul 2005 09:43:05 +0000 (11:43 +0200)]
correct default mode documentation in udev

18 years agofix typo in GROUP value application
Anton Farygin [Thu, 14 Jul 2005 09:39:55 +0000 (11:39 +0200)]
fix typo in GROUP value application

18 years agovolume_id: remove s390 dasd handling, it is dasd_id now
Kay Sievers [Wed, 13 Jul 2005 10:01:53 +0000 (12:01 +0200)]
volume_id: remove s390 dasd handling, it is dasd_id now

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agodasd_id: add s390 disk-label prober
Hannes Reinecke [Wed, 13 Jul 2005 09:35:51 +0000 (11:35 +0200)]
dasd_id: add s390 disk-label prober

Signed-off-by: Hannes Reinecke <hare@suse.de>
18 years agotrivial fixes for *_id programs
Kay Sievers [Wed, 13 Jul 2005 09:23:21 +0000 (11:23 +0200)]
trivial fixes for *_id programs

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofix position of raw rules in gentoo config file
Greg KH [Tue, 12 Jul 2005 22:46:54 +0000 (15:46 -0700)]
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>
18 years agoIMPORT: add {parent} to import the persistent data of the parent device
Kay Sievers [Tue, 12 Jul 2005 12:46:36 +0000 (14:46 +0200)]
IMPORT: add {parent} to import the persistent data of the parent device

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoallow multiple values to be matched with KEY=="value1|value2"
Kay Sievers [Tue, 12 Jul 2005 10:52:56 +0000 (12:52 +0200)]
allow multiple values to be matched with KEY=="value1|value2"

Signed-off-by: Kay Sievers <kay.sievers@suse.de>