Commit graph

966 commits

Author SHA1 Message Date
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
kay.sievers@vrfy.org e920fed349 [PATCH] wait() for specific pid to return from fork(). 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org 5a73b25fd6 [PATCH] Don't use any syslog() in signal handler, cause it may deadlock. 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org a5d00f9d37 [PATCH] Add support for highpoint ataraid to volume_id to suppress 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org 56b979e00d [PATCH] Add a bunch of devices without "device" symlinks. 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org e5e2ea95a4 [PATCH] Exit, if udevtest cannot open the device (segfault). 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org a9ce604122 [PATCH] Patches from Harald Hoyer <harald@redhat.com>. 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org 091215a597 [PATCH] Apply the default permissions even if we found a entry in 2005-04-26 22:08:27 -07:00
kay.sievers@vrfy.org 2b0f835ccc [PATCH] add test for format chars in multiple symlinks to replace 2005-04-26 22:08:27 -07:00
kay.sievers@vrfy.org 6628a2ea38 [PATCH] Add net/vmnet and class/zaptel to the list of devices without physical device 2005-04-26 22:08:27 -07:00
greg@kroah.com bd842ba41a [PATCH] add test target to makefile
Will help distros that have a test phase of their build.
2005-04-26 22:08:27 -07:00
greg@kroah.com 948736dde7 [PATCH] add dumb script to show all sysfs devices in the system. 2005-04-26 22:08:27 -07:00
greg@kroah.com 1a04bce13a [PATCH] 042 release
In the grand tradition of releasing free software projects on my birthday
for the past few years.

And yes, I skipped version 041, call it grumpyness in my old age...
2005-04-26 22:08:27 -07:00
greg@kroah.com 069410dbb4 [PATCH] add inotify to the rules for gentoo 2005-04-26 22:08:27 -07:00
kay.sievers@vrfy.org f4949c53e6 [PATCH] Remove the last klibc specific line from the main udev code 2005-04-26 22:08:27 -07:00
kay.sievers@vrfy.org 993a633ab8 [PATCH] update to libsysfs 1.2.0 and add some stuff klib_fixup 2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org f8c1ccde6a [PATCH] improve klibc fixup integration 2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org 5cab7caa2a [PATCH] cleanup udevd/udevstart
Change to the same timeout loop we use in the rest of the code. Change
some comments and names to be more descriptive.

I'm mostly finished with the overall cleanup. I will post a new patch
for the udevd-nofork experiment, which will be much smaller now.
2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org ab51035617 [PATCH] skip waiting for device if we get a bad event for class creation 2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org 21d2888a0a [PATCH] add net/pan and net/bnep handling 2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org 1ad9a8c1b8 [PATCH] switch wait for bus_file to stat() instead of open() 2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org f071348004 [PATCH] expose sysfs functions for sharing it
This patch exposes the wait_for_sysfs functions to all possible users,
so we need to maintain only one list of exceptions. The last list is
hereby removed from udev.c.
2005-04-26 22:06:44 -07:00
greg@kroah.com 796ed8851b [PATCH] 040 release 2005-04-26 22:06:44 -07:00
greg@kroah.com 1ceba9360b [PATCH] sparse cleanups on the tree 2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org ff694eca17 [PATCH] fix debug in volume id / fix clashing global var name
Here we get the logging for udev_volume_id working if it is compiled
with DEBUG=true. Also fixed is a name clash with a global variable.
2005-04-26 22:06:44 -07:00
jk@blackdown.de 3b2382de51 [PATCH] wait_for_sysfs update for dm devices
Hi,

I got these when creating LVM2 snapshots:

