chiark / gitweb /
elogind.git
18 years agoadd install test to 'make buildtest'
Kay Sievers [Wed, 14 Sep 2005 15:29:27 +0000 (17:29 +0200)]
add install test to 'make buildtest'

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoEXTRAS: cleanup and sync all Makefiles
Kay Sievers [Wed, 14 Sep 2005 15:00:02 +0000 (17:00 +0200)]
EXTRAS: cleanup and sync all Makefiles

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agovolume_id: fix error handling with failing read()
Kay Sievers [Wed, 14 Sep 2005 12:29:59 +0000 (14:29 +0200)]
volume_id: fix error handling with failing read()

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofix a debug text typo in udev_rules.c
Olivier Blin [Wed, 14 Sep 2005 12:28:59 +0000 (14:28 +0200)]
fix a debug text typo in udev_rules.c

18 years agoudevd: fix udevd read() calls to leave room for null byte
Amir Shalem [Wed, 14 Sep 2005 12:28:13 +0000 (14:28 +0200)]
udevd: fix udevd read() calls to leave room for null byte

18 years agoEXTRAS/Makefile: fix install targets to match main Makefile
Jürg Billeter [Wed, 14 Sep 2005 12:27:28 +0000 (14:27 +0200)]
EXTRAS/Makefile: fix install targets to match main Makefile

18 years agofix nbd error messages with a gentoo rule hack
Greg KH [Tue, 13 Sep 2005 21:10:27 +0000 (14:10 -0700)]
fix nbd error messages with a gentoo rule hack

18 years agofix scsi_id rule in gentoo config file
Greg KH [Tue, 13 Sep 2005 17:39:07 +0000 (10:39 -0700)]
fix scsi_id rule in gentoo config file

18 years ago069 release
Greg KH [Tue, 13 Sep 2005 17:24:51 +0000 (10:24 -0700)]
069 release

18 years agoFAQ: update things that have changed
Kay Sievers [Mon, 12 Sep 2005 14:00:09 +0000 (16:00 +0200)]
FAQ: update things that have changed

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofic gcov use and move it into the Makefile
Kay Sievers [Mon, 12 Sep 2005 13:26:33 +0000 (15:26 +0200)]
fic gcov use and move it into the Makefile

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoremove chassis_id program
Kay Sievers [Mon, 12 Sep 2005 12:28:59 +0000 (14:28 +0200)]
remove chassis_id program

Broken and unmaintained!

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoMakefile: cleanup install targets
Kay Sievers [Mon, 12 Sep 2005 12:21:14 +0000 (14:21 +0200)]
Makefile: cleanup install targets

Split into individual target and never remove any config file.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoMakefile: fix prerequisits for $(PROGRAMS)
Kay Sievers [Sat, 10 Sep 2005 21:35:30 +0000 (23:35 +0200)]
Makefile: fix prerequisits for $(PROGRAMS)

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofirmware_helper: fix write count
Duncan Sands [Fri, 9 Sep 2005 10:38:58 +0000 (12:38 +0200)]
firmware_helper: fix write count

18 years agoupdate TODO
Kay Sievers [Thu, 8 Sep 2005 10:45:09 +0000 (12:45 +0200)]
update TODO

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agofix useless but funny name_cdrom.pl script to work again
Kay Sievers [Thu, 8 Sep 2005 10:24:18 +0000 (12:24 +0200)]
fix useless but funny name_cdrom.pl script to work again

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdate SUSE rules
Kay Sievers [Thu, 8 Sep 2005 01:53:54 +0000 (03:53 +0200)]
update SUSE rules

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd "totally outdated" header to docs/overview :)
Kay Sievers [Thu, 8 Sep 2005 01:49:23 +0000 (03:49 +0200)]
add "totally outdated" header to docs/overview :)

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agodelete old Fedora html page
Kay Sievers [Thu, 8 Sep 2005 01:38:06 +0000 (03:38 +0200)]
delete old Fedora html page

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agodelete docs/persistent_naming - obsoleted by persistent disk names
Kay Sievers [Thu, 8 Sep 2005 01:36:45 +0000 (03:36 +0200)]
delete docs/persistent_naming - obsoleted by persistent disk names

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agodelete cdromsymlinks* - obsoleted by cdrom_id and IMPORT rules
Kay Sievers [Thu, 8 Sep 2005 01:34:34 +0000 (03:34 +0200)]
delete cdromsymlinks* - obsoleted by cdrom_id and IMPORT rules

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoklibc: update to version 1.1.1
Kay Sievers [Tue, 6 Sep 2005 20:57:07 +0000 (22:57 +0200)]
klibc: update to version 1.1.1

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agomove and update libsysfs.txt
Kay Sievers [Tue, 6 Sep 2005 18:33:59 +0000 (20:33 +0200)]
move and update libsysfs.txt

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd edd_id tool to match BIOS EDD disk information
Kay Sievers [Tue, 6 Sep 2005 10:18:04 +0000 (12:18 +0200)]
add edd_id tool to match BIOS EDD disk information

