chiark / gitweb /
elogind.git
18 years ago[PATCH] udev - fix debug info for multiple rule file config
kay.sievers@vrfy.org [Tue, 2 Mar 2004 06:28:51 +0000 (22:28 -0800)]
[PATCH] udev - fix debug info for multiple rule file config

On Sat, Feb 28, 2004 at 09:56:32PM +0100, Kay Sievers wrote:
> Andrey pointed out that we don't print the right filename in the debug
> output. Here is a fix for that. It applies on top of Andrey's symlink
> patch, cause we are touching the same part of the code.

The copy/paste devil catched me :)
Here is a fixed one.

18 years ago[PATCH] udev - activate formt length attribute
kay.sievers@vrfy.org [Sat, 28 Feb 2004 14:53:25 +0000 (06:53 -0800)]
[PATCH] udev - activate formt length attribute

We carried the the old callout part selector syntax for two releases
now after it was replaced by the new %c{1} syntax. So here we remove
the old syntax and use the code to possibly specify the maximum count
of chars to insert into the string. It will work with all of our format
chars.
I don't know if somebody will use it, but the code is already there :)

's%3s{vendor}' returns "IBM" now, instead of "IBM-ESXS".

Also added is a test for it and a few words in the man page.

18 years ago[PATCH] 019_bk mark
greg@kroah.com [Sat, 28 Feb 2004 09:59:44 +0000 (01:59 -0800)]
[PATCH] 019_bk mark

18 years ago[PATCH] Add symlink only rules support
arvidjaar@mail.ru [Tue, 2 Mar 2004 06:23:39 +0000 (22:23 -0800)]
[PATCH] Add symlink only rules support

18 years ago[PATCH] udev - kill udevd on install
kay.sievers@vrfy.org [Tue, 2 Mar 2004 06:23:35 +0000 (22:23 -0800)]
[PATCH] udev - kill udevd on install

We want to kill udevd after installing a new version, cause the event
contains a magic with the version number of udev.

18 years ago[PATCH] udev - safer sprintf() use
kay.sievers@vrfy.org [Sat, 28 Feb 2004 09:59:02 +0000 (01:59 -0800)]
[PATCH] udev - safer sprintf() use

Here is for now my last patch to the string handling for a rather
theorethical case, where the node is very very very long. :)

We have accordant to strfieldcat(to, from) now a strintcat(to, i) macro,
which appends the ascii representation of a integer to a string in a
safe way.

18 years ago[PATCH] 018 release 019
greg@kroah.com [Sat, 28 Feb 2004 09:11:20 +0000 (01:11 -0800)]
[PATCH] 018 release

18 years ago[PATCH] update udev scsi_id to scsi_id 0.4
patmans@us.ibm.com [Sat, 28 Feb 2004 09:00:36 +0000 (01:00 -0800)]
[PATCH] update udev scsi_id to scsi_id 0.4

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

18 years ago[PATCH] add new TODO item about local user permissions.
greg@kroah.com [Sat, 28 Feb 2004 08:55:25 +0000 (00:55 -0800)]
[PATCH] add new TODO item about local user permissions.

18 years ago[PATCH] TODO update
kay.sievers@vrfy.org [Sat, 28 Feb 2004 08:54:52 +0000 (00:54 -0800)]
[PATCH] TODO update

On Thu, Feb 12, 2004 at 05:26:37PM -0800, Greg KH wrote:
> On Fri, Feb 13, 2004 at 12:45:38AM +0100, Kay Sievers wrote:
> >
> > Here a few questions about my favorite file in the tree :)
> > - better permission handling
> >
> > What is missing here?
>
> I don't know for sure.  Just a vague feeling that the way we currently
> handle permissions is pretty lousy.  Anyone else feel this way too?

Seems that nobody cares and perhaps the recent klibc permission changes
and the multiple file config directory are enough to kill these lines? :)

18 years ago[PATCH] udev - correct relative symlink
kay.sievers@vrfy.org [Sat, 28 Feb 2004 08:54:49 +0000 (00:54 -0800)]
[PATCH] udev - correct relative symlink

Here we remove the useless leading "./" of the linktargets.
Thanks to Olaf Hering <olh@suse.de>, who asked why we do this :)

