chiark / gitweb /
greg@kroah.com [Tue, 19 Oct 2004 04:42:23 +0000 (21:42 -0700)]
[PATCH] fix stupid cut-and-paste error for msr devices on gentoo boxes.
kay.sievers@vrfy.org [Tue, 19 Oct 2004 03:51:16 +0000 (20:51 -0700)]
[PATCH] volume_id fix
I've been told that open() should not pass O_NONBLOCK.
kay.sievers@vrfy.org [Tue, 19 Oct 2004 03:51:13 +0000 (20:51 -0700)]
[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 :)
greg@kroah.com [Tue, 19 Oct 2004 02:40:21 +0000 (19:40 -0700)]
[PATCH] delete udevruler.c as per Kay's request.
kay.sievers@vrfy.org [Tue, 19 Oct 2004 02:28:39 +0000 (19:28 -0700)]
[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.
kay.sievers@vrfy.org [Tue, 19 Oct 2004 02:11:51 +0000 (19:11 -0700)]
[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.
greg@kroah.com [Tue, 19 Oct 2004 02:04:20 +0000 (19:04 -0700)]
[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.
kay.sievers@vrfy.org [Tue, 19 Oct 2004 01:16:12 +0000 (18:16 -0700)]
[PATCH] don't wait for dummy devices
No need to wait for dummy net devices.
kay.sievers@vrfy.org [Tue, 19 Oct 2004 01:15:10 +0000 (18:15 -0700)]
[PATCH] close the syslog
Seems that we never closed the opened syslog.
Here is a patch to do this in all our binaries.
kay.sievers@vrfy.org [Tue, 19 Oct 2004 01:13:40 +0000 (18:13 -0700)]
[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.
kay.sievers@vrfy.org [Tue, 19 Oct 2004 01:13:13 +0000 (18:13 -0700)]
[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 :)
greg@kroah.com [Sat, 16 Oct 2004 06:08:08 +0000 (23:08 -0700)]
[PATCH] 039 release
patmans@us.ibm.com [Sat, 16 Oct 2004 06:04:44 +0000 (23:04 -0700)]
[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.
greg@kroah.com [Sat, 16 Oct 2004 05:54:12 +0000 (22:54 -0700)]
[PATCH] Hopefully fix the vcs issue in wait_for_sysfs
greg@kroah.com [Sat, 16 Oct 2004 05:38:46 +0000 (22:38 -0700)]
[PATCH] take out & from wait_for_sysfs_test that I previously missed.
kay.sievers@vrfy.org [Sat, 16 Oct 2004 02:45:56 +0000 (19:45 -0700)]
[PATCH] swich attribute open() to simple stat()
Here we switch to a simple stat() to recognize the file creation. This
will make it possible to wait for files, which are unreadable.
I've switched the timout back to 5 seconds cause the our /class/vc errors
seems like a bug in the vc layer not a sysfs delay.
greg@kroah.com [Sat, 16 Oct 2004 02:19:53 +0000 (19:19 -0700)]
[PATCH] add very nice cdsymlinks scripts.
These are from Darren Salt <linux@youmustbejoking.demon.co.uk>
greg@kroah.com [Sat, 16 Oct 2004 02:18:58 +0000 (19:18 -0700)]
[PATCH] add some helper scripts for dvb and input devices.
greg@kroah.com [Sat, 16 Oct 2004 02:18:25 +0000 (19:18 -0700)]
[PATCH] add debian config files.
taken from latest udev debian package.
greg@kroah.com [Sat, 16 Oct 2004 01:49:27 +0000 (18:49 -0700)]
[PATCH] let the extras/ programs build "pretty" also
patmans@us.ibm.com [Sat, 16 Oct 2004 01:42:53 +0000 (18:42 -0700)]
[PATCH] pass SYSFS setting down for extras builds
Modify SYSFS to specify the full path, and pass it down for the extras
builds.
Change the scsi_id Makefile so it will work with and without udev.
greg@kroah.com [Sat, 16 Oct 2004 01:42:42 +0000 (18:42 -0700)]
[PATCH] tweak the ccdv program to handle files in subdirectories being built.
patmans@us.ibm.com [Sat, 16 Oct 2004 01:18:54 +0000 (18:18 -0700)]
[PATCH] move assignments past local variables
I'm using an older C compiler, and it doesn't like assignments mixed with
declarations, but this is also a style cleanup.
greg@kroah.com [Sat, 16 Oct 2004 00:15:52 +0000 (17:15 -0700)]
[PATCH] crap, I messed up the 'sed' instances pretty badly, this fixes the config and man page mess.
kay.sievers@vrfy.org [Fri, 15 Oct 2004 03:36:12 +0000 (20:36 -0700)]
[PATCH] wait_for_sysfs update for /class/firmware and /class/net/irda devices
update for /class/firmware and /class/net/irda devices
kay.sievers@vrfy.org [Fri, 15 Oct 2004 03:36:10 +0000 (20:36 -0700)]
[PATCH] fix unusual sysfs behavior for pcmcia_socket
All files in /sys/class/pcmcia_socket/pcmcia_socket0/* are unreadable
without a card inserted:
read(3, 0x9167858, 4096) = -1 ENODEV (No such device)
So we need to skip that step for now.
kay.sievers@vrfy.org [Fri, 15 Oct 2004 03:36:07 +0000 (20:36 -0700)]
[PATCH] remove sleeps from udev as it is external now
Here we remove all the sysfs sleep loops from udev as wait_for_sysfs
will do this for us and any other hotplug user. We still keep a small
blacklist of subsystems we don't care about but any missing entry here
will no longer lead to a spinning udev waiting for files.
kay.sievers@vrfy.org [Fri, 15 Oct 2004 03:36:04 +0000 (20:36 -0700)]
[PATCH] delete udevruler?
Hey, we got consistent source filenames today. Let's go ahead :)
I once started this ambitiuos curses gui to edit udev rules files.
udevruler still lays dead around in the tree. I will not finish it
and it is not really useful at his state. If nobody wants to do
something for it, I'm for deleting it.
greg@kroah.com [Fri, 15 Oct 2004 02:42:52 +0000 (19:42 -0700)]
[PATCH] fix broken 'make -j5' functionality.
kay.sievers@vrfy.org [Thu, 14 Oct 2004 08:42:33 +0000 (01:42 -0700)]
[PATCH] Makefile fix
Remove the rest of the debian stuff too, to make install working again.
greg@kroah.com [Thu, 14 Oct 2004 07:49:55 +0000 (00:49 -0700)]
[PATCH] 038 release
andrew.patterson@hp.com [Thu, 14 Oct 2004 07:47:38 +0000 (00:47 -0700)]
[PATCH] Problem parsing %s in udev rules
> > > > That explains the spaces. What about stuff trailing %s, if %s does not
> > > > contain spaces. I.e, in the above example, model is ST336753LC and the
> > > > resulting device file is /dev/scsi_disks/some-proceding-stuff-
> > > > ST336753LC.
> > >
> > > I expect the model value has trailing spaces.
> > >
> > > You may look with:
> > > udevinfo -a -p /block/sdX
> >
> > Yes it does, and it seems for most SCSI devices, vendor and model will
> > have trailing spaces.
>
> It all depends on the vendor and model :)
>
> > I have included a patch to udev-036 to deal with
> > this issue. It trims off trailing whitespace for all sysfs attributes.
> > It might be better to trim off leading whitespace as well.
>
> We already trim it off when matching, but we also allow matching if you
> do put the spaces in there. This patch breaks that, right?
Correct, I have a new patch that trims after the comparison, so it
should work in both cases.
greg@kroah.com [Thu, 14 Oct 2004 07:38:08 +0000 (00:38 -0700)]
[PATCH] fix up error in building extras and libsysfs
greg@kroah.com [Thu, 14 Oct 2004 06:58:54 +0000 (23:58 -0700)]
[PATCH] 037 release
greg@kroah.com [Thu, 14 Oct 2004 06:26:05 +0000 (23:26 -0700)]
[PATCH] fix compilation warning in tdb log message.
greg@kroah.com [Thu, 14 Oct 2004 06:22:37 +0000 (23:22 -0700)]
[PATCH] Fix build error with klibc due to recent changes.
greg@kroah.com [Thu, 14 Oct 2004 06:16:02 +0000 (23:16 -0700)]
[PATCH] merge
greg@kroah.com [Thu, 14 Oct 2004 05:52:08 +0000 (22:52 -0700)]
[PATCH] add wait_for_sysfs test script to the tarball to help people debug their boxes.
greg@kroah.com [Thu, 14 Oct 2004 05:51:41 +0000 (22:51 -0700)]
[PATCH] add ipsec to wait_for_sysfs ignore list.
mbuesch@freenet.de [Thu, 14 Oct 2004 05:38:15 +0000 (22:38 -0700)]
[PATCH] fix asmlinkage
This patch fixes the reintroduced bug with the
sig_handler(), if we link against a -mregparm=3 compiled
klibc on i386.
It also fixes some compiler warnings about redefined
asmlinkage on some systems.
Also some (broken?) compilers on distros throw out warnings
if asmlinkage is before "static void". This fixes it, too.
mbuesch@freenet.de [Thu, 14 Oct 2004 05:37:59 +0000 (22:37 -0700)]
[PATCH] fix incompatible pointer type warning
This patch fixes two
warning: assignment from incompatible pointer type
asmlinkage is the reason for the warning. We can
simply cast to avoid it.
It also fixes this warning:
warning: implicit declaration of function `umask'
kay.sievers@vrfy.org [Thu, 14 Oct 2004 06:13:26 +0000 (23:13 -0700)]
[PATCH] prevent deadlocks on an corrupt udev database
Here is the patch, that should prevent all of the known deadlocks with
corrupt tdb databases we discovered.
Thanks to Frank Steiner <fsteiner-mail@bio.ifi.lmu.de>, who tested all this
endlessly with a NFS mounted /dev. The conclusion is, that udev will not work
on filesystems without proper record locking, but we should prevent the
endless loops anyway. This patch implements:
o recovery from a corrupted udev database. udev will continue
without database support now, instead of doing nothing. So the node should
be generated in any case, remove will obviously not work for custom names.
o added iteration limits to the tdb-code at the places we discovered endless
loops. In the case tdb tries to find more than 100.000 entries with the
same hash, we better give up :)
o prevent a {all_partitions} loop caused by corrupt db data
o log all tdb errors to syslog
o switch sleep() to usleep() cause we want to use alarm()
greg@kroah.com [Thu, 14 Oct 2004 05:33:09 +0000 (22:33 -0700)]
[PATCH] a few more Makefile tweaks for the quiet feature.
greg@kroah.com [Thu, 14 Oct 2004 05:28:06 +0000 (22:28 -0700)]
[PATCH] Make the build silent, thanks to a helper program from ncftp
greg@kroah.com [Thu, 14 Oct 2004 04:25:11 +0000 (21:25 -0700)]
[PATCH] rename files to have '_' instead of '-' in them.
We should be consistent in our madness...
greg@kroah.com [Thu, 14 Oct 2004 04:19:49 +0000 (21:19 -0700)]
[PATCH] change max time to wait in wait_for_sysfs to 10 seconds to hopefully handle some slow machines.
greg@kroah.com [Thu, 14 Oct 2004 04:09:28 +0000 (21:09 -0700)]
[PATCH] add support for class/raw/ to wait_for_sysfs
greg@kroah.com [Thu, 14 Oct 2004 04:08:57 +0000 (21:08 -0700)]
[PATCH] fix up Makefile for wait_for_sysfs udev_version.h dependancy
kay.sievers@vrfy.org [Thu, 14 Oct 2004 03:55:01 +0000 (20:55 -0700)]
[PATCH] wait_for_sysfs_update
Here is an update to wait_for_sysfs to print the udev version to syslog,
let hardware net interfaces wait again for the device link and
revert the video4linux to wait for the device. The error here was caused
by a out-of-tree media-driver, that needs the fix, not the our program.
I've added a small comment for that to the log as I expect more of this
to show up and the recent desktop integration work depends heavily on proper
sysfs support, so the drivers should be fixed.
greg@kroah.com [Thu, 14 Oct 2004 03:54:43 +0000 (20:54 -0700)]
[PATCH] remove the debian specific file, as they don't want to share with the rest of the world :(
md@Linux.IT [Thu, 14 Oct 2004 03:53:52 +0000 (20:53 -0700)]
[PATCH] small udev patch
You should also remove etc/dev.d/default/dbus.dev which does not exist
anymore.
BTW, please remove etc/init.d/udev.debian because it is broken.
greg@kroah.com [Wed, 13 Oct 2004 04:50:15 +0000 (21:50 -0700)]
[PATCH] 036 release
greg@kroah.com [Wed, 13 Oct 2004 04:48:49 +0000 (21:48 -0700)]
[PATCH] add the error number to the error message in wait_for_sysfs to help out in debugging problems.
greg@kroah.com [Tue, 12 Oct 2004 07:53:57 +0000 (00:53 -0700)]
[PATCH] 035 release
greg@kroah.com [Tue, 12 Oct 2004 07:47:27 +0000 (00:47 -0700)]
[PATCH] added ieee1394 support to wait_for_sysfs
greg@kroah.com [Tue, 12 Oct 2004 07:16:24 +0000 (00:16 -0700)]
[PATCH] update wait_for_sysfs with a bunch more devices thanks to user reports.
greg@kroah.com [Fri, 8 Oct 2004 07:36:33 +0000 (00:36 -0700)]
[PATCH] 034 release
greg@kroah.com [Fri, 8 Oct 2004 07:28:16 +0000 (00:28 -0700)]
[PATCH] add comment in wait_for_sysfs to explain the structure better.
greg@kroah.com [Fri, 8 Oct 2004 05:26:02 +0000 (22:26 -0700)]
[PATCH] Revert previous dev_d.c change, it's not what is causing HAL problems.
Cset exclude: greg@kroah.com|ChangeSet|
20041007204001|14326
greg@kroah.com [Fri, 8 Oct 2004 04:40:01 +0000 (21:40 -0700)]
[PATCH] hm, somethings odd with DEVPATH, see if this fixes it...
greg@kroah.com [Fri, 8 Oct 2004 04:39:40 +0000 (21:39 -0700)]
[PATCH] 33_bk mark for the makefile
greg@kroah.com [Fri, 8 Oct 2004 04:06:07 +0000 (21:06 -0700)]
[PATCH] wait_for_sysfs: clean up the logic for the list of devices that we do not expect device symlinks for
This makes it a lot easier to test for these devices, otherwise the list would have gotten very large
greg@kroah.com [Fri, 8 Oct 2004 03:56:08 +0000 (20:56 -0700)]
[PATCH] get rid of annoying extra lines in the syslog for some libsysfs debug messages.
greg@kroah.com [Fri, 8 Oct 2004 02:12:10 +0000 (19:12 -0700)]
[PATCH] added support for i2c devices in wait_for_sysfs.c
greg@kroah.com [Fri, 8 Oct 2004 01:43:31 +0000 (18:43 -0700)]
[PATCH] add support for i2c-adapter devices to wait_for_sysfs.c
kay.sievers@vrfy.org [Thu, 7 Oct 2004 08:34:31 +0000 (01:34 -0700)]
[PATCH] wait_for_sysfs bluetooth class update
Here is the file to wait for the bluetooth class, as it is not a "dev"
file. udev waits for 10 seconds here too.
greg@kroah.com [Thu, 7 Oct 2004 07:27:03 +0000 (00:27 -0700)]
[PATCH] 033 release
kay.sievers@vrfy.org [Thu, 7 Oct 2004 07:17:11 +0000 (00:17 -0700)]
[PATCH] fix problems with dev.d and udevstart
Here is the correction for the dev.d/ scripts too. We should pass
the right argv[0] here too. A script may depend on the right value, as
udev does with udev/udevstart.
Here is the old version:
[pid 4692] execve("/etc/dev.d/default/log.dev", ["./udev", "block"], [/* 41 vars */]) = 0
this the new one:
[pid 9832] execve("/etc/dev.d/default/log.dev", ["/etc/dev.d/default/log.dev", "block"], [/* 41 vars */]) = 0
greg@kroah.com [Thu, 7 Oct 2004 07:11:04 +0000 (00:11 -0700)]
[PATCH] add support for usb interfaces to wait_for_sysfs to keep it quiet.
kay.sievers@vrfy.org [Thu, 7 Oct 2004 06:45:30 +0000 (23:45 -0700)]
[PATCH] wait_for_sysfs debug cleanup
> Sorry, I left my debug code in.
Oops, just realized it now. You've applied a older version and not the
latest. Here is a new patch to catch up.
greg@kroah.com [Thu, 7 Oct 2004 06:40:35 +0000 (23:40 -0700)]
[PATCH] enable native tdb spinlocks on i386 platforms.
also clean out some stuff in the makefile that was never getting used.
kay.sievers@vrfy.org [Thu, 7 Oct 2004 06:20:39 +0000 (23:20 -0700)]
[PATCH] fix problems using scsi_id with udevstart
when udevstart was running we didn't set the environment and the
subsystem argument for the callouts the dev.d/ scripts.
Here is a fix, that sets that with every udevstart iteration, corrects
argv[0] to be the basename() only not the whole path and adds a test
for invoking callouts without arguments.
greg@kroah.com [Thu, 7 Oct 2004 01:32:41 +0000 (18:32 -0700)]
[PATCH] delete extras/multipath-tools as per the author's request
This is now a standalone package.
kay.sievers@vrfy.org [Wed, 6 Oct 2004 07:58:04 +0000 (00:58 -0700)]
[PATCH] update volume_id
Here is an update to the latest volume_id which fixes a few bugs with
FAT volumes.
harald@redhat.com [Wed, 6 Oct 2004 07:54:08 +0000 (00:54 -0700)]
[PATCH] PATCH udev close on exec
selinux wants a clean fd set, so better close all open fds
harald@redhat.com [Wed, 6 Oct 2004 07:48:10 +0000 (00:48 -0700)]
[PATCH] PATCH some cleanups and security fixes
posted by Steve Grubb on https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130351
harald@redhat.com [Wed, 6 Oct 2004 07:27:10 +0000 (00:27 -0700)]
[PATCH] PATCH some cleanups and security fixes
posted by Steve Grubb on https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130351
greg@kroah.com [Wed, 6 Oct 2004 07:23:37 +0000 (00:23 -0700)]
[PATCH] be paranoid in dev_d.c
greg@kroah.com [Wed, 6 Oct 2004 06:51:24 +0000 (23:51 -0700)]
[PATCH] add USE_SELINUX to README documentation so people have a chance to see what is going on.
greg@kroah.com [Wed, 6 Oct 2004 06:49:50 +0000 (23:49 -0700)]
[PATCH] update the selinux.h file to start to look sane
and I told them to follow the proper coding style... bleah...
harald@redhat.com [Wed, 6 Oct 2004 06:39:05 +0000 (23:39 -0700)]
[PATCH] PATCH selinux for udev
Daniel Walsh's working selinux patch
harald@redhat.com [Wed, 6 Oct 2004 05:20:12 +0000 (22:20 -0700)]
[PATCH] cleanup PATCH for extras/chassis_id/Makefile
for "make install"
kpfleming@backtobasicsmgmt.com [Wed, 6 Oct 2004 05:15:16 +0000 (22:15 -0700)]
[PATCH] respect prefix= setting in built udev.conf (updated)
Here is a revised version of the patch. Again, it modifies the Makefile
to respect the prefix= setting when putting paths to
/etc/udev/{rules.s,permissions.d} into the built /etc/udev/udev.conf
file. It also changes the Makefile to create this file at "make" time,
not "make install" time. This allows for udevdir to be specified at
"make" time (thus putting the correct path into udev.conf), but not
specified at "make install" time (thus allowing the installation to
proceed without trying to use the wrong directory).
Submitted By: Kevin P. Fleming <kpfleming@linuxfromscratch.org>
Date: 2004-09-16
Initial Package Version: 032
Origin: David Jensen
Description: correct udev's Makefile and template config file
to respect the "prefix=" setting supplied when it is built; also
build etc/udev/udev.conf at "make" time, not "make install" time
greg@kroah.com [Wed, 6 Oct 2004 05:13:30 +0000 (22:13 -0700)]
[PATCH] kdetv wants to see device nodes in /dev
greg@kroah.com [Wed, 6 Oct 2004 04:56:39 +0000 (21:56 -0700)]
[PATCH] update comments in scsi-devfs.sh
kay.sievers@vrfy.org [Wed, 6 Oct 2004 04:35:39 +0000 (21:35 -0700)]
[PATCH] finally solve the bad sysfs-timing for all of us
On Tue, Sep 21, 2004 at 07:17:34PM +0200, Kay Sievers wrote:
> During the integration of HAL into the linux hotplug system, we dicover
> every week a new signaling path that fails cause of the delayed
> population of the sysfs files, which are connected by symlinks and
> appear in something like a random order in userspace.
>
> It's pretty complicated to understand the connection between all these
> files for all the different subsystems with all the exceptions, so most
> of the users simply sleep a few seconds, but that is not acceptable for
> our integration work.
>
> Here I try to get all the special knowledge about that behavior together
> and place that in a simple binary. That program _must_ run first of all
> other hotplug processsing and every later script, udev or HAL all can get
> rid of the wild guesses about the right time sysfs is ready.
>
> It will not only wait for the "dev"-file events we handle with udev, also
> for every /device-device with the corresponding bus link.
>
> It is provided as a patch against the current udev tree and a "install" will
> place the new program in the hotplug.d directory:
>
> [kay@pim ~]$ tree /etc/hotplug.d/
> /etc/hotplug.d/
> `-- default
> |-- 00-wait_for_sysfs.hotplug -> /sbin/wait_for_sysfs
> |-- 10-udev.hotplug -> /sbin/udevsend
> |-- 20-hal.hotplug -> /usr/libexec/hal.hotplug
> |-- default.hotplug
> `-- log.hotplug
>
>
> For now, it logs the result of the waiting to syslog, to catch any
> device, that needs special treatment. All newly discovered delay problems,
> device black/whitelist updates should go into that program and we may remove
> that kind of specialisation from all the other hotplug programs.
>
> Any patches, reports, testing is more than welcome.
>
> Sample debug:
> Sep 21 18:44:07 localhost kernel: usb 3-2: new full speed USB device using address 12
> Sep 21 18:44:07 localhost kernel: hub 3-2:1.0: USB hub found
> Sep 21 18:44:07 localhost kernel: hub 3-2:1.0: 2 ports detected
> Sep 21 18:44:07 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/devices/pci0000:00/0000:00:1d.1/usb3/3-2'
> Sep 21 18:44:07 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0'
> Sep 21 18:44:08 localhost kernel: usb 3-2.1: new full speed USB device using address 13
> Sep 21 18:44:08 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/class/usb/lp0'
> Sep 21 18:44:08 localhost kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 13 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
> Sep 21 18:44:08 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2.1/3-2.1:1.0'
> Sep 21 18:44:08 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2.1'
> Sep 21 18:44:08 localhost udev: configured rule in '/etc/udev/rules.d/50-udev.rules' at line 29 applied, 'lp0' becomes 'usb/%k'
> Sep 21 18:44:08 localhost udev: creating device node '/udev/usb/lp0'
> Sep 21 18:44:09 localhost kernel: usb 3-2.2: new full speed USB device using address 14
> Sep 21 18:44:09 localhost kernel: pl2303 3-2.2:1.0: PL-2303 converter detected
> Sep 21 18:44:09 localhost kernel: usb 3-2.2: PL-2303 converter now attached to ttyUSB0
> Sep 21 18:44:09 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2.2'
> Sep 21 18:44:09 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2.2/3-2.2:1.0'
> Sep 21 18:44:09 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2.2/3-2.2:1.0/ttyUSB0'
> Sep 21 18:44:09 localhost 00-wait_for_sysfs.hotplug: result: waiting for sysfs successful '/class/tty/ttyUSB0'
> Sep 21 18:44:09 localhost udev: creating device node '/udev/ttyUSB0'
New version with more devices excluded from /device-link saerch and
a better maching for device names.
patmans@us.ibm.com [Wed, 6 Oct 2004 04:30:54 +0000 (21:30 -0700)]
[PATCH] update udev to include scsi_id 0.6
Here's a patch updating udev's copy of scsi_id to version 0.6.
greg@kroah.com [Wed, 6 Oct 2004 02:01:12 +0000 (19:01 -0700)]
[PATCH] fix up Makefiles to get the klibc build working properly.
Based on a patch from Kay Sievers <kay.sievers@vrfy.org>
greg@kroah.com [Wed, 6 Oct 2004 01:51:53 +0000 (18:51 -0700)]
[PATCH] oops forgot to add the new klibc/include directory
greg@kroah.com [Wed, 6 Oct 2004 01:32:12 +0000 (18:32 -0700)]
[PATCH] update klibc to version 0.181
kay.sievers@vrfy.org [Sun, 19 Sep 2004 06:22:27 +0000 (23:22 -0700)]
[PATCH] volume-id build fix and update
Let's try it another way:
We define BLKGETSIZE64 in udev-volume_id.c now, cause including <fs.h>
does also not work with klibc. This hopefully fixes your compile problem
too.
Also included is an update to udev_volume_id with the latest fixes for
volume_id. It adds a simple logging file to map the debug function, that
we can use exactly the same files in HAL and udev.
kay.sievers@vrfy.org [Thu, 16 Sep 2004 05:36:31 +0000 (22:36 -0700)]
[PATCH] switch udev's seqnum to u64
The kernel will use a u64 for the sequence number, so we want the same.
kay.sievers@vrfy.org [Wed, 15 Sep 2004 04:44:55 +0000 (21:44 -0700)]
[PATCH] add enum tests
On Fri, Sep 10, 2004 at 01:09:07PM -0700, Greg KH wrote:
> On Tue, Sep 07, 2004 at 01:19:34PM +0200, David Zeuthen wrote:
> >
> > KERNEL="sr*", NAME="%k", SYMLINK="cdrom%e"
> > KERNEL="scd*", NAME="%k", SYMLINK="cdrom%e"
> > KERNEL="pcd*", NAME="%k", SYMLINK="cdrom%e"
> > KERNEL="hd[a-z]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="\%k", SYMLINK="cdrom%e"
> > KERNEL="fd[0-9]", NAME="%k", SYMLINK="floppy%e"
> > KERNEL="hd[a-z]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy", NAME=\"%k", SYMLINK="floppy%e"
> >
> > New patch is attached.
>
> Nice, I've applied this.
>
> How about sending a patch for the test/udev-test.pl script that adds a
> test for this new paramater, so we make sure to not break it in the
> future.
Here are the tests for the enumeration character %e. I've added a option
string to be able to do a whole sequence of tests without node removal,
so we can skip the "remove" event and get an increasing number to append
to the name. After the sequence test the whole directory is cleaned for
the next tests.
kay.sievers@vrfy.org [Wed, 15 Sep 2004 00:45:48 +0000 (17:45 -0700)]
[PATCH] fix udev segfaults with bad permissions file
On Tue, Sep 14, 2004 at 02:53:12PM +0200, Loleslaw wrote:
> Hi,
> Since I started using udev-031 on my gentoo udevstart would just segfault
> (udev-030 worked). As it turned out I had a file in /etc/udev/permissions.d
> with a single space in one line. I've cleaned the file and it works all
> right, but I thought you could be interested.
> I've traced it to function namedev_init_permissions in namedev_parse.c
> I don't know C well enough to suggest a patch.
Yeah, thanks for pointing that out. It only happens if the file ends with
whitespace-only lines. Here is a fix and a test for udev-test.pl to
cover that case.
greg@kroah.com [Tue, 14 Sep 2004 13:55:08 +0000 (06:55 -0700)]
[PATCH] 032 release
harald@redhat.com [Tue, 14 Sep 2004 13:50:38 +0000 (06:50 -0700)]
[PATCH] udev parse bug
There is a bug parsing PROGRAMs after apostrophes. Try PROGRAM="/bin/echo 'test test".
kay.sievers@vrfy.org [Tue, 14 Sep 2004 13:50:33 +0000 (06:50 -0700)]
[PATCH] handle only block and class devices
Fix a stupid logic bug, I introduced with the udev.c simplification. We
want to look at class and block devices only.
kay.sievers@vrfy.org [Tue, 14 Sep 2004 13:50:28 +0000 (06:50 -0700)]
[PATCH] fix udevstart badly broken in udev 031
On Mon, 2004-09-13 at 01:56 +0200, Marco d'Itri wrote:
> Starting from udev 031, the %-arguments passed to PROGRAMs are not
> correct when the new udevstart code is being used.
>
> KERNEL="event[0-9]*", NAME="input/%k", PROGRAM="/etc/udev/inputdev.sh %k %n %M %m", RESULT="inputdev", MODE="0664", GROUP="video"
>
> generates this log (just echo $*):
>
> event0 0 13 64
> event0 0 13 64
> event0 0 13 64
>
> while the correct log (generated using the old shell script instead of
> udevstart) would be:
>
> event0 0 13 64
> event1 1 13 65
> event2 2 13 66
Yes, I can simulate this, please try the attached patch. I expect, that
it fixes it, cause we better not mangle the parsed config while matching
the rules.
greg@kroah.com [Sat, 11 Sep 2004 05:09:58 +0000 (22:09 -0700)]
[PATCH] 031 release
greg@kroah.com [Sat, 11 Sep 2004 04:58:59 +0000 (21:58 -0700)]
[PATCH] add symlink for video rule.