chiark / gitweb /
elogind.git
18 years ago[PATCH] 028 release 028
greg@kroah.com [Sat, 26 Jun 2004 08:32:43 +0000 (01:32 -0700)]
[PATCH] 028 release

18 years ago[PATCH] clean up block whitelist search logic a bit.
greg@kroah.com [Sat, 26 Jun 2004 08:27:12 +0000 (01:27 -0700)]
[PATCH] clean up block whitelist search logic a bit.

18 years ago[PATCH] udevstart performance increase
ogasawara@osdl.org [Sat, 26 Jun 2004 08:18:31 +0000 (01:18 -0700)]
[PATCH] udevstart performance increase

I noticed a comment in namedev.c which stated

"Figure out where the device symlink is at.  For char devices this will
always be in the class_dev->path.  But for block devices, it's
different.  The main block device will have the device symlink in it's
path, but all partitions have the symlink in its parent directory.  But
we need to watch out for block devices that do not have parents, yet
look like a partition (fd0, loop0, etc.).  They all do not have a device
symlink yet.  We do a sit and spin on waiting for them right now, we
should possibly have a whitelist for these devices here..."

I went ahead and created a whitelist for the block devices that look
like partitions (mainly by using devices.txt) and tested for any
performance increase that we would see.  The whitelist only impacts
udevstart time depending on the state of UDEV_NO_SLEEP.  Since the list
was short, I just did a sequential search and ordered the list in such a
way that those block devices which have more /dev entires (ex. loop0,
loop1, loop2, etc) appear sooner in the list and will thus be found
quicker.  I've enclosed the patch and some of the performance results I
saw below.  Basically, as the number of block devices without device
symlinks increased, the use of the whitelist improved udevstart
performance compared to just sitting and spinning.  I just thought it
was interesting and thought I'd share.  If you feel the patch is
beneficial please consider for merging.  Also, if you'd be interested in
expanding the whitelist for other devices which are missing device
symlinks and seeing if there are added performance increases let me know
and I'll do what I can.  Thanks,

Leann

Note: ex. loop represents all the loop devices (i.e. loop0, loop1,
loop2, etc)

block devices present with whitelist time

18 years ago[PATCH] update udev_volume_id
kay.sievers@vrfy.org [Sat, 26 Jun 2004 08:18:21 +0000 (01:18 -0700)]
[PATCH] update udev_volume_id

volume_id is now able to read NTFS labels. Not very exciting, but we
keep up to date with the version in HAL. Also __packed__ was needed for
the structs, cause the gcc 3.4 compiled version was no longer working
properly.

18 years ago[PATCH] update udev scsi_id to scsi_id 0.5
patmans@us.ibm.com [Sat, 26 Jun 2004 08:18:17 +0000 (01:18 -0700)]
[PATCH] update udev scsi_id to scsi_id 0.5

This patch syncs the scsi_id in the udev tree to version 0.5.

18 years ago[PATCH] Writing udev rules doc update
dsd@gentoo.org [Sat, 26 Jun 2004 08:18:12 +0000 (01:18 -0700)]
[PATCH] Writing udev rules doc update

Here's an update to the documentation. It makes a few minor corrections and
adds info about multiple-symlinks.

It also seems that the patch I sent on April 27th (patching v0.53 to 0.54) was
not applied, so this patch includes that update too, which was also just some
small corrections plus added info on renaming network devices.

18 years ago[PATCH] Patch for chassis_id exras module
atul.sabharwal@intel.com [Sat, 26 Jun 2004 08:18:08 +0000 (01:18 -0700)]
[PATCH] Patch for chassis_id exras module

18 years ago[PATCH] reverse order of scanning of udevstart to look at class before block.
greg@kroah.com [Sat, 26 Jun 2004 08:08:47 +0000 (01:08 -0700)]
[PATCH] reverse order of scanning of udevstart to look at class before block.

this should fix the startup issue for lvm, hopefully...

18 years ago[PATCH] 027 release 027
greg@kroah.com [Tue, 15 Jun 2004 04:36:50 +0000 (21:36 -0700)]
[PATCH] 027 release

