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

1134 Commits

Author SHA1 Message Date
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
harald@redhat.com
6e3e3c3416 [PATCH] PATCH udev close on exec
selinux wants a clean fd set, so better close all open fds
2005-04-26 21:37:03 -07:00
harald@redhat.com
c8fa2d8b41 [PATCH] PATCH some cleanups and security fixes
posted by Steve Grubb on https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130351
2005-04-26 21:37:03 -07:00
harald@redhat.com
a551c7b0ce [PATCH] PATCH some cleanups and security fixes
posted by Steve Grubb on https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130351
2005-04-26 21:37:03 -07:00
greg@kroah.com
470c0ef2a6 [PATCH] be paranoid in dev_d.c 2005-04-26 21:37:03 -07:00
greg@kroah.com
057f2bdbf6 [PATCH] add USE_SELINUX to README documentation so people have a chance to see what is going on. 2005-04-26 21:37:02 -07:00
greg@kroah.com
8f2f874ae8 [PATCH] update the selinux.h file to start to look sane
and I told them to follow the proper coding style...  bleah...
2005-04-26 21:37:02 -07:00
harald@redhat.com
9825617b07 [PATCH] PATCH selinux for udev
Daniel Walsh's working selinux patch
2005-04-26 21:37:02 -07:00
harald@redhat.com
ff213aecf6 [PATCH] cleanup PATCH for extras/chassis_id/Makefile
for "make install"
2005-04-26 21:37:02 -07:00
kpfleming@backtobasicsmgmt.com
b889880073 [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
2005-04-26 21:37:02 -07:00
greg@kroah.com
1764266da0 [PATCH] kdetv wants to see device nodes in /dev 2005-04-26 21:37:02 -07:00
greg@kroah.com
186f7b2362 [PATCH] update comments in scsi-devfs.sh 2005-04-26 21:37:02 -07:00
kay.sievers@vrfy.org
a8b5267a62 [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.
2005-04-26 21:37:02 -07:00
patmans@us.ibm.com
01f950e2eb [PATCH] update udev to include scsi_id 0.6
Here's a patch updating udev's copy of scsi_id to version 0.6.
2005-04-26 21:37:02 -07:00
greg@kroah.com
e7c4f85f8a [PATCH] fix up Makefiles to get the klibc build working properly.
Based on a patch from Kay Sievers <kay.sievers@vrfy.org>
2005-04-26 21:37:02 -07:00
greg@kroah.com
60d1e263f0 [PATCH] oops forgot to add the new klibc/include directory 2005-04-26 21:37:02 -07:00
greg@kroah.com
a062277768 [PATCH] update klibc to version 0.181 2005-04-26 21:37:01 -07:00
kay.sievers@vrfy.org
9e8a3a095d [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.
2005-04-26 21:37:01 -07:00
kay.sievers@vrfy.org
cdc60e8afb [PATCH] switch udev's seqnum to u64
The kernel will use a u64 for the sequence number, so we want the same.
2005-04-26 21:37:01 -07:00
kay.sievers@vrfy.org
0345b86235 [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.
2005-04-26 21:37:01 -07:00
kay.sievers@vrfy.org
3db7fa2702 [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.
2005-04-26 21:37:01 -07:00
greg@kroah.com
cb5203fb48 [PATCH] 032 release 2005-04-26 21:37:00 -07:00
harald@redhat.com
a75e2c14f9 [PATCH] udev parse bug
There is a bug parsing PROGRAMs after apostrophes. Try PROGRAM="/bin/echo 'test test".
2005-04-26 21:37:00 -07:00