We have now:

  /udev
  |-- camera0 -> video0
  |-- kamera0 -> video0
  `-- video0

18 years ago[PATCH] Add initial SELinux support for udev
greg@kroah.com [Sat, 28 Feb 2004 08:52:20 +0000 (00:52 -0800)]
[PATCH] Add initial SELinux support for udev

Based on a patch from Daniel J Walsh <dwalsh@redhat.com>

18 years ago[PATCH] fix build for very old versions of make.
greg@kroah.com [Sat, 28 Feb 2004 08:30:24 +0000 (00:30 -0800)]
[PATCH] fix build for very old versions of make.

Should get rid of some more error reports of libsysfs header issues.

18 years ago[PATCH] remove limit of the number of args passed to PROGRAM
greg@kroah.com [Fri, 27 Feb 2004 05:29:49 +0000 (21:29 -0800)]
[PATCH] remove limit of the number of args passed to PROGRAM

If we go over our internal limit of 7, then we call out to /bin/sh
otherwise we handle it ourself without relying on a shell.

18 years ago[PATCH] udev - safer string handling - part four
kay.sievers@vrfy.org [Fri, 27 Feb 2004 03:40:40 +0000 (19:40 -0800)]
[PATCH] udev - safer string handling - part four

Mainly a cleanup of the earlier patches with a few missing pieces
and some cosmetical changes.

I've moved the udev_init_config() to very early init, otherwise we
don't get any logging for the processing of the input. What would I
do without gdb :)

Greg, it's the 7th patch in your box to apply. I will stop now and
wait for you :)

18 years ago[PATCH] udev - safer string handling - part three
kay.sievers@vrfy.org [Fri, 27 Feb 2004 03:40:32 +0000 (19:40 -0800)]
[PATCH] udev - safer string handling - part three

Here we truncate our input strings from the environment to our
defined limit. It's a bit theroretical but better check for it.

It cleans up some magic length definitions and removes the code
duplication in udev, udevtest and udevsend.

udevd needs to be killed after installation, cause the message size
is changed with this patch.
Should we do this with the 'make install', like we do with the '.udevdb'?

18 years ago[PATCH] udev - safer string handling - part two
kay.sievers@vrfy.org [Fri, 27 Feb 2004 03:40:22 +0000 (19:40 -0800)]
[PATCH] udev - safer string handling - part two

As promised, here is the next round. We provide in addition to the
already used macros:

  strfieldcpy(to, from)
  strfieldcat(to, from)

the corresponding friends, if the size of the target is not known and
must be provided by the caller:

  strnfieldcpy(to, from, maxsize)
  strnfieldcat(to, from, maxsize)

and switch nearly all possibly unsafe users of strcat(), strncat(),
strcpy() and strncpy() to these safer macros.

The last known remaining issue seems the use of sprintf() and
snprintf(). I will take on it later today or tomorrow.

18 years ago[PATCH] udev - man page update
kay.sievers@vrfy.org [Fri, 27 Feb 2004 03:39:33 +0000 (19:39 -0800)]
[PATCH] udev - man page update

Hey it's not longer the "goal" to provide a dynamic dev directory,
we have just arrived. So I  change it to more self-confident words :)

I've also added the completly missing environment variables to the
man pages.

To stop the misuse of the PROGRAM= call paramenters, we better mention
its limitations.

18 years ago[PATCH] udev - safer string handling all over the place
kay.sievers@vrfy.org [Fri, 27 Feb 2004 03:37:47 +0000 (19:37 -0800)]
[PATCH] udev - safer string handling all over the place

On Tue, Feb 24, 2004 at 11:50:52PM +0100, Kay Sievers wrote:
> Here is the first step towards a safer string handling.
> More will follow, but for now only the easy ones :)
>
> Thanks to all who pointed this out. strncat() isn't a nice function. We
> all should remember that the destination string is not terminated if the
> given lenght is shorter than the strlen of the source string.
>
> And shame on the various implementers of strfieldcat() I found in the
> unapplied patches on this list, it's not really better than strncpy()
> and hides the real problem.

Hmm, bk didn't checked in one file, maybe I edited it again as root.
Nevermind, here is the more complete version.

18 years ago[PATCH] manpage update
kay.sievers@vrfy.org [Fri, 27 Feb 2004 03:35:38 +0000 (19:35 -0800)]
[PATCH] manpage update

Nice, here is the corresponding man update which also removes the
mention of the limitation of getgrname() and friends with klibc.

18 years ago[PATCH] do not remove real .udev.tdb during RPM build
arvidjaar@mail.ru [Tue, 24 Feb 2004 03:31:19 +0000 (19:31 -0800)]
[PATCH] do not remove real .udev.tdb during RPM build

18 years ago[PATCH] udev - allow all files in a directory as the config
kay.sievers@vrfy.org [Tue, 24 Feb 2004 03:31:14 +0000 (19:31 -0800)]
[PATCH] udev - allow all files in a directory as the config

I was on the train for 5 hours today and the TODO is almost empty :)
So, at least four people wanted this feature, then here is a actual
working patch.

We may specify now in udev.conf:

  udev_rules="/etc/udev/"

and udev will scan the whole directory for files ending with *.rules,
sort it in lexical order and create our rule list from all of the files.
A plain given file will still work and the same applies to the *.permissions.

I sort the files in our usual linked list, cause klibc has no scandir().

18 years ago[PATCH] udev - simple klibc textual uid/gid handling
kay.sievers@vrfy.org [Tue, 24 Feb 2004 03:29:32 +0000 (19:29 -0800)]
[PATCH] udev - simple klibc textual uid/gid handling

Here we get a very dumb getpwnam() and getgrnam() for klibc to
stop the confusion of not handling textual id's if klibc is used.

If used with  initrd we just need to copy the /etc/passwd and /etc/group
file and all should work well.

18 years ago[PATCH] force udev to include the internal version of libsysfs and never the external...
greg@kroah.com [Tue, 24 Feb 2004 03:07:25 +0000 (19:07 -0800)]
[PATCH] force udev to include the internal version of libsysfs and never the external one.

Should fix some more build bugs...

18 years ago[PATCH] fix up libsysfs header file usage to fix bug reports from users that have...
greg@kroah.com [Tue, 24 Feb 2004 03:06:49 +0000 (19:06 -0800)]
[PATCH] fix up libsysfs header file usage to fix bug reports from users that have sysfsutils installed already.

18 years ago[PATCH] remove udevtest on 'make clean'
greg@kroah.com [Fri, 20 Feb 2004 09:33:49 +0000 (01:33 -0800)]
[PATCH] remove udevtest on 'make clean'

18 years ago[PATCH] 018_bk mark
greg@kroah.com [Fri, 20 Feb 2004 09:10:29 +0000 (01:10 -0800)]
[PATCH] 018_bk mark

18 years ago[PATCH] remove udevd priority TODO item, as it's not needed at all.
greg@kroah.com [Fri, 20 Feb 2004 09:06:41 +0000 (01:06 -0800)]
[PATCH] remove udevd priority TODO item, as it's not needed at all.

We want to be started by keventd, as that runs at a very fast priority.

18 years ago[PATCH] v018 release 018
greg@kroah.com [Fri, 20 Feb 2004 02:35:19 +0000 (18:35 -0800)]
[PATCH] v018 release

18 years ago[PATCH] added scsi_id and some more documentation to the udev.spec file.
greg@kroah.com [Fri, 20 Feb 2004 02:20:33 +0000 (18:20 -0800)]
[PATCH] added scsi_id and some more documentation to the udev.spec file.

18 years ago[PATCH] update udev.rules.gentoo with new config file format.
greg@kroah.com [Fri, 20 Feb 2004 02:00:38 +0000 (18:00 -0800)]
[PATCH] update udev.rules.gentoo with new config file format.

18 years ago[PATCH] Update the Gentoo udev.rules and udev.permissions files
greg@kroah.com [Fri, 20 Feb 2004 01:55:17 +0000 (17:55 -0800)]
[PATCH] Update the Gentoo udev.rules and udev.permissions files

These are very good devfs-like rules for others to use if they want to.

18 years ago[PATCH] Create a udev.rules.examples file to hold odd udev.rules
greg@kroah.com [Fri, 20 Feb 2004 01:54:48 +0000 (17:54 -0800)]
[PATCH] Create a udev.rules.examples file to hold odd udev.rules

These are for examples only, not for everyone to use as they cause too
many problems for different people when they are in the main udev.rules
file.

18 years ago[PATCH] symlink dm-[0-9]* rule
ext.devoteam.varoqui@sncf.fr [Fri, 20 Feb 2004 01:45:37 +0000 (17:45 -0800)]
[PATCH] symlink dm-[0-9]* rule

18 years ago[PATCH] add udevd priority issue to the TODO list.
greg@kroah.com [Fri, 20 Feb 2004 01:43:43 +0000 (17:43 -0800)]
[PATCH] add udevd priority issue to the TODO list.

18 years ago[PATCH] more HOWTO cleanups.
greg@kroah.com [Thu, 19 Feb 2004 07:59:54 +0000 (23:59 -0800)]
[PATCH] more HOWTO cleanups.

18 years ago[PATCH] add HOWTO detailing how to use udev to manage /dev
greg@kroah.com [Thu, 19 Feb 2004 07:54:01 +0000 (23:54 -0800)]
[PATCH] add HOWTO detailing how to use udev to manage /dev

18 years ago[PATCH] udev - TODO update
kay.sievers@vrfy.org [Wed, 18 Feb 2004 08:04:58 +0000 (00:04 -0800)]
[PATCH] udev - TODO update

Make TODO really small :)

18 years ago[PATCH] udev use new libsysfs header file location
patmans@us.ibm.com [Wed, 18 Feb 2004 07:59:06 +0000 (23:59 -0800)]
[PATCH] udev use new libsysfs header file location

Use the new location of libsysfs header files.

18 years ago[PATCH] mv libsysfs/libsysfs.h to libsysfs/sysfs/libsysfs.h to make it easier to...
greg@kroah.com [Wed, 18 Feb 2004 07:56:59 +0000 (23:56 -0800)]
[PATCH] mv libsysfs/libsysfs.h to libsysfs/sysfs/libsysfs.h to make it easier to use.

18 years ago[PATCH] add start_udev init script.
greg@kroah.com [Wed, 18 Feb 2004 05:35:56 +0000 (21:35 -0800)]
[PATCH] add start_udev init script.

18 years ago[PATCH] add support for UDEV_NO_SLEEP env variable so Gentoo people will be happy.
greg@kroah.com [Wed, 18 Feb 2004 04:59:26 +0000 (20:59 -0800)]
[PATCH] add support for UDEV_NO_SLEEP env variable so Gentoo people will be happy.

Actually, I'm happy to, startup time is much smaller...

18 years ago[PATCH] start up udevd ourselves in the init script to give it some good priorities.
greg@kroah.com [Wed, 18 Feb 2004 03:31:33 +0000 (19:31 -0800)]
[PATCH] start up udevd ourselves in the init script to give it some good priorities.

18 years ago[PATCH] update extras/multipath
ext.devoteam.varoqui@sncf.fr [Wed, 18 Feb 2004 03:07:56 +0000 (19:07 -0800)]
[PATCH] update extras/multipath

patch follows :

        * remove the restrictive -f flag.
          Introduce a more generic "-m iopolicy" one.
        * remove useless "int with_sysfs" in env struct

18 years ago[PATCH] init.d debian patch
john-hotplug@fjellstad.org [Wed, 18 Feb 2004 03:02:44 +0000 (19:02 -0800)]
[PATCH] init.d debian patch

I dualboot between 2.4.x and 2.6.x right now, and although I
want udev to start up when 2.6 is booting, I don't want it to try when
2.4.x is booting.

This is a small patch to not start up udev if sysfs is not
mounted.

18 years ago[PATCH] udev - add %s{filename} to man page
kay.sievers@vrfy.org [Wed, 18 Feb 2004 03:02:39 +0000 (19:02 -0800)]
[PATCH] udev - add %s{filename} to man page

Add the new %s{filename} to the udev man page.
And add the automatic start of udevd to the udevd man page.

18 years ago[PATCH] update the red hat init script to handle nodes that are not present
greg@kroah.com [Wed, 18 Feb 2004 02:34:23 +0000 (18:34 -0800)]
[PATCH] update the red hat init script to handle nodes that are not present

Thanks to Gentoo for the list of these files.

18 years ago[PATCH] udev - udevd/udevsend man page
kay.sievers@vrfy.org [Wed, 18 Feb 2004 02:17:50 +0000 (18:17 -0800)]
[PATCH] udev - udevd/udevsend man page

Here is the missing man page for udevd/udevsend.

18 years ago[PATCH] add a "old style" SYSFS_attribute test to udev-test.pl
greg@kroah.com [Tue, 17 Feb 2004 09:31:42 +0000 (01:31 -0800)]
[PATCH] add a "old style" SYSFS_attribute test to udev-test.pl

18 years ago[PATCH] udev - switch callout part selector to {attribute}
kay.sievers@vrfy.org [Tue, 17 Feb 2004 09:29:03 +0000 (01:29 -0800)]
[PATCH] udev - switch callout part selector to {attribute}

Here we change the magic callout part number selector to the new
atribute syntax. The syntax to select the second part of the callout string:

 '%2c' is now '%c{2}'

I think it's more clear and we no longer misuse the length argument.

The old syntax is still supported, but we should remove it some
time in the future.

18 years ago[PATCH] udev - switch SYSFS_file to SYSFS{file}
kay.sievers@vrfy.org [Tue, 17 Feb 2004 09:27:01 +0000 (01:27 -0800)]
[PATCH] udev - switch SYSFS_file to SYSFS{file}

Here we switch the configs and man pages to the new attribute syntax.
Also the 'partition trick' is mentioned in udev.8

I think it's more clear visible now, that inside the brackets are user
supplied values used and not some magic keys handled:

  'SYSFS_dev' is now 'SYSFS{dev}'

The old syntax is still supported.

18 years ago[PATCH] Have udevsend report more info in debug mode.
greg@kroah.com [Tue, 17 Feb 2004 06:31:32 +0000 (22:31 -0800)]
[PATCH] Have udevsend report more info in debug mode.

18 years ago[PATCH] Have udevd report it's version in debug mode.
greg@kroah.com [Tue, 17 Feb 2004 06:31:15 +0000 (22:31 -0800)]
[PATCH] Have udevd report it's version in debug mode.

18 years ago[PATCH] udev add some ID tests
patmans@us.ibm.com [Tue, 17 Feb 2004 06:00:38 +0000 (22:00 -0800)]
[PATCH] udev add some ID tests

Patch against current udev bk to add a few ID rule tests.

18 years ago[PATCH] fix up bug created for udevtest in previous partition creation patch.
greg@kroah.com [Tue, 17 Feb 2004 05:58:25 +0000 (21:58 -0800)]
[PATCH] fix up bug created for udevtest in previous partition creation patch.

18 years ago[PATCH] udev - create all partitions of blockdevice
kay.sievers@vrfy.org [Tue, 17 Feb 2004 05:44:28 +0000 (21:44 -0800)]
[PATCH] udev - create all partitions of blockdevice

Here is the first try to create all partitons of a blockdevice, since
removable media devices may need to acces the expected partition to
revalidate the media.

It uses the attribute syntax introduced with the last %s{file} patch.
I'm using this with my multi-slot-flash-card-reader:

  SYSFS{model}="USB Storage-SMC ", NAME{all_partitions}="smartmedia"
  SYSFS{model}="USB Storage-CFC ", NAME{all_partitions}="compactflash"
  SYSFS{model}="USB Storage-MSC ", NAME{all_partitions}="memorystick"
  SYSFS{model}="USB Storage-MMC ", NAME{all_partitions}="multimedia"

and I get:

  tree /udev/
  /udev/
  |-- memorystick
  |-- memorystick1
  |-- memorystick10
  |-- memorystick11
  |-- memorystick12
  |-- memorystick13
  |-- memorystick14
  |-- memorystick15
  |-- memorystick2
  |-- memorystick3
  |-- memorystick4
  |-- memorystick5
  |-- memorystick6
  |-- memorystick7
  |-- memorystick8
  |-- memorystick9
  |-- multimedia
  |-- multimedia1
  |-- multimedia10
  |-- multimedia11
  |-- multimedia12
  |-- multimedia13
  |-- multimedia14
  |-- multimedia15
  |-- multimedia2
  |-- multimedia3
  |-- multimedia4
  |-- multimedia5
  |-- multimedia6
  |-- multimedia7
  |-- multimedia8
  |-- multimedia9
  ...

If needed, we can make the number of partions to create
adjustable with the attribute?

18 years ago[PATCH] allow SYSFS{file}
kay.sievers@vrfy.org [Tue, 17 Feb 2004 05:39:40 +0000 (21:39 -0800)]
[PATCH] allow SYSFS{file}

On Sun, Feb 15, 2004 at 03:36:00AM +0100, Kay Sievers wrote:
>
> Since we have %s{file} it may be nice to allow SYSFS{file}.
> This patch allows:
>
>   BUS="usb", SYSFS{idProduct}="a511", NAME="video%n"
>
> compared to the current:
>
>   BUS="usb", SYSFS_idProduct="a511", NAME="video%n"
>
> The curent syntax is still supported.
> Looks a bit nicer and less hackish, I think.

Better patch with infrastructure to easily implement KEY{attribute}
for every other key. The first user is the SYSFS{file} key.
Both versions, brackets or underscore is supported for the attribute.

18 years ago[PATCH] Adding '%s' format specifier to NAME and SYMLINK
kay.sievers@vrfy.org [Tue, 17 Feb 2004 05:36:34 +0000 (21:36 -0800)]
[PATCH] Adding '%s' format specifier to NAME and SYMLINK

On Thu, Feb 12, 2004 at 05:34:57PM -0800, Greg KH wrote:
> On Tue, Feb 10, 2004 at 09:14:20AM +0100, Hannes Reinecke wrote:
> > Hi all,
> >
> > this patch makes the format for NAME and SYMLINK a bit more flexible:
> > I've added a new format specifier '%s{<SYSFS_var>}', which allows for
> > the value of any sysfs entry found for this device to be inserted.
> > Example (for our S/390 fcp adapter):
> >
> > BUS="ccw", SYSFS_devtype="1732/03", NAME="%k" \
> > SYMLINK="zfcp-%s{hba_id}-%s{wwpn}:%s{fcp_lun}"
> >
> > I know this could also be done with an external program, but having this
> > incorporated into udev makes life easier, especially if run from
> > initramfs. Plus it makes the rules easier to follow, as the result is
> > directly visible and need not to be looked up in some external program.
> >
> > Comments etc. welcome.
>
> Oops, sorry I missed this for the 017 release.  I'll look at it tomorrow
> and get back to you.  At first glance it looks like a good thing.
>
> Oh, you forgot to update the documentation, that's important to do if
> you want this change to make it in :)

I took a part of the code and made a version that uses already implemented
attribute finding logic.

The parsing of the format length '%3x' and the '%x{attribute}' is a fuction now,
maybe there are more possible users in the future.

I've also added the test to udev-test.pl.

18 years ago[PATCH] update the udev.spec to add udevtest and make some more Red Hat suggested...
greg@kroah.com [Tue, 17 Feb 2004 02:37:59 +0000 (18:37 -0800)]
[PATCH] update the udev.spec to add udevtest and make some more Red Hat suggested changes.

18 years ago[PATCH] add ability to install udevtest to Makefile
greg@kroah.com [Tue, 17 Feb 2004 02:32:20 +0000 (18:32 -0800)]
[PATCH] add ability to install udevtest to Makefile

18 years ago[PATCH] 017_bk mark
greg@kroah.com [Tue, 17 Feb 2004 02:27:46 +0000 (18:27 -0800)]
[PATCH] 017_bk mark

18 years ago[PATCH] Add another test to udev-test.pl and fix a bug when only running 1 test.
greg@kroah.com [Tue, 17 Feb 2004 02:25:01 +0000 (18:25 -0800)]
[PATCH] Add another test to udev-test.pl and fix a bug when only running 1 test.

18 years ago[PATCH] Fix bug where we did not use the "converted" kernel name if we had no rule.
greg@kroah.com [Tue, 17 Feb 2004 02:19:48 +0000 (18:19 -0800)]
[PATCH] Fix bug where we did not use the "converted" kernel name if we had no rule.

This fixes the bug with names that have a ! in them and no rule to match.

18 years ago[PATCH] v017 release 017
greg@kroah.com [Fri, 13 Feb 2004 09:01:07 +0000 (01:01 -0800)]
[PATCH] v017 release

18 years ago[PATCH] more udev-016/extras/multipath
christophe.varoqui@free.fr [Fri, 13 Feb 2004 08:53:10 +0000 (00:53 -0800)]
[PATCH] more udev-016/extras/multipath

incremental to udev-016/extras/multipath-0.0.16.3,

        * add a GROUP_BY_SERIAL flag. This should be useful for
          controlers that activate their spare paths on simple IO
          submition with a penalty. The StorageWorks HW defaults to
          this mode, even if the MULTIBUS mode is OK.
        * remove unused sg_err.c
        * big restructuring : split devinfo.c from main.c. Export :
                * void basename (char *, char *);
                * int get_serial (int, char *);
                * int get_lun_strings (char *, char *, char *, char *);
                * int get_evpd_wwid(char *, char *);
                * long get_disk_size (char *);
          Now we see clearly what is expected from an external package
          like scsi_id.
        * stop passing struct env as param

18 years ago[PATCH] more udev-016/extras/multipath
christophe.varoqui@free.fr [Fri, 13 Feb 2004 08:48:36 +0000 (00:48 -0800)]
[PATCH] more udev-016/extras/multipath

> Hello,
>
> incremental to udev-016/extras/multipath,
>
> * don't rely on the linux symlink in the udev/klibc dir since
>   udev build doesn't use it anymore. This corrects build breakage
> * remove make_dm_node fn & call. Rely on udev for this.
>
> The first patch is to be applied.
> The second is conditioned by udev dealing correctly with devmap names.
>
> For this I can suggest a CALLOUT rule like this :
> KERNEL="dm-[0-9]*", PROGRAM="/tmp/name_devmap %M %m", NAME="%k",
> SYMLINK="%c"
>
> With name_devmap like :
> #!/bin/sh
> /usr/sbin/dmsetup ls|/bin/grep "$1, $2"|/usr/bin/awk '{print $1}'
>

ok I coded the suggested tool.
it works with the following rule :
KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"

I don't know if it's right to keep this tools packaged with multipath because
it's widely more general.

Maybe Joe should merge it in the device-mapper package or provide the
functionnality through dmsetup ?

18 years ago[PATCH] add udev_log to the documentation.
greg@kroah.com [Fri, 13 Feb 2004 08:35:30 +0000 (00:35 -0800)]
[PATCH] add udev_log to the documentation.

18 years ago[PATCH] fix offsetof() define in klibc.
greg@kroah.com [Fri, 13 Feb 2004 07:43:31 +0000 (23:43 -0800)]
[PATCH] fix offsetof() define in klibc.

18 years ago[PATCH] add some .spec file changes from Red Hat.
greg@kroah.com [Fri, 13 Feb 2004 07:40:56 +0000 (23:40 -0800)]
[PATCH] add some .spec file changes from Red Hat.

18 years ago[PATCH] update the init.d udev script based on a patch from Red Hat.
greg@kroah.com [Fri, 13 Feb 2004 07:30:11 +0000 (23:30 -0800)]
[PATCH] update the init.d udev script based on a patch from Red Hat.

18 years ago[PATCH] remove the .udev.tdb when installing or uninstalling to be safe.
greg@kroah.com [Fri, 13 Feb 2004 07:20:50 +0000 (23:20 -0800)]
[PATCH] remove the .udev.tdb when installing or uninstalling to be safe.

18 years ago[PATCH] remove the database at startup.
greg@kroah.com [Fri, 13 Feb 2004 07:08:22 +0000 (23:08 -0800)]
[PATCH] remove the database at startup.

18 years ago[PATCH] udev - keep private data out of the database?
kay.sievers@vrfy.org [Fri, 13 Feb 2004 06:51:44 +0000 (22:51 -0800)]
[PATCH] udev - keep private data out of the database?

Shouldn't we keep the temporary strings out of the database,
or is this information useful for something?

It cuts the length of the data from 628 to 275 bytes.

18 years ago[PATCH] fix bug in permission handling.
greg@kroah.com [Fri, 13 Feb 2004 06:42:14 +0000 (22:42 -0800)]
[PATCH] fix bug in permission handling.

18 years ago[PATCH] update klibc to version .107
greg@kroah.com [Fri, 13 Feb 2004 06:41:55 +0000 (22:41 -0800)]
[PATCH] update klibc to version .107

18 years ago[PATCH] add udevtest program to build
greg@kroah.com [Fri, 13 Feb 2004 04:19:21 +0000 (20:19 -0800)]
[PATCH] add udevtest program to build

Also fix up some other dependancy issues in the Makefile.
Thanks to Olaf Hering <olh@suse.de> for pointing them out.

18 years ago[PATCH] fix problem where usb devices can be either the main device or the interface
greg@kroah.com [Fri, 13 Feb 2004 03:48:07 +0000 (19:48 -0800)]
[PATCH] fix problem where usb devices can be either the main device or the interface

This fixes the bug of a long delay for mouse devices

18 years ago[PATCH] more logging.h cleanups to be a bit more flexible.
greg@kroah.com [Fri, 13 Feb 2004 02:57:06 +0000 (18:57 -0800)]
[PATCH] more logging.h cleanups to be a bit more flexible.

18 years ago[PATCH] stop using mode_t as different libcs define it in different ways :(
greg@kroah.com [Thu, 12 Feb 2004 09:29:40 +0000 (01:29 -0800)]
[PATCH] stop using mode_t as different libcs define it in different ways :(

18 years ago[PATCH] udev add wild card compare for ID
patmans@us.ibm.com [Thu, 12 Feb 2004 09:25:28 +0000 (01:25 -0800)]
[PATCH] udev add wild card compare for ID

Allow wild card comparison of the ID.

Using strcmp_pattern here also means we on longer match partial values,
for example, a scsi rule like this won't match anymore:

BUS="scsi", ID=":0", NAME="sdfoo-short-bus_id-1"

But this now works:

BUS="scsi", ID="*:0", NAME="sdfoo-bus_id-wild-card-1"

18 years ago[PATCH] udev kill extra bus_id compares in match_id
patmans@us.ibm.com [Thu, 12 Feb 2004 09:24:54 +0000 (01:24 -0800)]
[PATCH] udev kill extra bus_id compares in match_id

Kill the extra bus_id check in match_id. This is wrong, especially since
we check for rule matches with the parent devices on a given devices path.

For example, given a device path of:

/sys/devices/pci0000:01/0000:01:0c.0/host5/5:0:2:0

With this patch, the following rule will no longer match:

BUS="scsi", ID="host5", NAME="sd-bus_id-host5"

18 years ago[PATCH] better credential patch
kay.sievers@vrfy.org [Thu, 12 Feb 2004 09:23:59 +0000 (01:23 -0800)]
[PATCH] better credential patch

Here is a small improvement. We check for the type of message we receive
and udevsend seems not to need all the credential setup stuff, the
kernel will fill it for us.

udevd now refuses to start as non root, cause it doesn't make any sense.

18 years ago[PATCH] remove some more KLIBC fixups that are no longer needed.
greg@kroah.com [Thu, 12 Feb 2004 09:14:48 +0000 (01:14 -0800)]
[PATCH] remove some more KLIBC fixups that are no longer needed.

18 years ago[PATCH] let udev-test.pl run an individual test if you ask it to.
greg@kroah.com [Thu, 12 Feb 2004 08:49:52 +0000 (00:49 -0800)]
[PATCH] let udev-test.pl run an individual test if you ask it to.

just put the test number on the command line:
udev-test.pl 3
will run test number 3

If no test number is specified, all of the tests will be run, just like before.

18 years ago[PATCH] Handle the '!' character that some block devices have.
greg@kroah.com [Thu, 12 Feb 2004 07:49:04 +0000 (23:49 -0800)]
[PATCH] Handle the '!' character that some block devices have.

18 years ago[PATCH] add a block device with a ! in the name, and a test for this.
greg@kroah.com [Thu, 12 Feb 2004 07:34:21 +0000 (23:34 -0800)]
[PATCH] add a block device with a ! in the name, and a test for this.

18 years ago[PATCH] fix up 'make release' to use bk to build the export tree.
greg@kroah.com [Thu, 12 Feb 2004 07:23:17 +0000 (23:23 -0800)]
[PATCH] fix up 'make release' to use bk to build the export tree.

18 years ago[PATCH] udevd - client access authorization
kay.sievers@vrfy.org [Thu, 12 Feb 2004 06:32:11 +0000 (22:32 -0800)]
[PATCH] udevd - client access authorization

Here is the badly needed client authorization for udevd.
Since we switched to abstract namespace sockets, we are unable to
control the access of the socket by file permissions.

So here we send a ancillary credential message with every datagram,
to be able to verify the uid of the sender. The sender can't fake the
credentials, cause the kernel doesn't allow it for non root users.

udevd is still working with klibc here :)

18 years ago[PATCH] compile udevd with klibc
kay.sievers@vrfy.org [Thu, 12 Feb 2004 06:29:15 +0000 (22:29 -0800)]
[PATCH] compile udevd with klibc

On Mon, Feb 09, 2004 at 05:41:15AM +0100, Kay Sievers wrote:
> It seems that today was just another udev-sunday for me :)
>
> Here is a working patch to compile udevd with klibc.
>
> It's sweet the static binary takes 6 kbytes and it runs
> with only 80 kbytes virtual memory.
>
> I changed a few peaces and added a siginterrupt.c file to klibc.
> We may check with hpa to get the changes upstream?

So here is the next try :)
hpa, for good reason, didn't like my changes to klibc.
He will dump signal() completely from klibc instead, so here we switch to
sigaction() and keep udevd working with klibc.

18 years ago[PATCH] udev - fix "ignore method"
kay.sievers@vrfy.org [Thu, 12 Feb 2004 06:28:51 +0000 (22:28 -0800)]
[PATCH] udev - fix "ignore method"

On Sun, Feb 08, 2004 at 04:36:01PM +0100, Kay Sievers wrote:
> We don't handle NAME="" the right way. Thanks to Emil None <emil71se@yahoo.com>
> for pointing this out. Here is a fix for it and a trivial style cleanup.

Changed the ignore dbg() to info().

18 years ago[PATCH] udev - fix cdrom symlink rule
kay.sievers@vrfy.org [Thu, 12 Feb 2004 06:28:47 +0000 (22:28 -0800)]
[PATCH] udev - fix cdrom symlink rule

We only need to look at the device, not at the partitions.

18 years ago[PATCH] fix log option code so that it actually works for all udev programs.
greg@kroah.com [Thu, 12 Feb 2004 06:10:26 +0000 (22:10 -0800)]
[PATCH] fix log option code so that it actually works for all udev programs.

Also introduce boolean type for config file to use.

18 years ago[PATCH] make logging a config option
azarah@nosferatu.za.org [Thu, 12 Feb 2004 03:42:51 +0000 (19:42 -0800)]
[PATCH] make logging a config option

Once again, patch to make logging a config option.

Reason for this (since you asked for it):
 - In our setup it is easy (although still annoying) .. just edit the
   ebuild, add logging support (or remove it) and rebuild.  For say a
   binary distro, having the logging is useful for debugging some
   times, but its more a once of, or rare thing, as you do not add or
   change config files every day.  Sure, we can have logging by
   default, but many do not want ~300 lines of extra debugging in their
   logs is not pleasant, and they will complain.  Rebuilding the
   package for that binary package (given the users it is targeted to)
   is usually not within most users grasp.

18 years ago[PATCH] finish syncing up with klibc
greg@kroah.com [Thu, 12 Feb 2004 02:34:28 +0000 (18:34 -0800)]
[PATCH] finish syncing up with klibc

18 years ago[PATCH] sync with latest version of klibc (0.107)
greg@kroah.com [Thu, 12 Feb 2004 02:27:55 +0000 (18:27 -0800)]
[PATCH] sync with latest version of klibc (0.107)

18 years ago[PATCH] convert udevsend/udevd to DGRAM and single-threaded
kay.sievers@vrfy.org [Sat, 7 Feb 2004 06:21:15 +0000 (22:21 -0800)]
[PATCH] convert udevsend/udevd to DGRAM and single-threaded

On Fri, Feb 06, 2004 at 01:08:24AM -0500, Chris Friesen wrote:
>
> Kay, you said "unless we can get rid of _all_ the threads or at least
> getting faster, I don't want to change it."
>
> Well how about we get rid of all the threads, *and* we get faster?

Yes, we are twice as fast now on my box :)

> This patch applies to current bk trees, and does the following:
>
> 1) Switch to DGRAM sockets rather than STREAM.  This simplifies things
> as mentioned in the previous message.
>
> 2) Invalid sequence numbers are mapped to -1 rather than zero, since
> zero is a valid sequence number (I think).  Also, this allows for real
> speed tests using scripts starting at a zero sequence number, since that
> is what the initial expected sequence number is.
>
> 3) Get rid of all threading.  This is the biggie.  Some highlights:
>  a) timeout using setitimer() and SIGALRM
>  b) async child death notification via SIGCHLD
>  c) these two signal handlers do nothing but raise volatile flags,
>  all the
> work is done in the main loop
>  d) locking no longer required

I cleaned up the rest of the comments, the whitespace and a few names to match
the whole thing. Please recheck it. Test script is switched to work on subsystem
'test' to let udev ignore it.

18 years ago[PATCH] udevd - kill the lockfile
kay.sievers@vrfy.org [Fri, 6 Feb 2004 09:04:28 +0000 (01:04 -0800)]
[PATCH] udevd - kill the lockfile

18 years ago[PATCH] update extras/multipath
christophe.varoqui@free.fr [Fri, 6 Feb 2004 08:14:51 +0000 (00:14 -0800)]
[PATCH] update extras/multipath

incremental to udev-016/extras/multipath,

* don't rely on the linux symlink in the udev/klibc dir since
  udev build doesn't use it anymore. This corrects build breakage
* remove make_dm_node fn & call. Rely on udev for this.

The first patch is to be applied.
The second is conditioned by udev dealing correctly with devmap names.

For this I can suggest a CALLOUT rule like this :
KERNEL=3D"dm-[0-9]*", PROGRAM=3D"/tmp/name_devmap %M %m", NAME=3D"%k", SY=
MLINK=3D"%c"

With name_devmap like :
#!/bin/sh
/usr/sbin/dmsetup ls|/bin/grep "$1, $2"|/usr/bin/awk '{print $1}'

18 years ago[PATCH] udevd - fix socket path length
kay.sievers@vrfy.org [Fri, 6 Feb 2004 08:11:24 +0000 (00:11 -0800)]
[PATCH] udevd - fix socket path length

It seems that the guys are no longer differ about the right size of the
socket address :)

The kernel simply takes all bytes until the specified length as the name,
so the real length should be enough.

18 years ago[PATCH] udevd - switch socket path to abstract namespace
kay.sievers@vrfy.org [Thu, 5 Feb 2004 09:35:15 +0000 (01:35 -0800)]
[PATCH] udevd - switch socket path to abstract namespace

As Chris Friesen <chris_friesen@sympatico.ca> suggested, here we switch
the unix domains socket path to abstract namespace and get rid of the
socket file in the filesystem.

Hey, this was new to me today. So here a few words:
  Linux supports a abstract namespace for sockets. We don't need a
  physical file on the filesystem but only a unique string magically
  starting with the '\0' character.

  strace with real file:
    connect(3, {sa_family=AF_UNIX, path="/udev/.udevd.sock"}, 110)

  strace with abstract namespace:
    connect(3, {sa_family=AF_UNIX, path=@udevd}, 110)