18 years ago[PATCH] change default perms of misc/rtc to be readable by anyone.
greg@kroah.com [Thu, 1 Jul 2004 07:29:06 +0000 (00:29 -0700)]
[PATCH] change default perms of misc/rtc to be readable by anyone.

18 years ago[PATCH] tweak the gentoo default permission rules as they are wrong for tty and misc...
greg@kroah.com [Tue, 15 Jun 2004 04:33:01 +0000 (21:33 -0700)]
[PATCH] tweak the gentoo default permission rules as they are wrong for tty and misc devices.

18 years ago[PATCH] fix handle leak in udev_lib.c
fork0@users.sf.net [Tue, 8 Jun 2004 23:47:16 +0000 (16:47 -0700)]
[PATCH] fix handle leak in udev_lib.c

There is a handle leak in failure path in file_map, and the result of
file_map (or the result of the caller of the file_map) is not always
checked.

18 years ago[PATCH] 026 release 026
greg@kroah.com [Tue, 8 Jun 2004 06:43:46 +0000 (23:43 -0700)]
[PATCH] 026 release

18 years ago[PATCH] fix udevd zombies
kay.sievers@vrfy.org [Mon, 7 Jun 2004 09:56:47 +0000 (02:56 -0700)]
[PATCH] fix udevd zombies

The recent version of klibc switched to -mregparm=3. This broke the
signal handlers parameter, cause it is called directly from the kernel
with the parameter on the stack not in a register.

18 years ago[PATCH] add test for ! in partition name
greg@kroah.com [Sat, 5 Jun 2004 05:01:53 +0000 (22:01 -0700)]
[PATCH] add test for ! in partition name

18 years ago[PATCH] catchup with recent klibc
kay.sievers@vrfy.org [Thu, 27 May 2004 02:40:27 +0000 (19:40 -0700)]
[PATCH] catchup with recent klibc

Our own implementation of the sysinfo system call is no longer
needed, cause it's merged it into klibc now.

18 years ago[PATCH] 025_bk mark
greg@kroah.com [Fri, 21 May 2004 06:53:50 +0000 (23:53 -0700)]
[PATCH] 025_bk mark

because kernel.org is down, no release just yet...

18 years ago[PATCH] Update to version 117 of klibc (from version 108)
greg@kroah.com [Fri, 21 May 2004 06:14:08 +0000 (23:14 -0700)]
[PATCH] Update to version 117 of klibc (from version 108)

18 years ago[PATCH] udev rpm fix
arnd@arndb.de [Fri, 21 May 2004 02:14:09 +0000 (19:14 -0700)]
[PATCH] udev rpm fix

Some file locations have changed since the spec file was last updated.
Also a failed build might leave behind a stale buildroot directory.
This patch should fix both problems.

18 years ago[PATCH] evaluate getenv() return value for udev_config.c
ogasawara@osdl.org [Sat, 15 May 2004 06:18:46 +0000 (23:18 -0700)]
[PATCH] evaluate getenv() return value for udev_config.c

Small patch to fix the evaluation logic for the return value of getenv()
in udev_config.c file.  Basically, the actual values for the environment
variables "UDEV_NO_SLEEP" and "UDEV_NO_DEVD" were not being checked.
For example UDEV_NO_SLEEP could have been set to false but the line:

if (getenv("UDEV_NO_SLEEP") != NULL)

in this case would always evaluate to true, since getenv() returns
char*, thus the "udev_sleep" variable would be set incorrectly.  The
patch makes sure to check the value returned by getenv() not just if
getenv() returned a value.  Hope this made sense.  Thanks,

18 years ago[PATCH] udevsend fallback
kay.sievers@vrfy.org [Sat, 15 May 2004 06:18:41 +0000 (23:18 -0700)]
[PATCH] udevsend fallback