Thanks to:
    John Hull <John_Hull@Dell.com>
    Matt Domsch <Matt_Domsch@Dell.com>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoscsi_id: rename SYSFS to LIBSYSFS
Kay Sievers [Wed, 31 Aug 2005 21:36:25 +0000 (23:36 +0200)]
scsi_id: rename SYSFS to LIBSYSFS

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoudevinfo: restore -d option
Kay Sievers [Wed, 31 Aug 2005 00:35:35 +0000 (02:35 +0200)]
udevinfo: restore -d option

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoalso forgot udevmonitor.8
Kay Sievers [Tue, 30 Aug 2005 22:03:20 +0000 (00:03 +0200)]
also forgot udevmonitor.8

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd missing udevsend man page
Kay Sievers [Tue, 30 Aug 2005 22:00:22 +0000 (00:00 +0200)]
add missing udevsend man page

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoall man pages rewritten to use DocBook XML
Kay Sievers [Tue, 30 Aug 2005 21:30:52 +0000 (23:30 +0200)]
all man pages rewritten to use DocBook XML

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoMakefile: remove all the duplicated rules
Kay Sievers [Tue, 30 Aug 2005 15:03:25 +0000 (17:03 +0200)]
Makefile: remove all the duplicated rules

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agotest the automatic man page rebuild and checkin
Kay Sievers [Tue, 30 Aug 2005 03:02:11 +0000 (05:02 +0200)]
test the automatic man page rebuild and checkin

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoudevinfo: rename dump() to export()
Kay Sievers [Tue, 30 Aug 2005 02:56:24 +0000 (04:56 +0200)]
udevinfo: rename dump() to export()

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agowrite man page masters in DocBook XML
Kay Sievers [Tue, 30 Aug 2005 02:41:42 +0000 (04:41 +0200)]
write man page masters in DocBook XML

The troff man pages will still be checked into the tree but the
source is DocBook XML format living in the docs/ directory now.
Start with the easy ones, the main udev page is still left to
rewrite.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoudevinfo: add database export
Kay Sievers [Mon, 29 Aug 2005 13:01:08 +0000 (15:01 +0200)]
udevinfo: add database export

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoupdate RELEASE-NOTES
Kay Sievers [Mon, 29 Aug 2005 01:49:40 +0000 (03:49 +0200)]
update RELEASE-NOTES

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agocheck the udevdb before assigning a new %e
Kay Sievers [Mon, 29 Aug 2005 01:48:17 +0000 (03:48 +0200)]
check the udevdb before assigning a new %e

A second "add" event created a new enumeration with %e. Check the
udevdb first and if a matching name is already used.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoudev_test.pl: we replace untrusted chars with '_'
Kay Sievers [Mon, 29 Aug 2005 00:19:36 +0000 (02:19 +0200)]
udev_test.pl: we replace untrusted chars with '_'

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoremove special TIMEOUT handling from incoming queue
Kay Sievers [Sun, 28 Aug 2005 23:19:02 +0000 (01:19 +0200)]
remove special TIMEOUT handling from incoming queue

Moving events directly to the exec queue instead of the reordering
incoming queue, leaves holes in the sequence, that lead to timeouts for
all other events. Remove that part of the special handling.

