1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-31 16:21:11 +03:00
Commit Graph

1505 Commits

Author SHA1 Message Date
kay.sievers@vrfy.org
d07557b9b6 [PATCH] handle whole hotplug event with udevd/udev
If /proc/sys/kernel/hotplug points to /sbin/udevsend we handle the whole
hotplug event with multiplexing /etc/hotplug.d/.
2005-04-26 22:37:58 -07:00
kay.sievers@vrfy.org
c449b25e3f [PATCH] integrate wait_for_sysfs in udev
Move the wait_for_sysfs logic into the udev binary. udev is called for
every hotplug event. It also waits for /devices events.
2005-04-26 22:37:37 -07:00
kay.sievers@vrfy.org
cc0e9bfc35 [PATCH] remove my test code 2005-04-26 22:35:00 -07:00
kay.sievers@vrfy.org
491b02acd9 [PATCH] make the searched multiplex directories conditionally
If we don't have "name" or a "subsystem" don't look for it.
2005-04-26 22:35:00 -07:00
kay.sievers@vrfy.org
6f59ed5547 [PATCH] add MANAGED_EVENT to the forked udev environment
This will prevent a loop, if udev sends events back into the
daemon.
2005-04-26 22:35:00 -07:00
kay.sievers@vrfy.org
a97b06483e [PATCH] export DEVNAME on remove event
Fix from Sjoerd Simons <sjoerd@spring.luon.net>, it got lost
on the recent reorganization of the udev processing stages.
2005-04-26 22:35:00 -07:00
kay.sievers@vrfy.org
69d2dbd66f [PATCH] export udev_log flag to the environment
Forked scripts and callouts may want to follow udev's configured behavior
and log only if udev is logging itself.
2005-04-26 22:35:00 -07:00
kay.sievers@vrfy.org
7a0643a93f [PATCH] add support for /devices-devices without any file to wait for 2005-04-26 22:30:28 -07:00
greg@kroah.com
ff5761c972 [PATCH] fix parallel build error 2005-04-26 22:30:28 -07:00
kay.sievers@vrfy.org
a4f0cc793a [PATCH] Patch from Alex Riesen <raa.lkml@gmail.com>
> I just put const's at some places. It cut down data segments, but
> increased code size.
> Overall still smaller:
> 
> -rwxr-xr-x  1 user users 50420 Nov 19 10:53 ../udev-046/udev
> -rwxr-xr-x  1 user users 49556 Nov 19 10:53 udev
>    text    data     bss     dec     hex filename
>   47245     968   22480   70693   11425 ../udev-046/udev
>   48089     104   22064   70257   11271 udev
> 
> Also, the instance of utsname in udev_lib.c is used only once.
2005-04-26 22:30:28 -07:00
kay.sievers@vrfy.org
8474ff500f [PATCH] add a bunch of busses to the list of what to wait for 2005-04-26 22:30:28 -07:00
kay.sievers@vrfy.org
f602ccf072 [PATCH] close connection to syslog in forked udevd child 2005-04-26 22:30:28 -07:00
kay.sievers@vrfy.org
ec9cc0127d [PATCH] udevd exit path cleanup 2005-04-26 22:30:28 -07:00
kay.sievers@vrfy.org
8825e9e71b [PATCH] fix network device naming bug 2005-04-26 22:30:28 -07:00
greg@kroah.com
162c0ee8b9 [PATCH] 046 release 2005-04-26 22:30:28 -07:00
kay.sievers@vrfy.org
c02ae2fe33 [PATCH] Don't try to print major/minor for devices without a dev file. 2005-04-26 22:30:27 -07:00
kay.sievers@vrfy.org
fc2aa29613 [PATCH] remove get_device_type and merge that into udev_set_values() 2005-04-26 22:30:27 -07:00
kay.sievers@vrfy.org
80513ea38f [PATCH] prevent udevd crash if DEVPATH is not set
Just move the event straight to the exec list and don't try
to compare a NULL pointer.
2005-04-26 22:30:27 -07:00
kay.sievers@vrfy.org
4bee999405 [PATCH] add ippp and bcrypt to the exception lists of wait_for_sysfs 2005-04-26 22:27:34 -07:00
kay.sievers@vrfy.org
90e84c8148 [PATCH] let klibc add the trailing newline to syslog conditionally
We get an empty line after every debug print from libsysfs,
so don't add a second if we already have one.
2005-04-26 22:27:34 -07:00
kay.sievers@vrfy.org
e4ad54a302 [PATCH] change key names in udevinfo sysfs walk to match the kernel 2005-04-26 22:27:34 -07:00
kay.sievers@vrfy.org
7225821d63 [PATCH] disable logging for udevstart
The slow logging facilites on some systems are a reason for
the reported slowness of udevstart. On one of my boxes udevstart
is down from 9 second to 0.3 seconds.
2005-04-26 22:27:34 -07:00
kay.sievers@vrfy.org
7efa217db0 [PATCH] add NAME{ignore_remove} attribute
Some broken ide drivers are generating high event traffic, with
add/remove events. With this attribute, it can be specified,
that the node is always available. It may be used in conjunction
with the new DRIVER= match to catch specific kernel device drivers.
2005-04-26 22:27:34 -07:00
kay.sievers@vrfy.org
d4a32aa2e4 [PATCH] remove historical SYSFS_attr="value" format
This is long ago replaced by the unified key attribute
format SYSFS{attr}="value".
2005-04-26 22:27:34 -07:00
kay.sievers@vrfy.org
d402af7d71 [PATCH] don't wait for sysfs if the kernel(2.6.10-rc2) tells us what not to expect
Newer kernels will tell us if we should wait for the "device" or
the "bus" link. So don't waste the time with our lists or wait
for the timeout.
2005-04-26 22:27:34 -07:00
kay.sievers@vrfy.org
2092fbcdeb [PATCH] support DRIVER as a rule key
Match with a rule against a device with a specific kernel driver.
2005-04-26 22:26:25 -07:00
kay.sievers@vrfy.org
6818c51d7a [PATCH] support SUBSYSTEM as a rule key
This should make it easier to catch e.g all block or net devices with
a single rule.
2005-04-26 22:25:38 -07:00
kay.sievers@vrfy.org
02fa9ae589 [PATCH] rename udevdb* to udev_db* 2005-04-26 22:25:14 -07:00
kay.sievers@vrfy.org
8673dcb842 [PATCH] Make dev.d/ handling a separate processing stage
Move the logic when and how to call the dev.d/ scripts into the
main processing path.
2005-04-26 22:25:09 -07:00
kay.sievers@vrfy.org
af4b05d491 [PATCH] make the udev object available to more processing stages
Remove the overwriting of main_argv[] hack and use the values
from the udev object.
  
