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

18813 Commits

Author SHA1 Message Date
greg@kroah.com
56dbd7dfb0 [PATCH] add udev conf.d file. 2005-04-26 21:35:16 -07:00
greg@kroah.com
87afc6dea0 [PATCH] Switch the default config to point to a directory for the rules and permission files. 2005-04-26 21:35:16 -07:00
greg@kroah.com
6763c8a5a1 [PATCH] update the Red Hat .dev files to work on other distros 2005-04-26 21:35:15 -07:00
greg@kroah.com
b4eafd9467 [PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default/ usage
Thanks to Red Hat for them.
2005-04-26 21:35:15 -07:00
greg@kroah.com
0e3dcb3dc6 [PATCH] add hints for red hat users from Leann Ogasawara <ogasawara@osdl.org> 2005-04-26 21:35:15 -07:00
greg@kroah.com
d9154d1176 [PATCH] add scripts to run gcov for udev from Leann Ogasawara <ogasawara@osdl.org> 2005-04-26 21:35:15 -07:00
kay.sievers@vrfy.org
b2983b9d4a [PATCH] udev_selinux changes
Here is the fix for extras/seliux/*
 o install the binary in /sbin/
 o add symlink to /etc/dev.d/ with suffix .dev
 o removed the undefined udev_log variable
 o fixed compiler warnings
2005-04-26 21:35:15 -07:00
dan@reactivated.net
f2bd44417b [PATCH] Update writing udev rules docs
Here's an update for the writing udev rules document.
- Minor corrections/clarifications
- Added info about using NAME{all_partitions}
- Added more info about udevinfo, simplifying the rule-writing process

You can ignore the diff I sent you yesterday - according to the 20040415 bk
snapshot on codemonkey.org, you haven't applied it yet. This patch
incorporates that update, and some other changes I just made.
2005-04-26 21:35:15 -07:00
kay.sievers@vrfy.org
7d855c3116 [PATCH] udevd test script
Thanks to Yin, Hu <hu.yin@intel.com>, who made a nice perl script to test the
expected behavior of the udevd sequence number handling. The test sends
different SEQNUM sequences to udevd, while analyzing the reordering and timeout
handling of udevd.
2005-04-26 21:35:15 -07:00
md@Linux.IT
af5b5178fa [PATCH] devfs.sh-ide-floppy 2005-04-26 21:35:15 -07:00
greg@kroah.com
1352a36fbe [PATCH] Fix build process for users who have LC_ALL set to a non-english language.
Many thanks to jack_mort <mort_jack@yahoo.fr> for helping track this down.
2005-04-26 21:35:15 -07:00
greg@kroah.com
b86691919a [PATCH] Added expanded tests to the test framework from Leann Ogasawara <ogasawara@osdl.org> 2005-04-26 21:35:15 -07:00
greg@kroah.com
b1ea9f3ef5 [PATCH] added execelent "writing udev rules" document from Daniel Drake <dan@reactivated.net> 2005-04-26 21:35:15 -07:00
kay.sievers@vrfy.org
eab52c2443 [PATCH] udev_dbus changes
On Sun, Apr 11, 2004 at 03:51:07AM +0200, Kay Sievers wrote:
> Here we change extras/dbus/* to
>   o install the binary in /etc/dev.d
>   o append .dev to the binary
>   o add David's copyright
>   o add the listener script to watch the sent dbus messages
>   o removed the undefined udev_log variable
>   o switch printf() to dbg()

Here we install the binary in /usr/sbin/ and symlink it to
/etc/dev.d/ with the .dev suffix.
2005-04-26 21:35:15 -07:00
greg@kroah.com
e3f83d532e [PATCH] added rule to put USB printers in their proper places.
Thanks to Dan Weber <dan@mirrorlynx.com> for the info.
2005-04-26 21:35:15 -07:00
greg@kroah.com
a04913b568 [PATCH] added rules for CAPI devices.
Thanks to Marcel Holtmann <marcel@holtmann.org> for the information.
2005-04-26 21:35:15 -07:00
greg@kroah.com
0e404ee1ef [PATCH] added a dev.d alsa script to help people out.
Originally by Marco d'Itri <md@Linux.IT>
2005-04-26 21:35:15 -07:00
kay.sievers@vrfy.org
a41de03083 [PATCH] fix devpath for netdev
Fix the devpath string for unhandled netdev's.
2005-04-26 21:35:15 -07:00
sjoerd@spring.luon.net
4b06c852cb [PATCH] DEVNODE -> DEVNAME transition fixes
It seems that the transition from DEVNODE to DEVNAME wasn't done
  everywhere. This broke udev_dbus for me.

  Attached patch does the transition in the places it wasn't done yet.
2005-04-26 21:35:15 -07:00
greg@kroah.com
1321258af5 [PATCH] v024 release 2005-04-26 21:35:15 -07:00
kay.sievers@vrfy.org
49747bdc37 [PATCH] tweak node unlink handling
Based on a patch from Olaf Hering we remove the node now only if the
requested dev_t is different from the already existing node, so any
run of udevstart should preserve the inode number of the node file.

syslog while the right node is already there:
  creating device node '/udev/hda'
  make_node: preserve file '/udev/hda', cause it has correct dev_t
  make_node: chmod(/udev/hda, 060600)

syslog for wrong file already there:
  creating device node '/udev/hda'
  make_node: already present file '/udev/hda' unlinked
  make_node: chmod(/udev/hda, 060600)

syslog for directory with same name already there:
  creating device node '/udev/hda'
  make_node: unlink(/udev/hda) failed with error '21'
2005-04-26 21:35:14 -07:00
kay.sievers@vrfy.org
b6bf0b1236 [PATCH] switch udevd's msg_dump() to #define
Here we switch the msg_dump() to #define instead of commenting it out.
2005-04-26 21:35:14 -07:00
kay.sievers@vrfy.org
dd785ba628 [PATCH] handle netdev in udevruler
Here we get the netdev handling for udevruler, after all information
is available now in the udev database. It also fixes the way libsysfs is
used.
2005-04-26 21:35:14 -07:00
greg@kroah.com
9a689d5863 [PATCH] remove compiler warning from udevd.c 2005-04-26 21:35:14 -07:00
kay.sievers@vrfy.org
a532775583 [PATCH] man page cleanup
Small cleanup of the wording in the udev. man page.
2005-04-26 21:35:14 -07:00
kay.sievers@vrfy.org
1e799babb6 [PATCH] put config info in db for netdev
Small change, to put the config informations for handled network
interfaces into the database.
2005-04-26 21:35:14 -07:00
kay.sievers@vrfy.org
4ef51da90c [PATCH] increase udevd event timeout
I have a very slow Bluetooth adapter hotplug event call, so we need
to increase the event timeout to something larger than 6 seconds.

  Apr  1 02:54:08 pim udevsend[12119]: main: DEVPATH = '/class/tty/ttyUB0'
  Apr  1 02:54:08 pim udevsend[12119]: main: SEQNUM = '340'

  Apr  1 02:54:08 pim udevsend[12120]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1'
  Apr  1 02:54:08 pim udevsend[12120]: main: SEQNUM = '344'

  Apr  1 02:54:09 pim udevsend[12133]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.1'
  Apr  1 02:54:09 pim udevsend[12133]: main: SEQNUM = '342'

  Apr  1 02:54:10 pim udevsend[12136]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.2'
  Apr  1 02:54:10 pim udevsend[12136]: main: SEQNUM = '343'

  Apr  1 02:54:13 pim udevsend[12141]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0'
  Apr  1 02:54:13 pim udevsend[12141]: main: SEQNUM = '341'
2005-04-26 21:35:14 -07:00
kay.sievers@vrfy.org
5df33ccd8e [PATCH] udevstart fix
Sorry, udevstart needs a small cleanup after my recent copy/pastes.
2005-04-26 21:35:14 -07:00
greg@kroah.com
08b5da6a03 [PATCH] only generate udev.8 on the fly, not all other man pages. 2005-04-26 21:35:14 -07:00
greg@kroah.com
c19b069189 [PATCH] update bk ignore list some more. 2005-04-26 21:35:14 -07:00
greg@kroah.com
487c1b35ba [PATCH] switch to generate the man pages during the normal build, not during the install. 2005-04-26 21:35:14 -07:00
greg@kroah.com
326e0876e4 [PATCH] convert udev.8.in to use @udevdir@ macro for make install. 2005-04-26 21:35:14 -07:00
greg@kroah.com
438ac360e8 [PATCH] first step of making man pages dynamically generated.
Based on a an original patch from Olaf Hering <olh@suse.de>
2005-04-26 21:35:14 -07:00
greg@kroah.com
42e4b6819f [PATCH] add install and uninstall the etc/dev.d/net/hotplug.dev file to the Makefile 2005-04-26 21:35:14 -07:00
greg@kroah.com
c40f61e6e8 [PATCH] tweak net_test a bit. 2005-04-26 21:35:14 -07:00
kay.sievers@vrfy.org
fc238cffaf [PATCH] put netdev handling and dev.d/ in manpages
Mention the recently added netdev handling and the dev.d/ directories
in the man pages.
2005-04-26 21:35:14 -07:00
greg@kroah.com
c4603a0726 [PATCH] fix some segfaults when running udevtest for network devices. 2005-04-26 21:35:14 -07:00
greg@kroah.com
cfdfda1078 [PATCH] make a net_test test script using udevtest. 2005-04-26 21:35:14 -07:00
greg@kroah.com
ce4256bdc5 [PATCH] handle the subsytem if provided in udevtest.
this is needed to test the /etc/dev.d/ stuff properly.
2005-04-26 21:35:14 -07:00
greg@kroah.com
d5853b48fb [PATCH] add hotplug.dev script to handle renamed network devices. 2005-04-26 21:35:13 -07:00
greg@kroah.com
a008521bb8 [PATCH] add a bunch of network class devices to the test sysfs tree 2005-04-26 21:35:13 -07:00
greg@kroah.com
5cd749f342 [PATCH] update RFC-dev.d docs due to DEVNODE to DEVNAME change 2005-04-26 21:35:13 -07:00
kay.sievers@vrfy.org
9b28a52a0a [PATCH] DEVPATH for netdev
Here we change the DEVPATH for netdev's in the environment of the dev.d/
scripts to the name the device is renamed to. The original name doesn't
exist in the kernel after rename.
2005-04-26 21:35:13 -07:00
kay.sievers@vrfy.org
bbbe503ec1 [PATCH] netdev - udevdb+dev.d changes
Here is a patch to change the netdev handling in the database and for
the dev.d/ calls. I applies on top of the udevd.patch, cause klibc has
no sysinfo().

 o netdev's are also put into our database now. I want this for the
   udevruler gui to get a list of all handled devices.
   All devices in the db are stamped with the system uptime value at
   the creation time. 'udevinfo -d' prints it.

 o the DEVPATH value is the key for udevdb, but if we rename
   a netdev, the name is replaced in the kernel, so we add
   the changed name to the db to match with the remove event.

   NOTE: The dev.d/ scripts still get the original name from the
   hotplug call. Should we replace DEVPATH with the new name too?

 o We now only add a device to the db, if we have successfully created
   the main node or successfully renamed a netdev. This is the main part
   of the patch, cause I needed to clean the retval passing trough all
   the functions used for node creation.

 o DEVNODE sounds a bit ugly for netdev's so I exported DEVNAME too.
   Can we change the name?

 o I've added a UDEV_NO_DEVD to possibly skip the script execution
   and used it in udev-test.pl.
   udevstart is the same horror now, if you have scripts with logging
   statements in dev.d/ it takes minutes to finish, can we skip the
   scripts here too?

 o The get_device_type() function is changed to be more strict, cause
   'udevinfo -a -p /block/' gets a class device for it and tries to
   print the major/minor values.

 o bugfix, the RESULT value has now a working newline removal and a test
   for this case.
2005-04-26 21:35:13 -07:00
kay.sievers@vrfy.org
e5a2989efb [PATCH] udevd race conditions and performance, assorted cleanups - take 2
here is a patch on top of your nice improvements.
I fixed the whitespace and it hopefully fixes the stupid timestamp bug in
udevd. Some stupid OS sets the hwclock to localtime and linux changes it
to UTC while starting. If any events are pending they may be delayed by
the users time distance from UTC :) So we use the uptime seconds now.
2005-04-26 21:35:13 -07:00
chris_friesen@sympatico.ca
f27125f98f [PATCH] udevd race conditions and performance, assorted cleanups
This patch covers a number of areas:

1) sysfs.h is fixed up to use the common dbg() macro.  This fixes the
case where DEBUG is defined but USE_LOG isn't.

2) udevstart.c is modified to include the proper headers, rather than
getting them indirectly which can break depending on Makefile flags

3) udevd.c gets some major changes:
a) I added a pipe from the signal handler.  This fixes the race
conditions that I mentioned earlier.  Basically, the point of the pipe
is to force the select() call to return immediately if a signal handler
fired before we actually started the select() call.  This then lets us
run the appropriate code based on flags set in the signal handler proper.
b) I added a number of flags to coalesce calls to common routines.  This
should make things slightly more efficient.
c) since most calls will tend to come in with a sequence number larger
than what has been received, I switched msg_queue_insert() to scan the
msg_list backwards to improve performance.

 filename="udevd.diff"
2005-04-26 21:35:13 -07:00
kay.sievers@vrfy.org
7b9b183921 [PATCH] udevinfo patch
On Fri, Mar 26, 2004 at 06:36:32PM +0500, Ananth N Mavinakayanahalli wrote:
> On Fri, Mar 26, 2004 at 11:24:39AM +0100, Kay Sievers wrote:
> > On Fri, Mar 26, 2004 at 11:21:29AM +0500, Ananth N Mavinakayanahalli wrote:
> > > On Fri, Mar 26, 2004 at 04:47:35AM +0100, Kay Sievers wrote:
> > > > On Fri, Mar 26, 2004 at 01:26:46AM +0100, Carl-Daniel Hailfinger wrote:
> > > > > Greg KH wrote:
> > > > > > On Tue, Mar 23, 2004 at 01:51:01PM -0800, Daniel Stekloff wrote:
> > > >
> > > > No, it breaks the net device handling. I think we should change
> > > > libsysfs instead, not to return a class device for '/block', if
> > > > we want to fix it.
> > >
> > > /sys/block is considered a sysfs "class" and not a class_device. So,
> > > going by udevinfo's help, -p expects path to a class_device and _not_
> > > a class itself and hence option /sys/block with -p is not a valid query.
> > >
> > > Kay?
> >
> > Yes, it's invalid, but we shouldn't print major minor for a invalid
> > path. sysfs_open_class_device_path("/block") returns a device. If this is
> > the right behavior for libsysfs, I will change the get_device_type("/block")
> > not to return a 'b'-type.
>
> Libsysfs validates the path given to it for opening a class_device to be
> a valid directory; it does not however validate if the path is a valid
> class_device path. So, in the case of udevinfo, a 'b' type should not
> be returned if the path is just /sys/block or /sys/block/

This may prevent it.
2005-04-26 21:35:13 -07:00
atul.sabharwal@intel.com
c1f8ea9562 [PATCH] Add README for chassis_id 2005-04-26 21:35:13 -07:00
hare@suse.de
0536819cca [PATCH] fix SEGV in libsysfs/dlist.c
Hi all, Greg,

libsysfs/dlist.c: _dlist_mark_move()

is missing checks for empty lists and may (and indeed, does) crash when=20
called with empty dlists.
2005-04-26 21:35:13 -07:00
greg@kroah.com
0bcdc8498c [PATCH] clean up chassis_id coding style. 2005-04-26 21:35:13 -07:00