(With netlink, events can't get out-of-order and the maximum timeout is 5
seconds and should not cause any trouble with the 10 sec timout for the
firmware class anyway. Events with timeouts are still prioritized for
execution, but don't bypass the incoming queue anymore.)

Many thanks to:
  Uberto Barbini <uberto@ubiland.net>

for his endless debugging and sending all the traces, that showed this
failure with his DVB device:
  UEVENT[1124474094] add@/module/stv0299
  UEVENT[1124474094] add@/module/ves1x93
  UEVENT[1124474094] add@/module/ttpci_eeprom
  UEVENT[1124474094] add@/module/saa7146
  UEVENT[1124474094] add@/module/video_buf
  UEVENT[1124474094] add@/module/saa7146_vv
  UEVENT[1124474094] add@/module/dvb_core
  UEVENT[1124474094] add@/module/dvb_ttpci
  UEVENT[1124474094] add@/bus/pci/drivers/dvb
  UEVENT[1124474094] add@/class/firmware/0000:00:14.0
  UDEV  [1124474094] add@/module/dvb_core
  UDEV  [1124474094] add@/module/saa7146_vv
  UDEV  [1124474094] add@/module/dvb_ttpci
  UDEV  [1124474094] add@/module/ves1x93
  UDEV  [1124474094] add@/module/ttpci_eeprom
  UDEV  [1124474094] add@/module/saa7146
  UDEV  [1124474094] add@/module/stv0299
  UDEV  [1124474094] add@/module/video_buf
  UDEV  [1124474094] add@/bus/pci/drivers/dvb
  UEVENT[1124474094] remove@/class/firmware/0000:00:14.0  <- event with TIMEOUT will leave a hole in the incoming
  UDEV  [1124474094] add@/class/firmware/0000:00:14.0        sequence, which will cause a wait for the alarm()
  UEVENT[1124474094] add@/class/i2c-adapter/i2c-1            that flushes the queue
  UEVENT[1124474094] add@/class/i2c-dev/i2c-1
  UDEV  [1124474094] remove@/class/firmware/0000:00:14.0  <- event also has TIMEOUT and is executed immediately
  UEVENT[1124474095] add@/class/dvb/dvb0.demux0
  UEVENT[1124474095] add@/class/dvb/dvb0.dvr0
  UEVENT[1124474095] add@/class/dvb/dvb0.video0
  UEVENT[1124474095] add@/class/dvb/dvb0.audio0
  UEVENT[1124474095] add@/class/dvb/dvb0.ca0
  UEVENT[1124474095] add@/class/dvb/dvb0.osd0
  UEVENT[1124474095] add@/class/dvb/dvb0.net0
  UEVENT[1124474095] add@/class/video4linux/video1
  UEVENT[1124474095] add@/class/dvb/dvb0.frontend0
  UDEV  [1124474099] add@/class/i2c-adapter/i2c-1         <- all others have 5 seconds delay cause of the missing event
  UDEV  [1124474099] add@/class/dvb/dvb0.ca0                 missing events
  UDEV  [1124474099] add@/class/dvb/dvb0.osd0
  UDEV  [1124474099] add@/class/video4linux/video1
  UDEV  [1124474099] add@/class/dvb/dvb0.frontend0
  UDEV  [1124474099] add@/class/dvb/dvb0.video0
  UDEV  [1124474099] add@/class/dvb/dvb0.audio0
  UDEV  [1124474099] add@/class/i2c-dev/i2c-1
  UDEV  [1124474099] add@/class/dvb/dv

My test program that simulates a similar sequence, runs without any delay
now. (With one of the next versions we will make netlink mandatory, then
we can remove the whole input queue crap with the reordering anyway.)

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoudevd: move some logging to "info" and "err"
Kay Sievers [Sun, 28 Aug 2005 21:19:45 +0000 (23:19 +0200)]
udevd: move some logging to "info" and "err"

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agovol_id: ID_LABEL_SAFE will no longer contain fancy characters
Kay Sievers [Sun, 28 Aug 2005 21:16:56 +0000 (23:16 +0200)]
vol_id: ID_LABEL_SAFE will no longer contain fancy characters

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agorename ...trailing_char() to ...trailing_chars()
Kay Sievers [Sun, 28 Aug 2005 21:15:51 +0000 (23:15 +0200)]
rename ...trailing_char() to ...trailing_chars()

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agodon't reenter get_udevd_msg() if message is ignored
Kay Sievers [Sun, 28 Aug 2005 21:14:59 +0000 (23:14 +0200)]
don't reenter get_udevd_msg() if message is ignored

Check all event sources with every iteration.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoremove not needed sig_flag for state of signal_pipe
Kay Sievers [Sun, 28 Aug 2005 21:13:14 +0000 (23:13 +0200)]
remove not needed sig_flag for state of signal_pipe

Less internal state is better. And, we don't need to call
read() twice with every signal handling.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agouse WRITE_END/READ_END for the pipe index
Kay Sievers [Sun, 28 Aug 2005 18:25:37 +0000 (20:25 +0200)]
use WRITE_END/READ_END for the pipe index

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agostart to enforce plain ascii or valid utf8
Kay Sievers [Sun, 28 Aug 2005 13:55:58 +0000 (15:55 +0200)]
start to enforce plain ascii or valid utf8

No device node or symlink can have other characters as plain
readable ascii or valid utf8. The /dev/disk/by-label/* symlinks
can no longer contain weird stuff read from untrusted sources.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd uft8 validation for safe volume label exporting
Kay Sievers [Sun, 28 Aug 2005 11:49:32 +0000 (13:49 +0200)]
add uft8 validation for safe volume label exporting

We will not support any other character encoding than plain ascii
or utf8 for volume labels. All invalid utf8 and non-ascii characters
are substituted for security reasons. No options, no fancy heuristics.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agodon't store devpath in udevdb, we don't need it
Kay Sievers [Sat, 27 Aug 2005 21:27:43 +0000 (23:27 +0200)]
don't store devpath in udevdb, we don't need it

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
18 years agoadd and use name_list_cleanup() for cleaning up the string lists
Kay Sievers [Sat, 27 Aug 2005 14:15:41 +0000 (16:15 +0200)]
add and use name_list_cleanup() for cleaning up the string lists

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
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