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

932 Commits

Author SHA1 Message Date
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
greg@kroah.com
052de0cec6 [PATCH] take out & from wait_for_sysfs_test that I previously missed. 2005-04-26 22:02:45 -07:00
kay.sievers@vrfy.org
1946fec4de [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.
2005-04-26 22:02:45 -07:00
greg@kroah.com
79db6912cf [PATCH] add very nice cdsymlinks scripts.
These are from Darren Salt <linux@youmustbejoking.demon.co.uk>
2005-04-26 22:02:45 -07:00
greg@kroah.com
29afcc5f11 [PATCH] add some helper scripts for dvb and input devices. 2005-04-26 22:02:45 -07:00
greg@kroah.com
13299c29e7 [PATCH] add debian config files.
taken from latest udev debian package.
2005-04-26 22:02:45 -07:00
greg@kroah.com
396bb4c3d3 [PATCH] let the extras/ programs build "pretty" also 2005-04-26 22:02:45 -07:00
patmans@us.ibm.com
125930b454 [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.
2005-04-26 22:02:45 -07:00
greg@kroah.com
f837727408 [PATCH] tweak the ccdv program to handle files in subdirectories being built. 2005-04-26 22:02:44 -07:00
patmans@us.ibm.com
92307b9e7b [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.
2005-04-26 22:02:44 -07:00
greg@kroah.com
31a6e02871 [PATCH] crap, I messed up the 'sed' instances pretty badly, this fixes the config and man page mess. 2005-04-26 22:02:44 -07:00
kay.sievers@vrfy.org
139087e844 [PATCH] wait_for_sysfs update for /class/firmware and /class/net/irda devices
update for /class/firmware and /class/net/irda devices
2005-04-26 22:02:44 -07:00
kay.sievers@vrfy.org
a75910b4c0 [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.
2005-04-26 22:02:44 -07:00
kay.sievers@vrfy.org
707680b1cf [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.
2005-04-26 22:02:44 -07:00
kay.sievers@vrfy.org
32935a50ea [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.
2005-04-26 22:02:44 -07:00
greg@kroah.com
053083431f [PATCH] fix broken 'make -j5' functionality. 2005-04-26 22:02:44 -07:00
kay.sievers@vrfy.org
218f11bcf1 [PATCH] Makefile fix
Remove the rest of the debian stuff too, to make install working again.
2005-04-26 22:02:44 -07:00
greg@kroah.com
817c223af3 [PATCH] 038 release 2005-04-26 22:02:44 -07:00
andrew.patterson@hp.com
1fa26490e0 [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.
2005-04-26 21:58:15 -07:00
greg@kroah.com
c008fe93f5 [PATCH] fix up error in building extras and libsysfs 2005-04-26 21:58:15 -07:00
greg@kroah.com
e457f010b1 [PATCH] 037 release 2005-04-26 21:58:15 -07:00
greg@kroah.com
b51a038ca5 [PATCH] fix compilation warning in tdb log message. 2005-04-26 21:58:15 -07:00
greg@kroah.com
8dc0e1382d [PATCH] Fix build error with klibc due to recent changes. 2005-04-26 21:58:15 -07:00
greg@kroah.com
f93987240e [PATCH] merge 2005-04-26 21:57:42 -07:00
greg@kroah.com
a6150f4a8a [PATCH] add wait_for_sysfs test script to the tarball to help people debug their boxes. 2005-04-26 21:56:02 -07:00
greg@kroah.com
d38c486a51 [PATCH] add ipsec to wait_for_sysfs ignore list. 2005-04-26 21:56:00 -07:00
mbuesch@freenet.de
e5a5b54ab6 [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.
2005-04-26 21:55:39 -07:00
mbuesch@freenet.de
dc117daa28 [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'
2005-04-26 21:53:22 -07:00
kay.sievers@vrfy.org
7e89a569cc [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()
2005-04-26 21:47:44 -07:00
greg@kroah.com
c36f0ac34f [PATCH] a few more Makefile tweaks for the quiet feature. 2005-04-26 21:47:44 -07:00
greg@kroah.com
c04a16479f [PATCH] Make the build silent, thanks to a helper program from ncftp 2005-04-26 21:47:44 -07:00
greg@kroah.com
c850706e84 [PATCH] rename files to have '_' instead of '-' in them.
We should be consistent in our madness...
2005-04-26 21:47:44 -07:00
greg@kroah.com
fa7aa5ecbb [PATCH] change max time to wait in wait_for_sysfs to 10 seconds to hopefully handle some slow machines. 2005-04-26 21:47:44 -07:00
greg@kroah.com
2b29bb4f75 [PATCH] add support for class/raw/ to wait_for_sysfs 2005-04-26 21:47:44 -07:00
greg@kroah.com
a5e425369c [PATCH] fix up Makefile for wait_for_sysfs udev_version.h dependancy 2005-04-26 21:47:44 -07:00