On Tue, May 11, 2004 at 04:54:44PM -0700, Greg KH wrote:
> On Tue, May 11, 2004 at 01:16:41PM +0200, Kay Sievers wrote:
> > Hi,
> > the execution of udev depends on the proper fuction of udevd, the
> > serializing daemon. If we can't connect to udevd within a 20 second we
> > give up and the request to create a node is lost. Hope this never happens,
> > but a broken udevd may prevent udev from working.
> >
> > What do you think? Should we call the udev binary directly from udevsend
> > instead of discarding the event? This way we would create the node, regardless
> > of the state of udevd. It would be 20 seconds later and maybe not in the right
> > sequence order - but the node will propably be there.
> >
> > Does it sound sane? What do you think?
>
> That sounds like a good "failsafe" thing to do.

Here we go:

Add a fallback udev call to udevsend. If udevsend is unable to send the
event to udevd, we call the udev binary instead of doing nothing and exiting.

18 years ago[PATCH] add volume_id support to the udev.spec file
greg@kroah.com [Sat, 15 May 2004 06:08:04 +0000 (23:08 -0700)]
[PATCH] add volume_id support to the udev.spec file

18 years ago[PATCH] remove dbus and selinux stuff from the udev.spec file.
greg@kroah.com [Sat, 15 May 2004 06:05:05 +0000 (23:05 -0700)]
[PATCH] remove dbus and selinux stuff from the udev.spec file.

18 years ago[PATCH] delete udev_selinux as it doesn't work properly and is the wrong way to do...
greg@kroah.com [Sat, 15 May 2004 06:03:50 +0000 (23:03 -0700)]
[PATCH] delete udev_selinux as it doesn't work properly and is the wrong way to do it...

18 years ago[PATCH] Deleted the udev_dbus extra as it didn't really work properly and HAL has...
greg@kroah.com [Sat, 15 May 2004 06:03:15 +0000 (23:03 -0700)]
[PATCH] Deleted the udev_dbus extra as it didn't really work properly and HAL has a real solution now.

18 years ago[PATCH] udev_volume_id update
kay.sievers@vrfy.org [Wed, 12 May 2004 07:52:52 +0000 (00:52 -0700)]
[PATCH] udev_volume_id update

