1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
Commit Graph

1506 Commits

Author SHA1 Message Date
kay.sievers@vrfy.org
98446db553 [PATCH] udevd-test.pl: remove wrong date calculation
A hour wrap during the test run does not work :) Just remove
all the useless date conversions as we are only interested in the
seconds it takes to process.

[root@pim udevd-test]# ./udevd-test.pl 9
   ...
   device: /class/tty/console, action: remove 
   forking udev time:     Sat Dec 11 18:59:57 2004
   the delay time is:     3 s 

   device: /class/tty/ptmx, action: remove 
   forking udev time:     Sat Dec 11 19:00:07 2004
   the delay time is:     4013 s 

   the delay time is: 4013 
   udevd doesn't act properly.
2005-04-26 23:13:48 -07:00
kay.sievers@vrfy.org
7e0bd58475 [PATCH] check earlier if we should run as udevstart 2005-04-26 23:13:48 -07:00
kay.sievers@vrfy.org
8544c9ad4f [PATCH] remove double initialization 2005-04-26 23:13:48 -07:00
kay.sievers@vrfy.org
d7190b0513 [PATCH] include missing header to udevtest.c 2005-04-26 23:13:47 -07:00
kay.sievers@vrfy.org
51737eb8b8 [PATCH] add -V option to udev to print the version number
On Sat, 2004-12-11 at 18:44 +0200, Martin Schlemmer [c] wrote:
> 
> Any suggestions to determining the version of the installed udev?
> This is now during startup, to see if we can make use of using
> udevsend as hotplug agent.  If the system was up, udevinfo could
> be used, but that is in /usr/bin that might be on a seperate /usr.
> I know we might move udevinfo to /bin, but that might be an issue
> for some, and adding a -V switch to /sbin/udev might be a better
> choice.
2005-04-26 23:13:47 -07:00
kay.sievers@vrfy.org
5ce120d366 [PATCH] prevent udev node creatinon for "class" registration
I've found a /dev/video4linux node and just realized, that libsysfs
searches all subdirs for an attribute name.
So it found /class/video4linux/video0/dev for the videodev class
creation event /class/video4linux and created a node.

Just ignore the SUBSYSTEM="class" events now.
2005-04-26 23:13:47 -07:00
kay.sievers@vrfy.org
79721e0a77 [PATCH] udevd: serialization of the event sequence of a chain of devices
Currently udevd delays only events for the same DEVPATH.

Example of an "add" event sequence:
  /block/sda
  /block/sda/sda1

With this change, we make sure, that the udev process handling
/block/sda has finished its work (waited for all attributes,
created the node) before we fork the udev event for /block/sda/sda1.
This way the event for sda1 can be sure, that the node for the
main device is already created (may be useful for disk labels).

It will not affect any parallel device handling, only the sequence
of the devices directory chain is serialized. The 10.000 disks
plugged in will still run as parallel events. :)

The main motivation to do this is the program execution of the
dev.d/ and hotplug.d/ directory. If we don't wait for the parent
event to exit, we can't be sure that the executed scripts are
run in the right order.

On Thu, Dec 09, 2004 at 09:18:28AM +0100, Kay Sievers wrote:
> On Wed, 2004-12-08 at 19:07 -0800, David Brownell wrote:
> > Could that argument apply to the underlying hardware, too?

> We now make sure that the sequence of events for a device
> is serialized for every device chain and the class/block
> devices which have a "device" link to a physical device are
> handled after the physical device is fully populated and
> notified to userspace. It will only work this way on kernels
> later than 2.6.10-rc1 cause it depends on the PHYSDEVPATH
> value in the hotplug environment.
2005-04-26 23:13:47 -07:00
kay.sievers@vrfy.org
0dfbe9451b [PATCH] add a class/fc_host file to the list of what to wait for 2005-04-26 23:13:47 -07:00
kay.sievers@vrfy.org
c2fe814e30 [PATCH] udev_volume_id: links sysfs.a instead of all objects
cuts down the size from:
  dynamically linked: 48.030 -> 45.187
  statically linked:  149.177 ->  142.362
