Commit Graph

1523 Commits

Author SHA1 Message Date
Greg KH
23fd5f886c fix scsi_id rule in gentoo config file 2005-09-13 10:39:07 -07:00
Greg KH
a2c7b2173a 069 release 2005-09-13 10:24:51 -07:00
Kay Sievers
9d97f3bb79 FAQ: update things that have changed
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-12 16:00:09 +02:00
Kay Sievers
a8b38f1c44 fic gcov use and move it into the Makefile
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-12 15:26:33 +02:00
Kay Sievers
852cc0f58d remove chassis_id program
Broken and unmaintained!

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-12 14:28:59 +02:00
Kay Sievers
17d3cb1288 Makefile: cleanup install targets
Split into individual target and never remove any config file.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-12 14:21:14 +02:00
Kay Sievers
7a526da67d Makefile: fix prerequisits for $(PROGRAMS)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-10 23:35:30 +02:00
Duncan Sands
609435bad6 firmware_helper: fix write count 2005-09-09 12:38:58 +02:00
Kay Sievers
f432183eb8 update TODO
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 12:45:09 +02:00
Kay Sievers
aab571f362 fix useless but funny name_cdrom.pl script to work again
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 12:24:18 +02:00
Kay Sievers
86eeb30e0c update SUSE rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 03:53:54 +02:00
Kay Sievers
14e31b3502 add "totally outdated" header to docs/overview :)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 03:49:23 +02:00
Kay Sievers
b90f1b8189 delete old Fedora html page
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 03:38:06 +02:00
Kay Sievers
619d548faa delete docs/persistent_naming - obsoleted by persistent disk names
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 03:36:45 +02:00
Kay Sievers
fc04985839 delete cdromsymlinks* - obsoleted by cdrom_id and IMPORT rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 03:34:34 +02:00
Kay Sievers
b2652e6b29 klibc: update to version 1.1.1
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-06 22:57:07 +02:00
Kay Sievers
3ce0d7b202 move and update libsysfs.txt
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-06 20:33:59 +02:00
Kay Sievers
077ed27c55 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>
2005-09-06 12:18:04 +02:00
Kay Sievers
7596a56298 scsi_id: rename SYSFS to LIBSYSFS
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-31 23:36:25 +02:00
Kay Sievers
7b4f33ce60 udevinfo: restore -d option
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-31 02:35:35 +02:00
Kay Sievers
f336ff8003 also forgot udevmonitor.8
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-31 00:03:20 +02:00
Kay Sievers
0599b4a25f add missing udevsend man page
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-31 00:00:22 +02:00
Kay Sievers
7b86ada7d4 all man pages rewritten to use DocBook XML
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 23:30:52 +02:00
Kay Sievers
0e47c219fc Makefile: remove all the duplicated rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 17:03:25 +02:00
Kay Sievers
264ccb68ee test the automatic man page rebuild and checkin
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 05:02:11 +02:00
Kay Sievers
ae8cc07b2a udevinfo: rename dump() to export()
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 04:56:24 +02:00
Kay Sievers
420a506ef0 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>
2005-08-30 04:41:42 +02:00
Kay Sievers
24ca5c3398 udevinfo: add database export
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-29 15:01:08 +02:00
Kay Sievers
b581515ce8 update RELEASE-NOTES
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-29 03:49:40 +02:00
Kay Sievers
2983db9745 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>
2005-08-29 03:48:17 +02:00
Kay Sievers
a8586078fc udev_test.pl: we replace untrusted chars with '_'
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-29 02:19:36 +02:00
Kay Sievers
69348b66ff 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>
2005-08-29 01:19:02 +02:00
Kay Sievers
199cdd8675 udevd: move some logging to "info" and "err"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28 23:19:45 +02:00
Kay Sievers
e79952c598 vol_id: ID_LABEL_SAFE will no longer contain fancy characters
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28 23:16:56 +02:00
Kay Sievers
b2c6818dc3 rename ...trailing_char() to ...trailing_chars()
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28 23:15:51 +02:00
Kay Sievers
d2ecd6a19d 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>
2005-08-28 23:14:59 +02:00
Kay Sievers
c6303c1316 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>
2005-08-28 23:13:14 +02:00
Kay Sievers
f1ff8d7b4a use WRITE_END/READ_END for the pipe index
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28 20:25:37 +02:00
Kay Sievers
764ce7f2ab 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>
2005-08-28 15:55:58 +02:00
Kay Sievers
5b13ecb830 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>
2005-08-28 13:49:32 +02:00
Kay Sievers
7104c558da don't store devpath in udevdb, we don't need it
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 23:27:43 +02:00
Kay Sievers
fb17920701 add and use name_list_cleanup() for cleaning up the string lists
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 16:15:41 +02:00
Kay Sievers
314edf3ca4 change parameter order of udev_db_search_name()
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 15:46:58 +02:00
Kay Sievers
64d735e652 print persistent data with "udevinfo -q all"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-27 15:37:03 +02:00
Kay Sievers
db481105c2 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>
2005-08-27 02:59:20 +02:00
Kay Sievers
3ad7a5b1a5 fix lookup for name in the udevdb, it should return the devpath
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-26 22:43:49 +02:00
Kay Sievers
8f847bb845 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>
2005-08-26 21:38:18 +02:00
Thierry Vignaud
c4ef16f92c switch to '==' in raid-devfs.sh 2005-08-26 14:52:57 +02:00
Kay Sievers
97dd82b9a7 update SUSE rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-26 14:27:13 +02:00
Kay Sievers
bcd9fc8f47 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>
2005-08-25 03:37:38 +02:00