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
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
kay.sievers@vrfy.org
cdd95f9a2d [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.
2005-04-26 21:47:44 -07:00
greg@kroah.com
91d55528e1 [PATCH] remove the debian specific file, as they don't want to share with the rest of the world :( 2005-04-26 21:47:44 -07:00
md@Linux.IT
d30ef6b192 [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.
2005-04-26 21:47:44 -07:00
greg@kroah.com
b808414477 [PATCH] 036 release 2005-04-26 21:37:04 -07:00
greg@kroah.com
788b94201b [PATCH] add the error number to the error message in wait_for_sysfs to help out in debugging problems. 2005-04-26 21:37:04 -07:00
greg@kroah.com
858e0e81d0 [PATCH] 035 release 2005-04-26 21:37:04 -07:00
greg@kroah.com
8372907752 [PATCH] added ieee1394 support to wait_for_sysfs 2005-04-26 21:37:04 -07:00
greg@kroah.com
10eb67ec70 [PATCH] update wait_for_sysfs with a bunch more devices thanks to user reports. 2005-04-26 21:37:04 -07:00
greg@kroah.com
d1f382f026 [PATCH] 034 release 2005-04-26 21:37:04 -07:00
greg@kroah.com
2cb3973610 [PATCH] add comment in wait_for_sysfs to explain the structure better. 2005-04-26 21:37:04 -07:00
greg@kroah.com
da767d0739 [PATCH] Revert previous dev_d.c change, it's not what is causing HAL problems.
Cset exclude: greg@kroah.com|ChangeSet|20041007204001|14326
2005-04-26 21:37:04 -07:00
greg@kroah.com
f35fb62819 [PATCH] hm, somethings odd with DEVPATH, see if this fixes it... 2005-04-26 21:37:04 -07:00
greg@kroah.com
bab16df879 [PATCH] 33_bk mark for the makefile 2005-04-26 21:37:04 -07:00
greg@kroah.com
b9b659ae60 [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
2005-04-26 21:37:04 -07:00
greg@kroah.com
b19e47764c [PATCH] get rid of annoying extra lines in the syslog for some libsysfs debug messages. 2005-04-26 21:37:03 -07:00
greg@kroah.com
606397db85 [PATCH] added support for i2c devices in wait_for_sysfs.c 2005-04-26 21:37:03 -07:00
greg@kroah.com
1a13fcb3dd [PATCH] add support for i2c-adapter devices to wait_for_sysfs.c 2005-04-26 21:37:03 -07:00
kay.sievers@vrfy.org
90852564d0 [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.
2005-04-26 21:37:03 -07:00
greg@kroah.com
5cb8eb82e0 [PATCH] 033 release 2005-04-26 21:37:03 -07:00
kay.sievers@vrfy.org
1059b07a14 [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
2005-04-26 21:37:03 -07:00
greg@kroah.com
e284ecba76 [PATCH] add support for usb interfaces to wait_for_sysfs to keep it quiet. 2005-04-26 21:37:03 -07:00
kay.sievers@vrfy.org
e629ca3f49 [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.
2005-04-26 21:37:03 -07:00
greg@kroah.com
12901d995f [PATCH] enable native tdb spinlocks on i386 platforms.
also clean out some stuff in the makefile that was never getting used.
2005-04-26 21:37:03 -07:00
kay.sievers@vrfy.org
f608f8ac16 [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.
2005-04-26 21:37:03 -07:00
greg@kroah.com
71144b744a [PATCH] delete extras/multipath-tools as per the author's request
This is now a standalone package.
2005-04-26 21:37:03 -07:00
kay.sievers@vrfy.org
33eae955e2 [PATCH] update volume_id
Here is an update to the latest volume_id which fixes a few bugs with
FAT volumes.
2005-04-26 21:37:03 -07:00