2005-04-26 23:13:47 -07:00
greg@kroah.com
7d92b28f39 [PATCH] 048 release 2005-04-26 23:13:47 -07:00
greg@kroah.com
c93053663f [PATCH] fix udev_volume_id so it will now build properly. 2005-04-26 23:13:47 -07:00
greg@kroah.com
09f2756071 [PATCH] fix scsi_id build errors due to changes in the main udev makefile
also fixed up the QUIET issue when it was disabled for the extras programs
2005-04-26 23:13:47 -07:00
greg@kroah.com
6fbecf3547 [PATCH] 047 release 2005-04-26 23:13:47 -07:00
greg@kroah.com
06ed11be3e [PATCH] add more debian rules files. 2005-04-26 23:10:31 -07:00
greg@kroah.com
f01a9ca1a2 [PATCH] move distro specific config files into their own directories 2005-04-26 23:10:24 -07:00
Greg KH
5e7d9f4060 more merge fixups 2005-04-26 23:10:15 -07:00
greg@kroah.com
e0a17b749f [PATCH] update debian rules files. 2005-04-26 23:06:10 -07:00
greg@kroah.com
55b0508969 [PATCH] added asterix rules to the gentoo file. 2005-04-26 23:06:10 -07:00
greg@kroah.com
de5d2ee0a7 [PATCH] fix gentoo scsi cdrom rule
http://bugs.gentoo.org/show_bug.cgi?id=73208
2005-04-26 23:06:10 -07:00
greg@kroah.com
3efc93cc40 [PATCH] Fix the multithreaded build again... 2005-04-26 23:06:10 -07:00
greg@kroah.com
d18c91df7f [PATCH] use udevstart for udev.init.* files.
Thanks to Kay for pointing it out.
2005-04-26 23:06:10 -07:00
greg@kroah.com
69bef84191 [PATCH] delete a bunch of files no longer needed.
Thanks to Kay for pointing it out.
2005-04-26 23:06:10 -07:00
klauser@access.unizh.ch
5bc597feca [PATCH] Various typos and other litte errors in udev.8.in
Thanks-To: Tobias Klauser <tklauser@access.unizh.ch>

While crawling through the udev manpage I noticed some typos and other
grammatical errors. English is not my native language, so I'm not sure
if I fixed everything right. I would be glad if any English-speaking
person could check this patch before applying.
2005-04-26 23:06:10 -07:00
kay.sievers@vrfy.org
e4b5f339c7 [PATCH] update Fedora dev.d/ example and remove unused conf.d/ directory 2005-04-26 23:06:10 -07:00
kay.sievers@vrfy.org
c64081980e [PATCH] don't install distribution specific init script on "make install"
Leave that part up to the one who itegrates udev into a system as
there is much more to care of than to call a init stript for a
dynamic dev.
2005-04-26 23:06:10 -07:00
kay.sievers@vrfy.org
0ba5bb106b [PATCH] restore OWNER/GROUP assignment in rule coming from RESULT 2005-04-26 23:06:10 -07:00
kay.sievers@vrfy.org
e608ba5d45 [PATCH] make gcov compile scripts working with recent gcc 2005-04-26 23:06:10 -07:00
kay.sievers@vrfy.org
8e2bf855bd [PATCH] fix udev-test/udev-test.pl to work with again 2005-04-26 23:06:10 -07:00
kay.sievers@vrfy.org
e1b7e62a26 [PATCH] add net/atml and class/ppdev to the wait_for_sysfs exception list 2005-04-26 23:06:10 -07:00
kay.sievers@vrfy.org
f2503c9792 [PATCH] add net/nlv* devices to the exception list 2005-04-26 23:05:03 -07:00
kay.sievers@vrfy.org
d2fe701e9c [PATCH] add "pcmcia" and "fc_transport" to the wait_for_sysfs lists 2005-04-26 23:00:29 -07:00
kay.sievers@vrfy.org
3fd7a9bfc0 [PATCH] remove unused timestamp field 2005-04-26 23:00:29 -07:00
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