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

1124 Commits

Author SHA1 Message Date
kay.sievers@vrfy.org
5f72c470ad [PATCH] simplify permission handling
Initialize the defaults in udev_config.c instead of namedev.c.
Replace macro by expanded code. Switch to mode_t instead
of string value. Add and clarify some comments.
2005-04-26 23:00:29 -07:00
kay.sievers@vrfy.org
927bda3792 [PATCH] handle /etc/hotplug.d/ only if the event comes from udevd 2005-04-26 23:00:29 -07:00
kay.sievers@vrfy.org
2af003feb2 [PATCH] trivial cleanups and change some comments 2005-04-26 23:00:29 -07:00
kay.sievers@vrfy.org
45a7b668ec [PATCH] remove unused variables
Remove udev.bus, cause it's currently unused and newer kernels will pass
it in the hotplug environment as PHYSDEVBUS.

Remove udev.action, cause it's unused.

Rename udev_set_values() to udev_init_device().
2005-04-26 23:00:29 -07:00
kay.sievers@vrfy.org
4497fcbf71 [PATCH] udevsend/udevd handle events without a subsystem
Accept event without a subsystem and pass it through udevd.
Pass empty environment while starting udevd.
2005-04-26 23:00:29 -07:00
kay.sievers@vrfy.org
9a50eb497f [PATCH] use blacklist on device "remove" and remove dev.d/ call code duplication 2005-04-26 23:00:29 -07:00
kay.sievers@vrfy.org
a0294b7625 [PATCH] update the man pages and correct Usage: hints
Add UDEV_LOG to the man udev man page. Remove mention of specific
variables from the udevd/udevsend man page as we changed to pass
the whole environment.

Correct printed Usage: of udevtest and udevinfo.

Init the config in udevtest earlier to accept input with and without
the sysfs mount point.
2005-04-26 23:00:29 -07:00
kay.sievers@vrfy.org
16ac31aaee [PATCH] don't call the hotplug scripts with a test run 2005-04-26 23:00:29 -07:00
Greg KH
97adaace4f more fixups 2005-04-26 22:54:32 -07:00
Greg KH
b1e95455d2 fixups to get back to proper patch order
Damm, it's hard to merge a multi-line tree into one flat line at times...
2005-04-26 22:52:57 -07:00
kay.sievers@vrfy.org
7757db1f85 [PATCH] don't call dev.d/ scripts twice, if directory = subsystem
The /etc/dev.d/input/input.dev was called twice for /dev/input/mouse.
Skip the execution if we get a directory named after the subsystem.
Move UDEV_NO_DEVD where it belongs.
2005-04-26 22:47:02 -07:00
kay.sievers@vrfy.org
9aa0485c97 [PATCH] remove archive file if we changed something 2005-04-26 22:44:26 -07:00
kay.sievers@vrfy.org
7c2aae11ff [PATCH] link archive insted of objects
This cuts the size of the binaries, as only objects that
are actually used are linked into the binary:

 45592 -> 43608 udev
  4380 ->  4380 udevsend
 10380 ->  4652 udevd
 34732 -> 33100 udevinfo
 45432 -> 37208 udevtest
2005-04-26 22:44:08 -07:00
kay.sievers@vrfy.org
9af5bb2f8f [PATCH] rename udev_lib to udev_utils and dev_d to udev_multiplex 2005-04-26 22:44:02 -07:00
sschweizer@gmail.com
8a0dc204e9 [PATCH] Allow GROUP to have modifiers in it 2005-04-26 22:43:36 -07:00
greg@kroah.com
ad89f2be3b [PATCH] comment out ability to run udev-test.pl with valgrind 2005-04-26 22:43:27 -07:00
greg@kroah.com
aa8666f77b [PATCH] fix spurious valgrind warning in udev. 2005-04-26 22:43:20 -07:00
sjoerd@spring.luon.net
67aca2c509 [PATCH] DEVNAME on device removal
I just noticed that the DEVNAME enviroment variable isn't being set anymore
  in udev 0.046 on device removal, while it was being set in 0.042. We're using
  the property tto do umount -l <devices> when a block device is removed. Afaik
  there is no other way to associate a device with it's DEVNAME on removal ?

  Also are there cases where doing umount -l on the removed devices is wrong?
  I guess the device is gone, so there is no sense in keeping it mounted (it's
  not like the filesystem is gonna come back in a sane state again)..

  Attached (trivial) patch brings back the DEVNAME variable on device removal.
2005-04-26 22:42:36 -07:00
greg@kroah.com
0d1ecb44a0 [PATCH] fix udevinfo '-q path' option as it was not working 2005-04-26 22:38:22 -07:00
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