,----
| Oct 17 04:23:09 server wait_for_sysfs[5120]: error: wait_for_sysfs needs an update to handle the device '/block/dm-6' properly, please report to <linux-hotplug-devel@lists.sourceforge.net>
| Oct 17 04:23:09 server wait_for_sysfs[5129]: error: wait_for_sysfs needs an update to handle the device '/block/dm-6' properly, please report to <linux-hotplug-devel@lists.sourceforge.net>
| Oct 17 04:23:09 server wait_for_sysfs[5131]: error: wait_for_sysfs needs an update to handle the device '/block/dm-7' properly, please report to <linux-hotplug-devel@lists.sourceforge.net>
| [...]
`----
2005-04-26 22:06:44 -07:00
greg@kroah.com 4a760b3334 [PATCH] fix stupid cut-and-paste error for msr devices on gentoo boxes. 2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org 1b1ba93365 [PATCH] volume_id fix
I've been told that open() should not pass O_NONBLOCK.
2005-04-26 22:06:43 -07:00
kay.sievers@vrfy.org 9cd1b46a13 [PATCH] $local user
We once implemented the devfsd feature to set the owner of a device node
to the "local" user. This was before we had the dev.d/ scripts. We discussed
a similar issue with D-BUS recently and this should be better handled depending
on the distributions way to do such a thing.

I'm for removing this here as this can be easily covered by a dev.d/
script.

Here is the patch if nobody objects :)
2005-04-26 22:02:46 -07:00
greg@kroah.com 1da6b0d0a7 [PATCH] delete udevruler.c as per Kay's request. 2005-04-26 22:02:46 -07:00
kay.sievers@vrfy.org 5d24c6ca36 [PATCH] cleanup netif handling and netif-dev.d/ events
Here we supress the dev.d/ execution if we didn't change a network
interface's name with a rule. This should solve the issue of two
running dhclients for the same interface, cause the
/etc/dev.d/net/hotplug.dev script that fakes the hotplug event runs
with every udevstart for every interface and fakes a second identical
hotplug event on bootup.

With this patch netif interfaces are no longer stored in the udevdb.
It is not needed, cause we don't have permissions or symlinks :) and
all information is available in sysfs.

This patch also moves the dev_d execution calls out of the
udev_add/udev_remove. As with the former api-cleanup-patch we have
all processed data in one udev struct and can place the execution
calls where needed.
2005-04-26 22:02:46 -07:00
kay.sievers@vrfy.org 7a947ce515 [PATCH] big cleanup of internal udev api
Here is the first patch to cleanup the internal processing of the
various stages of an udev event. It should not change any behavior,
but if your system depends on udev, please always test it before reboot :)

We pass only one generic structure around between add, remove,
namedev, db and dev_d handling and make all relevant data available
to all internal stages. All udev structures are renamed to "udev".

We replace the fake parameter by a flag in the udev structure.

We open the class device in the main binaries and not in udev_add, to
make it possible to use libsysfs for udevstart directory crawling.

The last sleep parameters are removed.
2005-04-26 22:02:46 -07:00
greg@kroah.com 8e0871196c [PATCH] fix up the wait_for_sysfs_test script a bit.
We also emit the same things the -mm tree does now, so to make that easier
to test for.
2005-04-26 22:02:45 -07:00
kay.sievers@vrfy.org 74d2a1d530 [PATCH] don't wait for dummy devices
No need to wait for dummy net devices.
2005-04-26 22:02:45 -07:00
kay.sievers@vrfy.org 7257cb1845 [PATCH] close the syslog
Seems that we never closed the opened syslog.
Here is a patch to do this in all our binaries.
2005-04-26 22:02:45 -07:00
kay.sievers@vrfy.org 0f634c33d7 [PATCH] Fix ppp net devices in wait_for_sysfs
On Sat, Oct 16, 2004 at 10:32:47AM -0500, Jason Dravet wrote:
> FYI
>
> wait_for_sysfs[2986]: either wait_for_sysfs (udev 038) needs an update to
> handle the device '/class/ppp/ppp' properly (5) or the sysfs-support of
> your device's driver needs to be fixed, please report to
> <linux-hotplug-devel@lists.sourceforge.net>
>
> I am running udev 38-2 and ppp-2.4.2-6.3

Yeah, the ppp-class is missing, we only covered the net ppp-devices.
2005-04-26 22:02:45 -07:00
kay.sievers@vrfy.org dcb9c852f5 [PATCH] Fix wait_for_sysfs messages (more debugging info)
On Sat, Oct 16, 2004 at 02:48:42PM -0400, Jeff wrote:
> Kay Sievers wrote:
> >On Sat, Oct 16, 2004 at 04:40:51AM +0200, Kay Sievers wrote:
> >
> >Here is a better version. We return successful in the case, that the
> >advertised device does not appear within the timeout or goes completely
> >away while waiting for the attributes. All magic numbers should be
> >readable as a string now.
> >
> >This hopefully fixes the last vc errors.
> >
> K, first patch produced a couple of device unavailables & a slew of no
> device symlinks. Second patch-no messages at all :)
>
> Thank god, if I have to reboot again I'm going to puke.

Nice to hear that we covered all the vc errors now. I think we should
apply the same logic to the /devices device wait loops, as they may go
with a remove event too.

Here is the 3rd version of the patch :)
2005-04-26 22:02:45 -07:00
greg@kroah.com 4a33024799 [PATCH] 039 release 2005-04-26 22:02:45 -07:00
patmans@us.ibm.com b337e60790 [PATCH] update udev to scsi_id 0.7
Update udev's scsi_id to version 0.7, this fixes a bad bug in scsi_id on
64 bit systems.
2005-04-26 22:02:45 -07:00
greg@kroah.com a8f2703ada [PATCH] Hopefully fix the vcs issue in wait_for_sysfs 2005-04-26 22:02:45 -07:00