Here is a update to extras/volume_id/*

o The device is now specified by the DEVPATH in the environment,
  it's no longer needed to pass the major/minor to the callout.

o leading spaces and slashes are now removed from the returned string
  and spaces are replaced by underscore, to not to confuse udev.

o Arnd Bergmann <arnd@arndb.de> provided the code to recognize s390
  dasd disk labels. The -d switch tries to read the main block device
  instead of the partition.

18 years ago[PATCH] add udev.permissions.slackware file.
greg@kroah.com [Thu, 6 May 2004 05:32:05 +0000 (22:32 -0700)]
[PATCH] add udev.permissions.slackware file.

From Lucas de Souza Santos <lucasdss@yahoo.com.br>

18 years ago[PATCH] udev callout for reading filesystem labels
kay.sievers@vrfy.org [Thu, 6 May 2004 05:21:48 +0000 (22:21 -0700)]
[PATCH] udev callout for reading filesystem labels

On Fri, Apr 30, 2004 at 03:29:54PM -0700, Greg KH wrote:
> On Thu, Apr 29, 2004 at 11:04:46PM +0200, Kay Sievers wrote:
> > Hi,
> > here is a small udev toy, which enables udev to name partitions by
> > its filesystem label or uuid's.
> >
> > The following udev rule:
> >
> >   KERNEL="sd*", PROGRAM="/sbin/udev_volume_id -M%M -m%m -u", SYMLINK="%c"
> >
> > creates a symlink with the uuid read from the filesystem. If no label or
> > uuid is found the program exits with nonzero and the rule will fail.
> >
> > ext2, ext3, reiserfs, xfs, jfs, vfat, msdos volume labels are supported,
> > ntfs and swap partitions can be recognized.
> >
> > It's possible to compile with klibc and the static binary takes 13kb.
>
> Very nice, I was wondering who was going to use that library to make
> such a tool.  This is even better as we can use klibc for it.

Here is a update, which supports iso9660 and udf labels.
Not very useful in the udev case, but I've added it for hal,
so we just catch up with the latest version.

18 years ago[PATCH] udev callout for reading filesystem labels
kay.sievers@vrfy.org [Sat, 1 May 2004 06:26:33 +0000 (23:26 -0700)]
[PATCH] udev callout for reading filesystem labels

here is a small udev toy, which enables udev to name partitions by
its filesystem label or uuid's.

The following udev rule:

  KERNEL="sd*", PROGRAM="/sbin/udev_volume_id -M%M -m%m -u", SYMLINK="%c"

creates a symlink with the uuid read from the filesystem. If no label or
uuid is found the program exits with nonzero and the rule will fail.

ext2, ext3, reiserfs, xfs, jfs, vfat, msdos volume labels are supported,
ntfs and swap partitions can be recognized.

It's possible to compile with klibc and the static binary takes 13kb.

18 years ago[PATCH] udevstart: close open directories.
greg@kroah.com [Sat, 24 Apr 2004 04:55:57 +0000 (21:55 -0700)]
[PATCH] udevstart: close open directories.

Based on a munged patch from Olaf Hering <olh@suse.de>

18 years ago[PATCH] udev default config layout changes
kay.sievers@vrfy.org [Sat, 24 Apr 2004 04:50:27 +0000 (21:50 -0700)]
[PATCH] udev default config layout changes

Here we catch up, after the default config changes.

o the man page is updated to reflect the new default config

o /etc/udev/rules.d/ + permissions.d/ dirs are created now

o udev.rules is installed in /etc/udev/rules.d/50-udev.rules
  so the user can easily order the files by prepending a number.
  (RedHat has the same name in the last rpm.)

o defined directory names in the Makefile are all without slashes now,
  not the first half with and the remaining without.

o all binaries are uninstalled now

o leading slashes in config values are now removed or prepended while the
  config is parsed, so we are more robust if the usere changes something.

o replaced the macros from udev_config.c with real code, cause we can
  skip if the value matches and not useless iterate over the remaining
  fields.

o config parsing errors are logged with info() now, fixes the bug where
  we report a error with debug_parse(), even when there isn't one

18 years ago[PATCH] v025 release 025
greg@kroah.com [Thu, 22 Apr 2004 05:31:17 +0000 (22:31 -0700)]
[PATCH] v025 release

18 years ago[PATCH] make dev.d call each directory in the directory chain of the device name...
greg@kroah.com [Thu, 22 Apr 2004 03:24:51 +0000 (20:24 -0700)]
[PATCH] make dev.d call each directory in the directory chain of the device name, instead of just the whole name.

This lets /etc/dev.d/sound/ work better.

18 years ago[PATCH] add devd_test script.
greg@kroah.com [Thu, 22 Apr 2004 03:23:47 +0000 (20:23 -0700)]
[PATCH] add devd_test script.

18 years ago[PATCH] add more permissions based on SuSE's recommendations.
greg@kroah.com [Thu, 22 Apr 2004 00:53:52 +0000 (17:53 -0700)]
[PATCH] add more permissions based on SuSE's recommendations.

18 years ago[PATCH] gcov for udev
ogasawara@osdl.org [Thu, 22 Apr 2004 00:49:49 +0000 (17:49 -0700)]
[PATCH] gcov for udev

Sorry for the late email regarding the gcov code coverage information
for udev.  For those of you who have not yet noticed, udev can now be
compiled with gcov support and provide code coverage analysis.  All
pertinent scripts and information can be found in the udev tree.  Please
refer to "README-gcov_for_udev" for detailed information on compiling
gcov into udev and obtaining code coverage analysis.  I've enclosed a
patch that updates the README-gcov_for_udev.  Also, "udev-test.pl" in
udev/test/ was expanded to test symlinks, permissions, and some lack of
node creation a little more thoroughly.  All comments and feedback would
be greatly welcomed.  Also, any extra testing would be appreciated.
Thanks,

18 years ago[PATCH] fix test regressions
kay.sievers@vrfy.org [Thu, 22 Apr 2004 00:49:44 +0000 (17:49 -0700)]
[PATCH] fix test regressions

On Sat, Apr 17, 2004 at 03:30:29AM +0200, Kay Sievers wrote:
> On Sat, Apr 17, 2004 at 02:04:55AM +0200, Kay Sievers wrote:
> > On Fri, Apr 16, 2004 at 04:04:42PM -0700, Greg KH wrote:
> > > Oh, and if you run the latest udev_test.pl, we have a bunch more tests,
> > > including a few that fail, if you were looking for something to do :)
> >
> > Will do it. We need to change apply_format(). I tries to expand the '%%'
> > with the next iteration over the string and removes the '%'.

The tests are all successful now.
If this patch breaks something else, we simply have too few tests :)

18 years ago[PATCH] added rules for tun and raw devices
greg@kroah.com [Thu, 22 Apr 2004 00:43:17 +0000 (17:43 -0700)]
[PATCH] added rules for tun and raw devices

18 years ago[PATCH] add udev conf.d file.
greg@kroah.com [Sat, 17 Apr 2004 07:29:36 +0000 (00:29 -0700)]
[PATCH] add udev conf.d file.

18 years ago[PATCH] Switch the default config to point to a directory for the rules and permissio...
greg@kroah.com [Sat, 17 Apr 2004 07:25:46 +0000 (00:25 -0700)]
[PATCH] Switch the default config to point to a directory for the rules and permission files.

18 years ago[PATCH] update the Red Hat .dev files to work on other distros
greg@kroah.com [Sat, 17 Apr 2004 07:25:20 +0000 (00:25 -0700)]
[PATCH] update the Red Hat .dev files to work on other distros

18 years ago[PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default...
greg@kroah.com [Sat, 17 Apr 2004 07:23:17 +0000 (00:23 -0700)]
[PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default/ usage

Thanks to Red Hat for them.

18 years ago[PATCH] add hints for red hat users from Leann Ogasawara <ogasawara@osdl.org>
greg@kroah.com [Sat, 17 Apr 2004 07:09:32 +0000 (00:09 -0700)]
[PATCH] add hints for red hat users from Leann Ogasawara <ogasawara@osdl.org>

18 years ago[PATCH] add scripts to run gcov for udev from Leann Ogasawara <ogasawara@osdl.org>
greg@kroah.com [Sat, 17 Apr 2004 07:09:17 +0000 (00:09 -0700)]
[PATCH] add scripts to run gcov for udev from Leann Ogasawara <ogasawara@osdl.org>

18 years ago[PATCH] udev_selinux changes
kay.sievers@vrfy.org [Sat, 17 Apr 2004 06:58:27 +0000 (23:58 -0700)]
[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

18 years ago[PATCH] Update writing udev rules docs
dan@reactivated.net [Sat, 17 Apr 2004 06:58:08 +0000 (23:58 -0700)]
[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.

18 years ago[PATCH] udevd test script
kay.sievers@vrfy.org [Sat, 17 Apr 2004 06:58:05 +0000 (23:58 -0700)]
[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.

18 years ago[PATCH] devfs.sh-ide-floppy
md@Linux.IT [Sat, 17 Apr 2004 06:58:02 +0000 (23:58 -0700)]
[PATCH] devfs.sh-ide-floppy

18 years ago[PATCH] Fix build process for users who have LC_ALL set to a non-english language.
greg@kroah.com [Sat, 17 Apr 2004 02:34:01 +0000 (19:34 -0700)]
[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.

18 years ago[PATCH] Added expanded tests to the test framework from Leann Ogasawara <ogasawara...
greg@kroah.com [Fri, 16 Apr 2004 06:14:49 +0000 (23:14 -0700)]
[PATCH] Added expanded tests to the test framework from Leann Ogasawara <ogasawara@osdl.org>

18 years ago[PATCH] added execelent "writing udev rules" document from Daniel Drake <dan@reactiva...
greg@kroah.com [Tue, 13 Apr 2004 08:28:05 +0000 (01:28 -0700)]
[PATCH] added execelent "writing udev rules" document from Daniel Drake <dan@reactivated.net>

18 years ago[PATCH] udev_dbus changes
kay.sievers@vrfy.org [Tue, 13 Apr 2004 08:21:46 +0000 (01:21 -0700)]
[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.

18 years ago[PATCH] added rule to put USB printers in their proper places.
greg@kroah.com [Tue, 13 Apr 2004 08:19:41 +0000 (01:19 -0700)]
[PATCH] added rule to put USB printers in their proper places.

Thanks to Dan Weber <dan@mirrorlynx.com> for the info.

18 years ago[PATCH] added rules for CAPI devices.
greg@kroah.com [Tue, 13 Apr 2004 07:43:14 +0000 (00:43 -0700)]
[PATCH] added rules for CAPI devices.

Thanks to Marcel Holtmann <marcel@holtmann.org> for the information.

18 years ago[PATCH] added a dev.d alsa script to help people out.
greg@kroah.com [Fri, 9 Apr 2004 04:51:47 +0000 (21:51 -0700)]
[PATCH] added a dev.d alsa script to help people out.

Originally by Marco d'Itri <md@Linux.IT>

18 years ago[PATCH] fix devpath for netdev
kay.sievers@vrfy.org [Fri, 9 Apr 2004 01:49:27 +0000 (18:49 -0700)]
[PATCH] fix devpath for netdev

Fix the devpath string for unhandled netdev's.

18 years ago[PATCH] DEVNODE -> DEVNAME transition fixes
sjoerd@spring.luon.net [Fri, 9 Apr 2004 01:48:56 +0000 (18:48 -0700)]
[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.

18 years ago[PATCH] v024 release 024
greg@kroah.com [Sat, 3 Apr 2004 06:47:22 +0000 (22:47 -0800)]
[PATCH] v024 release

18 years ago[PATCH] tweak node unlink handling
kay.sievers@vrfy.org [Sat, 3 Apr 2004 06:16:38 +0000 (22:16 -0800)]
[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'

18 years ago[PATCH] switch udevd's msg_dump() to #define
kay.sievers@vrfy.org [Sat, 3 Apr 2004 04:10:37 +0000 (20:10 -0800)]
[PATCH] switch udevd's msg_dump() to #define

Here we switch the msg_dump() to #define instead of commenting it out.

18 years ago[PATCH] handle netdev in udevruler
kay.sievers@vrfy.org [Sat, 3 Apr 2004 04:10:35 +0000 (20:10 -0800)]
[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.

18 years ago[PATCH] remove compiler warning from udevd.c
greg@kroah.com [Sat, 3 Apr 2004 01:02:09 +0000 (17:02 -0800)]
[PATCH] remove compiler warning from udevd.c

18 years ago[PATCH] man page cleanup
kay.sievers@vrfy.org [Sat, 3 Apr 2004 00:59:04 +0000 (16:59 -0800)]
[PATCH] man page cleanup

Small cleanup of the wording in the udev. man page.

18 years ago[PATCH] put config info in db for netdev
kay.sievers@vrfy.org [Sat, 3 Apr 2004 00:59:01 +0000 (16:59 -0800)]
[PATCH] put config info in db for netdev

Small change, to put the config informations for handled network
interfaces into the database.

18 years ago[PATCH] increase udevd event timeout
kay.sievers@vrfy.org [Sat, 3 Apr 2004 00:58:59 +0000 (16:58 -0800)]
[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'

18 years ago[PATCH] udevstart fix
kay.sievers@vrfy.org [Sat, 3 Apr 2004 00:58:57 +0000 (16:58 -0800)]
[PATCH] udevstart fix

Sorry, udevstart needs a small cleanup after my recent copy/pastes.

18 years ago[PATCH] only generate udev.8 on the fly, not all other man pages.
greg@kroah.com [Fri, 2 Apr 2004 08:13:50 +0000 (00:13 -0800)]
[PATCH] only generate udev.8 on the fly, not all other man pages.

18 years ago[PATCH] update bk ignore list some more.
greg@kroah.com [Fri, 2 Apr 2004 08:13:20 +0000 (00:13 -0800)]
[PATCH] update bk ignore list some more.

18 years ago[PATCH] switch to generate the man pages during the normal build, not during the...
greg@kroah.com [Fri, 2 Apr 2004 08:01:58 +0000 (00:01 -0800)]
[PATCH] switch to generate the man pages during the normal build, not during the install.

18 years ago[PATCH] convert udev.8.in to use @udevdir@ macro for make install.
greg@kroah.com [Fri, 2 Apr 2004 07:55:45 +0000 (23:55 -0800)]
[PATCH] convert udev.8.in to use @udevdir@ macro for make install.

18 years ago[PATCH] first step of making man pages dynamically generated.
greg@kroah.com [Fri, 2 Apr 2004 07:47:23 +0000 (23:47 -0800)]
[PATCH] first step of making man pages dynamically generated.

Based on a an original patch from Olaf Hering <olh@suse.de>

18 years ago[PATCH] add install and uninstall the etc/dev.d/net/hotplug.dev file to the Makefile
greg@kroah.com [Fri, 2 Apr 2004 07:37:43 +0000 (23:37 -0800)]
[PATCH] add install and uninstall the etc/dev.d/net/hotplug.dev file to the Makefile

18 years ago[PATCH] tweak net_test a bit.
greg@kroah.com [Fri, 2 Apr 2004 07:36:58 +0000 (23:36 -0800)]
[PATCH] tweak net_test a bit.

18 years ago[PATCH] put netdev handling and dev.d/ in manpages
kay.sievers@vrfy.org [Fri, 2 Apr 2004 06:59:56 +0000 (22:59 -0800)]
[PATCH] put netdev handling and dev.d/ in manpages

Mention the recently added netdev handling and the dev.d/ directories
in the man pages.

18 years ago[PATCH] fix some segfaults when running udevtest for network devices.
greg@kroah.com [Fri, 2 Apr 2004 05:52:46 +0000 (21:52 -0800)]
[PATCH] fix some segfaults when running udevtest for network devices.

18 years ago[PATCH] make a net_test test script using udevtest.
greg@kroah.com [Fri, 2 Apr 2004 05:51:17 +0000 (21:51 -0800)]
[PATCH] make a net_test test script using udevtest.

18 years ago[PATCH] handle the subsytem if provided in udevtest.
greg@kroah.com [Fri, 2 Apr 2004 05:46:07 +0000 (21:46 -0800)]
[PATCH] handle the subsytem if provided in udevtest.

this is needed to test the /etc/dev.d/ stuff properly.

18 years ago[PATCH] add hotplug.dev script to handle renamed network devices.
greg@kroah.com [Fri, 2 Apr 2004 05:38:59 +0000 (21:38 -0800)]
[PATCH] add hotplug.dev script to handle renamed network devices.

18 years ago[PATCH] add a bunch of network class devices to the test sysfs tree
greg@kroah.com [Fri, 2 Apr 2004 03:25:41 +0000 (19:25 -0800)]
[PATCH] add a bunch of network class devices to the test sysfs tree

18 years ago[PATCH] update RFC-dev.d docs due to DEVNODE to DEVNAME change
greg@kroah.com [Thu, 1 Apr 2004 09:02:53 +0000 (01:02 -0800)]
[PATCH] update RFC-dev.d docs due to DEVNODE to DEVNAME change

18 years ago[PATCH] DEVPATH for netdev
kay.sievers@vrfy.org [Thu, 1 Apr 2004 08:59:58 +0000 (00:59 -0800)]
[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.

18 years ago[PATCH] netdev - udevdb+dev.d changes
kay.sievers@vrfy.org [Thu, 1 Apr 2004 07:12:57 +0000 (23:12 -0800)]
[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.

18 years ago[PATCH] udevd race conditions and performance, assorted cleanups - take 2
kay.sievers@vrfy.org [Thu, 1 Apr 2004 07:03:46 +0000 (23:03 -0800)]
[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.

18 years ago[PATCH] udevd race conditions and performance, assorted cleanups
chris_friesen@sympatico.ca [Thu, 1 Apr 2004 07:03:07 +0000 (23:03 -0800)]
[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"

18 years ago[PATCH] udevinfo patch
kay.sievers@vrfy.org [Thu, 1 Apr 2004 07:00:45 +0000 (23:00 -0800)]
[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.

18 years ago[PATCH] Add README for chassis_id
atul.sabharwal@intel.com [Thu, 1 Apr 2004 06:56:51 +0000 (22:56 -0800)]
[PATCH] Add README for chassis_id

18 years ago[PATCH] fix SEGV in libsysfs/dlist.c
hare@suse.de [Thu, 1 Apr 2004 06:56:45 +0000 (22:56 -0800)]
[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.

18 years ago[PATCH] clean up chassis_id coding style.
greg@kroah.com [Thu, 1 Apr 2004 02:27:02 +0000 (18:27 -0800)]
[PATCH] clean up chassis_id coding style.

18 years ago[PATCH] Add chassis_id program to extras directory
atul.sabharwal@intel.com [Thu, 1 Apr 2004 02:18:58 +0000 (18:18 -0800)]
[PATCH] Add chassis_id program to extras directory

18 years ago[PATCH] clean up the OSDL document formatting a bit
greg@kroah.com [Thu, 1 Apr 2004 02:17:38 +0000 (18:17 -0800)]
[PATCH] clean up the OSDL document formatting a bit

18 years ago[PATCH] add OSDL documentation for persistent naming
maryedie@osdl.org [Thu, 1 Apr 2004 02:11:27 +0000 (18:11 -0800)]
[PATCH] add OSDL documentation for persistent naming

18 years ago[PATCH] add netlink rules to devfs and gentoo rules files.
greg@kroah.com [Tue, 30 Mar 2004 03:52:56 +0000 (19:52 -0800)]
[PATCH] add netlink rules to devfs and gentoo rules files.

18 years ago[PATCH] added USB device rules to rules files.
greg@kroah.com [Tue, 30 Mar 2004 03:46:40 +0000 (19:46 -0800)]
[PATCH] added USB device rules to rules files.

18 years ago[PATCH] clean up the gentoo rules file a bit more, adding dri rules.
greg@kroah.com [Tue, 30 Mar 2004 02:38:53 +0000 (18:38 -0800)]
[PATCH] clean up the gentoo rules file a bit more, adding dri rules.

18 years ago[PATCH] fix up udev.rules to handle oss rules better.
greg@kroah.com [Tue, 30 Mar 2004 02:33:48 +0000 (18:33 -0800)]
[PATCH] fix up udev.rules to handle oss rules better.

Patch from Jordan <lx_xero@comcast.net>

18 years ago[PATCH] 023_bk mark
greg@kroah.com [Sat, 27 Mar 2004 09:23:21 +0000 (01:23 -0800)]
[PATCH] 023_bk mark

18 years ago[PATCH] dev_d.c file sorting and cleanup
kay.sievers@vrfy.org [Sat, 27 Mar 2004 09:21:46 +0000 (01:21 -0800)]
[PATCH] dev_d.c file sorting and cleanup

On Thu, Mar 25, 2004 at 02:52:13AM +0100, Kay Sievers wrote:
> Please have look if it still works for you, I only did a very quick
> test.

Here is a unified version, with all the functions moved to udev_lib.c.
We have a generic function now, to call a given fnct(char *) for every
file ending with a specific suffix, sorted in lexical order. We use it
to execute the dev.d/ files and read our rules.d/ files. The binary
should be a bit smaller now.

I've also changed it, to not do the dev.d/ exec for net devices.

18 years ago[PATCH] apply all_partitions rule to main block device only
kay.sievers@vrfy.org [Sat, 27 Mar 2004 09:21:43 +0000 (01:21 -0800)]
[PATCH] apply all_partitions rule to main block device only

Rules with NAME{all_partitions}= are now applied only to the parent of a
block device. We no longer need to exclude the partitions or sg* devices.

18 years ago[PATCH] small ide-devfs.sh fix
md@Linux.IT [Sat, 27 Mar 2004 09:21:41 +0000 (01:21 -0800)]
[PATCH] small ide-devfs.sh fix

The file may not exist and errors would be spewed on the console.

18 years ago[PATCH] fix udev.spec file for where udevtest should be placed.
greg@kroah.com [Thu, 25 Mar 2004 08:14:47 +0000 (00:14 -0800)]
[PATCH] fix udev.spec file for where udevtest should be placed.