Pass the udev object to call_foreach_file().
  
In the udevstart case, export SUBSYSTEM and UDEVSTART to the
environment.
2005-04-26 22:24:38 -07:00
kay.sievers@vrfy.org
13f24d596c [PATCH] remove udev_lib dependency from udevsend, which makes it smaller 2005-04-26 22:24:30 -07:00
kay.sievers@vrfy.org
c6478ec1e1 [PATCH] add ACTION to udev object to expose it to the whole process 2005-04-26 22:24:10 -07:00
kay.sievers@vrfy.org
31fd340352 [PATCH] make udevinfo's -r option also workimg for symlink queries
[kay@pim udev.kay]$ ./udevinfo -r -q symlink -p /class/video4linux/video0
/dev/camera0 /dev/kamera0 /dev/videocam0 /dev/webcam0 

[kay@pim udev.kay]$ ./udevinfo -q symlink -p /class/video4linux/video0
camera0 kamera0 videocam0 webcam0
2005-04-26 22:21:20 -07:00
kay.sievers@vrfy.org
38753167e4 [PATCH] let udev act as udevstart if argv[1] == "udevstart"
"udev udevstart" will run udev as udevstart. This makes it easier
to run a test in the source tree without the need to create a
symlink.
2005-04-26 22:21:20 -07:00
kay.sievers@vrfy.org
3bdef3939d [PATCH] improve udevinfo sysfs info walk 2005-04-26 22:21:20 -07:00
kay.sievers@vrfy.org
f156b6d203 [PATCH] add sysfs info walk to udevinfo
The option "-s" will get information about the major/minor,
the physical device, the bus value and the driver from sysfs for
all class and block devices:

kay@pim udev.kay]$ ./udevinfo -s

DEVPATH        '/sys/block/sda'
SUBSYSTEM      'block'
NAME           'sda'
MAJORMINOR     '8:0'
PHYSDEVPATH    '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host2/target2:0:0/2:0:0:0'
PHYSDEVPATHBUS 'scsi'
DRIVER         'sd'

DEVPATH        '/sys/class/input/mice'
SUBSYSTEM      'input'
NAME           'mice'
MAJORMINOR     '13:63'

DEVPATH        '/sys/class/input/mouse0'
SUBSYSTEM      'input'
NAME           'mouse0'
MAJORMINOR     '13:32'

...
2005-04-26 22:21:19 -07:00
kay.sievers@vrfy.org
4a231017ff [PATCH] pass the whole event environment to udevd
Make _all_ hotplug variables available to the forked udev,
the udev callouts and the udev dev.d/ scripts. We put the
whole environment into a buffer and send it over the udevd
socket. udevd recreates *envp[] and passes it to the exec().
2005-04-26 22:18:32 -07:00
greg@kroah.com
04b49aab9a [PATCH] make spotless for releases. 2005-04-26 22:18:23 -07:00
kay.sievers@vrfy.org
2b41e68a08 [PATCH] replace tdb database by simple lockless file database
This makes the udev operation completely lockless by storing a
file for every node in /dev/.udevdb/* This solved the problem
with deadlocking concurrent udev processes waiting for each other
to release the file lock under heavy load.
2005-04-26 22:16:40 -07:00
greg@kroah.com
482b0ecd8f [PATCH] 045 release 2005-04-26 22:12:45 -07:00
azarah@nosferatu.za.org
9dfe20eff7 [PATCH] Some updates for Gentoo's udev rules
Hi,

Here is a few updates for the udev.rules.gentoo from udev package.
I will summarise it briefly:

1)  The last change you did to legacy tty's is wrong.

I say this because:
1a)  The original devfs rules had both master and slave in /dev/pty:

nosferatu linux # grep devfs_name drivers/char/pty.c
        pty_driver->devfs_name = "pty/m";
        pty_slave_driver->devfs_name = "pty/s";
nosferatu linux #


1b)  If you refer to '2.6.8.1-mm1 Tty problems?', you will see that
the /dev/tty/ directory our rules create, replaces this symlink:

nosferatu portage # ls -l /dev/tty
crw-rw-rw-  1 root tty 5, 0 Nov 14 17:06 /dev/tty
nosferatu portage #

which is used to determine the controlling tty.

2)  Somebody added the /dev/cpu/microcode rule, but it was not run
as there was an older rule before that placing it in /dev/misc (which
is wrong).  Just remove the first broken rule

3)  Some form/tab cleanups.  Reorder rules alphabetically according to
device class to make searching/editing easier.
2005-04-26 22:12:41 -07:00
greg@kroah.com
0bac7bab72 [PATCH] 044 release 2005-04-26 22:12:34 -07:00
greg@kroah.com
5ca6ff6457 [PATCH] 043 release 2005-04-26 22:12:10 -07:00
kay.sievers@vrfy.org
c072fd0112 [PATCH] reduce syslog noise of udevsend if multiple instances try to start udevd 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org
a258d159f4 [PATCH] add i2c-dev to the list of devices without a bus 2005-04-26 22:09:26 -07:00
greg@kroah.com
97a0e3c06e [PATCH] add cdsymlinks.sh support to gentoo rules file. 2005-04-26 22:09:26 -07:00
greg@kroah.com
3874126807 [PATCH] fix gentoo legacy tty rule
I thought I had fixed this a long time ago...
2005-04-26 22:09:26 -07:00
greg@kroah.com
e9f653894e [PATCH] remove 'sudo' usage from the Makefile
should fix a lot of gentoo bug reports
2005-04-26 22:09:26 -07:00
greg@kroah.com
800ab95bd5 [PATCH] make udev-test.pl test for root permissions before running
Should prevent false error reports from happening.
2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org
52a6ef66f2 [PATCH] Shut up wait_for_sysfs class/net failure messages, as it's not possible 2005-04-26 22:09:26 -07:00