]> err.no Git - systemd/log
systemd
19 years ago[PATCH] added input device rules to udev.rules and udev.rules.devfs
greg@kroah.com [Thu, 15 Jan 2004 05:38:36 +0000 (21:38 -0800)]
[PATCH] added input device rules to udev.rules and udev.rules.devfs

19 years ago[PATCH] udev - mention format string escape char in man page
kay.sievers@vrfy.org [Thu, 15 Jan 2004 02:18:12 +0000 (18:18 -0800)]
[PATCH] udev - mention format string escape char in man page

If we want to pass any '%' down to a program, you need to ecape it by '%%',
otherwise we try to expand it with our own format char list.

19 years ago[PATCH] 013_bk mark
greg@kroah.com [Thu, 15 Jan 2004 02:16:32 +0000 (18:16 -0800)]
[PATCH] 013_bk mark

19 years ago[PATCH] v013 release 013
greg@kroah.com [Wed, 14 Jan 2004 06:59:11 +0000 (22:59 -0800)]
[PATCH] v013 release

19 years ago[PATCH] update TODO with some new, small items.
greg@kroah.com [Wed, 14 Jan 2004 06:55:21 +0000 (22:55 -0800)]
[PATCH] update TODO with some new, small items.

19 years ago[PATCH] fix klibc with printf() and gcc
kay.sievers@vrfy.org [Wed, 14 Jan 2004 02:48:33 +0000 (18:48 -0800)]
[PATCH] fix klibc with printf() and gcc

On Mon, Jan 12, 2004 at 05:04:45PM -0800, Greg KH wrote:
> Very nice, applied.  But I did have to make one small change to get the
> code to build properly with klibc:
>
> > +static void print_record(char *path, struct udevice *dev)
> > +{
> > + printf("P: %s\n", path);
> > + printf("N: %s\n", dev->name);
> > + printf("S: %s\n", dev->symlink);
> > + printf("O: %s\n", dev->owner);
> > + printf("G: %s\n", dev->group);
> > + printf("\n");
> > +}
>
> Turns out that gcc likes to convert single character printf() calls to
> putchar() which is only defined in klibc as a macro :(

Just for information. This seems to fix the gcc with klibc :)

19 years ago[PATCH] Cset exclude: greg@kroah.com|ChangeSet|20040113010256|48515
greg@kroah.com [Wed, 14 Jan 2004 02:47:17 +0000 (18:47 -0800)]
[PATCH] Cset exclude: greg@kroah.com|ChangeSet|20040113010256|48515

19 years ago[PATCH] udev - small script optimization
kay.sievers@vrfy.org [Wed, 14 Jan 2004 02:34:38 +0000 (18:34 -0800)]
[PATCH] udev - small script optimization

Optimize the scripts reflecting the now more powerful rule logic,
cause we can combine all known fields now in any order:

  The ide-devfs.sh is only executed if the kernel name matches with 'hd*':

    BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%1c %2c"

  The name_cdrom.pl is only executed for ide and scsi devices, but not for a partition.
  It exits with nonzero to skip the rule if the CD is not found:

    KERNEL="[hs]d[a-z]", PROGRAM="name_cdrom.pl %M %m", NAME="%1c", SYMLINK="cdrom"

19 years ago[PATCH] udev - introduce format escape char
kay.sievers@vrfy.org [Wed, 14 Jan 2004 02:34:33 +0000 (18:34 -0800)]
[PATCH] udev - introduce format escape char

This patch adds a '%' to the format char list, so that a external
program may called with a non expanded '%' like:

  PROGRAM="/bin/date +%%s"

Olaf Hering asked for the feature.
A tricky test is also added :)

19 years ago[PATCH] udev - more CALLOUT is PROGRAM now
kay.sievers@vrfy.org [Wed, 14 Jan 2004 02:31:20 +0000 (18:31 -0800)]
[PATCH] udev - more CALLOUT is PROGRAM now

On Tue, Jan 13, 2004 at 02:45:17AM +0100, Kay Sievers wrote:
> replace CALLOUT by PROGRAM and fix old rule format

One is missing.

19 years ago[PATCH] udev - CALLOUT is PROGRAM now
kay.sievers@vrfy.org [Wed, 14 Jan 2004 02:31:18 +0000 (18:31 -0800)]
[PATCH] udev - CALLOUT is PROGRAM now

replace CALLOUT by PROGRAM and fix old rule format

19 years ago[PATCH] update the README in a few places.
greg@kroah.com [Tue, 13 Jan 2004 09:49:45 +0000 (01:49 -0800)]
[PATCH] update the README in a few places.

19 years ago[PATCH] fix -d typo in the manpage update
greg@kroah.com [Tue, 13 Jan 2004 09:36:56 +0000 (01:36 -0800)]
[PATCH] fix -d typo in the manpage update

19 years ago[PATCH] update documentation for new config file format
kay.sievers@vrfy.org [Tue, 13 Jan 2004 09:35:55 +0000 (01:35 -0800)]
[PATCH] update documentation for new config file format

Here is the man page update after my udev-weekend :)

19 years ago[PATCH] Fix stupid gcc "optimization" of 1 character printk() calls.... Ick...
greg@kroah.com [Tue, 13 Jan 2004 09:02:56 +0000 (01:02 -0800)]
[PATCH] Fix stupid gcc "optimization" of 1 character printk() calls.... Ick...

19 years ago[PATCH] more advanced user query options
kay.sievers@vrfy.org [Tue, 13 Jan 2004 09:01:19 +0000 (01:01 -0800)]
[PATCH] more advanced user query options

Here is the '-h' and a '-d' to dump the whole database:

  kay@pim:~/src/udev.kay$ ./udev -d
  P: /block/hdb/hdb1
  N: hdb1
  S:
  O:
  G:

  P: /class/video4linux/video0
  N: video/webcam0
  S: camera0 kamera0
  O: 500
  G: 500

  P: /block/hdc
  N: hdc
  S:
  O:
  G:

19 years ago[PATCH] udev - simple debug tweak
kay.sievers@vrfy.org [Tue, 13 Jan 2004 08:51:44 +0000 (00:51 -0800)]
[PATCH] udev - simple debug tweak

change the empty debug string:
  Jan 13 00:55:42 pim udev[2849]: namedev_name_device: found matching rule, 'video*' becomes ''

to something useful:
  Jan 13 01:00:23 pim udev[3234]: namedev_name_device: found matching rule, 'video*' becomes 'video/webcam%n'

19 years ago[PATCH] oops, forgot to fix up the PROGRAM result from ID to RESULT in the config...
greg@kroah.com [Tue, 13 Jan 2004 07:45:30 +0000 (23:45 -0800)]
[PATCH] oops, forgot to fix up the PROGRAM result from ID to RESULT in the config files.

19 years ago[PATCH] fix udev directory for Debian init script
elkropac@students.zcu.cz [Tue, 13 Jan 2004 07:29:57 +0000 (23:29 -0800)]
[PATCH] fix udev directory for Debian init script

there is also patch on debian init.d file, it uses variable $udev_dir
also when creating and removing symlinks

19 years ago[PATCH] Add alsa device rules and a few other devfs rules.
greg@kroah.com [Tue, 13 Jan 2004 07:22:52 +0000 (23:22 -0800)]
[PATCH] Add alsa device rules and a few other devfs rules.

Thanks to Libor Klepac <elkropac@students.zcu.cz> for the information

19 years ago[PATCH] fix a few stale comments in namedev.c
greg@kroah.com [Tue, 13 Jan 2004 07:22:13 +0000 (23:22 -0800)]
[PATCH] fix a few stale comments in namedev.c

19 years ago[PATCH] convert the default rules files to the new format.
greg@kroah.com [Tue, 13 Jan 2004 07:13:10 +0000 (23:13 -0800)]
[PATCH] convert the default rules files to the new format.

19 years ago[PATCH] convert the test shell scripts to the config file format.
greg@kroah.com [Tue, 13 Jan 2004 07:09:20 +0000 (23:09 -0800)]
[PATCH] convert the test shell scripts to the config file format.

19 years ago[PATCH] add bus test for usb-serial bus.
greg@kroah.com [Tue, 13 Jan 2004 07:09:02 +0000 (23:09 -0800)]
[PATCH] add bus test for usb-serial bus.

19 years ago[PATCH] Add some helpful messages if the user uses the older config file format
greg@kroah.com [Tue, 13 Jan 2004 07:08:43 +0000 (23:08 -0800)]
[PATCH] Add some helpful messages if the user uses the older config file format

Also fail a rule that we can not parse, as we can easily create incorrect rules
if we do not do this.

19 years ago[PATCH] udev - drop all methods :)
kay.sievers@vrfy.org [Tue, 13 Jan 2004 05:39:05 +0000 (21:39 -0800)]
[PATCH] udev - drop all methods :)

> Hi,
> as promised yesterday, here is a patch that drops the explicit methods
> given in the udev config and implement only one type of rule.
>
> A rule now consists only of a number of keys to match. All known keys
> are valid in any combination. The former configs should work with a few
> changes:
>
>   o the "<METHOD>, " at the beginning of the line should be removed
>
>   o the result of the externel program is matched with RESULT= instead if ID=
>     the PROGRAM= key is only valid if the program exits with zero
>     (just exit with nozero in a script if the rule should not match)
>
>   o rules are processed in order they appear in the file, no priority
>
>   o if NAME="" is given, udev is instructed to ignore this device,
>     no node will be created
>
>
>   EXAMPLE:
>
>   # combined BUS, SYSFS and KERNEL
>   BUS="usb", KERNEL="video*", SYSFS_model="Creative Labs WebCam*", NAME="test/webcam%n"
>
>   # exec script only for the first ide drive (hda), all other will be skipped
>   BUS="ide", KERNEL="hda*", PROGRAM="/home/kay/src/udev.kay/extras/ide-devfs.sh %k %b %n", RESULT="hd*", NAME="%1c", SYMLINK="%2c %3c"
>
>
> The udev-test.pl and test.block works fine here.
> Please adapt your config and give it a try.
>

Here is a slightly better version of the patch.
After a conversation with Patrick, we are now able to execute the PROGRAM
and also match in all following rules with the RESULT value from this exec.

EXAMPLE:
  We have 7 rules with RESULT and 2 with PROGRAM.
  Only the 5th rule matches with the callout result from the exec in the 4th rule.

RULES:
  PROGRAM="/bin/echo abc", RESULT="no_match", NAME="web-no-2"
  KERNEL="video*", RESULT="123", NAME="web-no-3"
  KERNEL="video*", RESULT="123", NAME="web-no-4"
  PROGRAM="/bin/echo 123", RESULT="no_match", NAME="web-no-5"
  KERNEL="video*", RESULT="123", NAME="web-yes"

RESULT:
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: process rule
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check PROGRAM
  Jan 11 23:36:52 pim udev[26050]: execute_program: executing '/bin/echo abc'
  Jan 11 23:36:52 pim udev[26050]: execute_program: result is 'abc'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: PROGRAM returned successful
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check for RESULT dev->result='no_match', udev->program_result='abc'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: RESULT is not matching
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: process rule
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check for KERNEL dev->kernel='video*' class_dev->name='video0'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: KERNEL matches
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check for RESULT dev->result='123', udev->program_result='abc'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: RESULT is not matching
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: process rule
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check for KERNEL dev->kernel='video*' class_dev->name='video0'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: KERNEL matches
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check for RESULT dev->result='123', udev->program_result='abc'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: RESULT is not matching
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: process rule
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check PROGRAM
  Jan 11 23:36:52 pim udev[26050]: execute_program: executing '/bin/echo 123'
  Jan 11 23:36:52 pim udev[26050]: execute_program: result is '123'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: PROGRAM returned successful
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check for RESULT dev->result='no_match', udev->program_result='123'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: RESULT is not matching
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: process rule
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check for KERNEL dev->kernel='video*' class_dev->name='video0'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: KERNEL matches
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: check for RESULT dev->result='123', udev->program_result='123'
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: RESULT matches
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: found matching rule, 'video*' becomes ''
  Jan 11 23:36:52 pim udev[26050]: namedev_name_device: name, 'web-yes' is going to have owner='', group='', mode = 0600

19 years ago[PATCH] udev - advanced user query options
kay.sievers@vrfy.org [Tue, 13 Jan 2004 05:18:57 +0000 (21:18 -0800)]
[PATCH] udev - advanced user query options

This patch improves the user options for udev.
It is possible now to query for the name, the symlinks or owner/group.
If asked for the name of the node we are able to prepend the udev_root
with the -r option.

SAMPLE:

  kay@pim:~/src/udev.test$ ./udev -V
  udev, version 012_bk

  kay@pim:~/src/udev.test$ ./udev -h
  Usage: [-qrVh]
    -q <name>  query database for the specified value
    -p <path>  device path used for query
    -r         print udev root
    -V         print udev version
    -h         print this help text

  kay@pim:~/src/udev.test$ ./udev -r
  /udev/

  kay@pim:~/src/udev.test$ ./udev -q name -p /class/video4linux/video0
  video/webcam0

  kay@pim:~/src/udev.test$ ./udev -q symlink -p /class/video4linux/video0
  camera0 kamera0

  kay@pim:~/src/udev.test$ ./udev -q owner -p /class/video4linux/video0
  501

  kay@pim:~/src/udev.test$ ./udev -r -q name -p /class/video4linux/video0
  /udev/video/webcam0

19 years ago[PATCH] udev - Makefile error
kay.sievers@vrfy.org [Tue, 13 Jan 2004 05:17:22 +0000 (21:17 -0800)]
[PATCH] udev - Makefile error

I get the following error on install:

pim:/home/kay/src/udev.test# make install
sed -e "s:@udevdir@:/udev:" < etc/udev/udev.conf.in > etc/udev/udev.conf
/usr/bin/install -c -d /etc/udev/
/usr/bin/install -c -d /udev
/usr/bin/install -c -d /etc/hotplug.d/default
/usr/bin/install -c -D udev /sbin/udev
/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [install] Error 2

19 years ago[PATCH] LSB init script and other stuff
eike-hotplug@sf-tec.de [Sat, 10 Jan 2004 09:19:57 +0000 (01:19 -0800)]
[PATCH] LSB init script and other stuff

I had too much time during the holidays, so I played a bit with udev. The
changes are like last time mostly on the init stuff. I'm sending you this as
a great diff which is just for comments.

What it does:
-fix a typo in Makefile
-use only one "grep -v" instead of many
-don't include BK-Files into release (shrinks the stuff to 30%!)
-add a new init script which is LSB compliant
-add some flags to choose which one to use
-use /etc/udev/udev.conf in Redhat init script as the source for the udev
directory. If this is not done then the init script may create a directory
which udev itself isn't using (I changed /udev to /Udev to avoid collisions
with /usr and ran into this)
-first check for sysfs_dir before creating udev_root (maybe someone else has
already fixed this, I saw this discussion on lkml)

19 years ago[PATCH] added dri rule to the default config file.
greg@kroah.com [Sat, 10 Jan 2004 09:14:34 +0000 (01:14 -0800)]
[PATCH] added dri rule to the default config file.

19 years ago[PATCH] udev - make exec_callout() reusable
kay.sievers@vrfy.org [Sat, 10 Jan 2004 09:10:50 +0000 (01:10 -0800)]
[PATCH] udev - make exec_callout() reusable

Here is a patch that switches exec_callout() to be reusable.
I want it to be callable in a different context.

19 years ago[PATCH] udev - exec status fix for klibc
kay.sievers@vrfy.org [Sat, 10 Jan 2004 09:05:38 +0000 (01:05 -0800)]
[PATCH] udev - exec status fix for klibc

Here is a patch to remove the ifdef's and fix klibc instead.

19 years ago[PATCH] fix Silly udev script
kay.sievers@vrfy.org [Sat, 10 Jan 2004 09:04:13 +0000 (01:04 -0800)]
[PATCH] fix Silly udev script

Hey, this is funny.
I couldn't resist to give it a try and we need a few changes:

  - it's %2c otherwise nearly all my CD's are "good", but sure I also have bad ones :)
  - remove the node first, cause get_cddb() dies and leaves the old one there
  - remove spaces in name, cause this is our separator

/udev/
|-- The_Cure-The_Peel_Sessions
|-- cdrom -> ./The_Cure-The_Peel_Sessions
|-- hda
|-- hda1
|-- hda2
|-- hda4

19 years ago[PATCH] added init.d udev script for debian
greg@kroah.com [Sat, 10 Jan 2004 09:02:44 +0000 (01:02 -0800)]
[PATCH] added init.d udev script for debian

Thanks to Mathieu Segaud <matt@minas-morgul.org> for the file.

19 years ago[PATCH] udev 012 old gcc fixup
tiggi@infa.abo.fi [Sat, 10 Jan 2004 08:59:55 +0000 (00:59 -0800)]
[PATCH] udev 012 old gcc fixup

Hello,
without this patch:
wolf@duel:/tmp/ud/udev-012>gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
cannot compile udev.

19 years ago[PATCH] add a script that tests the IGNORE rule
greg@kroah.com [Sat, 10 Jan 2004 08:58:35 +0000 (00:58 -0800)]
[PATCH] add a script that tests the IGNORE rule

Can't figure out how to test for "nothing" in the udev-test.pl script framework.

19 years ago[PATCH] add IGNORE rule type
christophe@saout.de [Sat, 10 Jan 2004 08:55:28 +0000 (00:55 -0800)]
[PATCH] add IGNORE rule type

On Wed, Dec 31, 2003 at 11:24:53AM -0800, Greg KH wrote:

> > There should be a possibility to tell udev not to create a device node.
> >
> > device-mapper: Usually set up by libdevmapper (or EVMS tools) which
> > creates the device node on its own under /dev/mapper/<name>.
> >
> > With udev a second device is created named /dev/dm-<minor> which is not
> > really needed.
>
> Good point.  Ok, I'll agree with you.  Care to make up a patch for this
> kind of feature?

Yes, I can try.

There was no way to tell not to do anything so I created one. Errors
are signalled via negative return values, so I thought that a positive,
non-zero one could mean to ignore the device. I don't like it but
perhaps you have a better solution.

19 years ago[PATCH] small cleanup
christophe@saout.de [Sat, 10 Jan 2004 08:54:33 +0000 (00:54 -0800)]
[PATCH] small cleanup

This one is nothing important, just add some quotes to be more consistent
with the rest and make sure that the return value is positive (since the
error return values are negative). Hmm?

19 years ago[PATCH] add silly script that names cdrom drives based on the cd in them.
greg@kroah.com [Tue, 6 Jan 2004 09:11:53 +0000 (01:11 -0800)]
[PATCH] add silly script that names cdrom drives based on the cd in them.

19 years ago[PATCH] add cdrom rule for ide cdrom.
greg@kroah.com [Tue, 6 Jan 2004 09:11:15 +0000 (01:11 -0800)]
[PATCH] add cdrom rule for ide cdrom.

Rule came from Kay

19 years ago[PATCH] replace list_for_each with list_for_each_entry, saving a few lines of code.
greg@kroah.com [Sun, 4 Jan 2004 16:18:16 +0000 (08:18 -0800)]
[PATCH] replace list_for_each with list_for_each_entry, saving a few lines of code.

19 years ago[PATCH] add a blacklist of class devices we do not want to look at.
greg@kroah.com [Sun, 4 Jan 2004 16:08:26 +0000 (08:08 -0800)]
[PATCH] add a blacklist of class devices we do not want to look at.

Thanks to Kay for the original patch, and the idea.

19 years ago[PATCH] 012_bk change.
greg@kroah.com [Sat, 3 Jan 2004 13:37:27 +0000 (05:37 -0800)]
[PATCH] 012_bk change.

19 years ago[PATCH] v012 release 012
greg@kroah.com [Thu, 1 Jan 2004 05:46:59 +0000 (21:46 -0800)]
[PATCH] v012 release

19 years ago[PATCH] minor grammer fixes for the udev_vs_devfs document
greg@kroah.com [Thu, 1 Jan 2004 05:22:35 +0000 (21:22 -0800)]
[PATCH] minor grammer fixes for the udev_vs_devfs document

Thanks to Seemant Kulleen <seemant@gentoo.org> for pointing them out.

19 years ago[PATCH] move the dbus config file to etc/dbus-1/system.d/
greg@kroah.com [Thu, 1 Jan 2004 04:38:14 +0000 (20:38 -0800)]
[PATCH] move the dbus config file to etc/dbus-1/system.d/

19 years ago[PATCH] move the config files to etc/udev to clean up main directory a bit.
greg@kroah.com [Thu, 1 Jan 2004 04:35:02 +0000 (20:35 -0800)]
[PATCH] move the config files to etc/udev to clean up main directory a bit.

19 years ago[PATCH] add Gentoo versions of the rules and permissions files.
greg@kroah.com [Thu, 1 Jan 2004 04:28:15 +0000 (20:28 -0800)]
[PATCH] add Gentoo versions of the rules and permissions files.

19 years ago[PATCH] if using glibc, link dynamically, as no one like 500Kb udev binaries...
greg@kroah.com [Thu, 1 Jan 2004 03:11:04 +0000 (19:11 -0800)]
[PATCH] if using glibc, link dynamically, as no one like 500Kb udev binaries...

19 years ago[PATCH] mention user callable udev + options in man page
kay.sievers@vrfy.org [Wed, 31 Dec 2003 08:34:51 +0000 (00:34 -0800)]
[PATCH] mention user callable udev + options in man page

As usual, here is the corresponding man page update and
a small text correction.

19 years ago[PATCH] udev spec file update
rml@ximian.com [Wed, 31 Dec 2003 08:34:49 +0000 (00:34 -0800)]
[PATCH] udev spec file update

More udev spec file updates.  This one from David Zeuthen.

Attached patch, against udev-011, makes sure we pass USE_DBUS and also
makes sure we install the D-BUS policy file, if the %{dbus} option is
set.

19 years ago[PATCH] minor change to udev_vs_devfs document.
greg@kroah.com [Wed, 31 Dec 2003 08:28:05 +0000 (00:28 -0800)]
[PATCH] minor change to udev_vs_devfs document.

19 years ago[PATCH] added udev vs devfs supid document to the tree.
greg@kroah.com [Wed, 31 Dec 2003 08:25:01 +0000 (00:25 -0800)]
[PATCH] added udev vs devfs supid document to the tree.

19 years ago[PATCH] extras multipath update
christophe.varoqui@free.fr [Wed, 31 Dec 2003 06:39:37 +0000 (22:39 -0800)]
[PATCH] extras multipath update

incremental to 0.0.12-1,

* check hotplug event refers to a block device; if not exit early

19 years ago[PATCH] extras multipath update
christophe.varoqui@free.fr [Wed, 31 Dec 2003 06:36:17 +0000 (22:36 -0800)]
[PATCH] extras multipath update

2003-12-29 multipath-012
        * refresh doc
        * add the uninstall target in Makefile
        * /sbin/multipath, not /root/multipath in hotplug agent

19 years ago[PATCH] make udev user callable to query the database
kay.sievers@vrfy.org [Wed, 31 Dec 2003 06:31:37 +0000 (22:31 -0800)]
[PATCH] make udev user callable to query the database

Here is a slightly better version that prints the usage if a unknown option is given:
  kay@pim:~/src/udev.kay$ ./udev -x
  ./udev: invalid option -- x
  Usage: [-qrVh]
    -q arg     query database
    -r         print udev root
    -V         print udev version
    -h         print this help text

> Here is a patch that makes it possible to call udev with options on the command line.
> Valid options are for now:
>
> -V for the udev version:
>     kay@pim:~/src/udev.kay$ ./udev -V
>     udev, version 011_bk
>
> -r for the udev root:
>     kay@pim:~/src/udev.kay$ ./udev -r
>     /udev/
>
> -q to query the database with the sysfs path for the name of the node:
>     kay@pim:~/src/udev.kay$ ./udev -q /class/video4linux/video0
>     test/video/webcam0

19 years ago[PATCH] depend on all .h files
kay.sievers@vrfy.org [Wed, 31 Dec 2003 06:25:12 +0000 (22:25 -0800)]
[PATCH] depend on all .h files

Let the build depend on all header files.

19 years ago[PATCH] make symlink work properly if there is already a file in its place
azarah@nosferatu.za.org [Tue, 30 Dec 2003 09:33:35 +0000 (01:33 -0800)]
[PATCH] make symlink work properly if there is already a file in its place

If a file that is not a symlink (node, socket, fifo, etc) already
exist where udev need to create a symlink, symlink() fails.  This
patch basically test for an existing file, and unlink it.

19 years ago[PATCH] cleanup namedev_parse debug text
kay.sievers@vrfy.org [Tue, 30 Dec 2003 09:29:25 +0000 (01:29 -0800)]
[PATCH] cleanup namedev_parse debug text

I missed a few spaces with my recent change.

19 years ago[PATCH] move the signal handling registration to after we have initialized enough...
greg@kroah.com [Tue, 30 Dec 2003 09:29:16 +0000 (01:29 -0800)]
[PATCH] move the signal handling registration to after we have initialized enough stuff.

19 years ago[PATCH] introduce signal handler
mbuesch@freenet.de [Tue, 30 Dec 2003 09:21:06 +0000 (01:21 -0800)]
[PATCH] introduce signal handler

Here's a patch that adds a signal handler to udev to
clean up the environment (close the sysbus and close
the database) on kill-signals.

19 years ago[PATCH] Fix udev gcc-2.95.4 compat
azarah@nosferatu.za.org [Tue, 30 Dec 2003 09:18:28 +0000 (01:18 -0800)]
[PATCH] Fix udev gcc-2.95.4 compat

Two liner to get gcc-2.95.4 to compile udev.

19 years ago[PATCH] extend exec_program[]
kay.sievers@vrfy.org [Tue, 30 Dec 2003 09:08:02 +0000 (01:08 -0800)]
[PATCH] extend exec_program[]

extend exec_program size to 100 chars cause:

  PROGRAM="/home/kay/src/udev.kay/extras/ide-devfs.sh %k %b %n"

is too long :)

19 years ago[PATCH] ide-devfs.sh update
kay.sievers@vrfy.org [Tue, 30 Dec 2003 09:08:00 +0000 (01:08 -0800)]
[PATCH] ide-devfs.sh update

Attached is a patch for ide-devfs.sh,
The script is merged with the one from Martin Schlemmer, and cleaned up
by him, to create both types of symlinks with one single rule:

  CALLOUT, BUS="ide", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", ID="hd*", NAME="%1c", SYMLINK="%2c %3c"

/udev/
|-- cdroms
|   `-- cdrom0 -> ../hdc
|-- discs
|   |-- disc0
|   |   |-- disc -> ../../hda
|   |   |-- part1 -> ../../hda1
|   |   |-- part2 -> ../../hda2
|   |   `-- part4 -> ../../hda4
|   |-- disc1
|   |   |-- disc -> ../../hdb
|   |   `-- part1 -> ../../hdb1
|   `-- disc2
|       |-- disc -> ../../hde
|       `-- part1 -> ../../hde1
|-- hda
|-- hda1
|-- hda2
|-- hda4
|-- hdb
|-- hdb1
|-- hdc
|-- hde
|-- hde1
`-- ide
    |-- host0
    |   |-- bus0
    |   |   |-- target0
    |   |   |   `-- lun0
    |   |   |       |-- disc -> ../../../../../hda
    |   |   |       |-- part1 -> ../../../../../hda1
    |   |   |       |-- part2 -> ../../../../../hda2
    |   |   |       `-- part4 -> ../../../../../hda4
    |   |   `-- target1
    |   |       `-- lun0
    |   |           |-- disc -> ../../../../../hdb
    |   |           `-- part1 -> ../../../../../hdb1
    |   `-- bus1
    |       `-- target0
    |           `-- lun0
    |               `-- cd -> ../../../../../hdc
    `-- host2
        `-- bus0
            `-- target0
                `-- lun0
                    |-- disc -> ../../../../../hde
                    `-- part1 -> ../../../../../hde1

19 years ago[PATCH] fix for apply_format()
kay.sievers@vrfy.org [Tue, 30 Dec 2003 09:07:59 +0000 (01:07 -0800)]
[PATCH] fix for apply_format()

fix possible NULL pointer in '%c' callout substitution
and cleanup '%D' debug text

19 years ago[PATCH] check for empty symlink string
kay.sievers@vrfy.org [Tue, 30 Dec 2003 09:07:57 +0000 (01:07 -0800)]
[PATCH] check for empty symlink string

Attached is a patch for udev-add.c to ignore empty symlink string parts.
Issue was brought up by ide-devfs.sh with only one symlink returned, while two are expected.

19 years ago[PATCH] 'ide' missing in bus_files[]
kay.sievers@vrfy.org [Tue, 30 Dec 2003 09:07:55 +0000 (01:07 -0800)]
[PATCH] 'ide' missing in bus_files[]

my syslog want's to contact you :)

  Dec 25 20:37:48 pim udev[2274]: wait_for_device_to_initialize: Did not find bus type 'ide' on list of bus_id_files, contact greg@kroah.com

We need to put 'ide' to the bus_files array,
don't know which file to use...

19 years ago[PATCH] udev.permissions.debian - forgot the dm nodes.
greg@kroah.com [Tue, 30 Dec 2003 09:02:59 +0000 (01:02 -0800)]
[PATCH] udev.permissions.debian - forgot the dm nodes.

19 years ago[PATCH] update the udev.permissions.debian file with new entries.
greg@kroah.com [Tue, 30 Dec 2003 09:01:05 +0000 (01:01 -0800)]
[PATCH] update the udev.permissions.debian file with new entries.

Thanks to Mathieu Segaud <matt@minas-morgul.org> for the information

19 years ago[PATCH] added udev.init script for the Linux From Scratch project.
greg@kroah.com [Tue, 30 Dec 2003 08:58:31 +0000 (00:58 -0800)]
[PATCH] added udev.init script for the Linux From Scratch project.

Thanks to Michael Buesch <mbuesch@freenet.de> for providing it.

19 years ago[PATCH] small trivial cleanup of latest changes
kay.sievers@vrfy.org [Tue, 30 Dec 2003 08:54:29 +0000 (00:54 -0800)]
[PATCH] small trivial cleanup of latest changes

here is a patch for a typo in the man page, a whitespace cleanup
and a replace for the magic hex ASCII in char operations.

19 years ago[PATCH] 011_bk tag
greg@kroah.com [Tue, 30 Dec 2003 08:52:16 +0000 (00:52 -0800)]
[PATCH] 011_bk tag

19 years ago[PATCH] v011 release 011
greg@kroah.com [Thu, 25 Dec 2003 08:38:45 +0000 (00:38 -0800)]
[PATCH] v011 release

19 years ago[PATCH] add documentation about the BUS key being optional for the LABEL rule.
greg@kroah.com [Thu, 25 Dec 2003 08:35:09 +0000 (00:35 -0800)]
[PATCH] add documentation about the BUS key being optional for the LABEL rule.

19 years ago[PATCH] add tests for LABEL rule with a device that has no bus.
greg@kroah.com [Thu, 25 Dec 2003 08:33:56 +0000 (00:33 -0800)]
[PATCH] add tests for LABEL rule with a device that has no bus.

19 years ago[PATCH] Don't require the BUS value for the LABEL rule.
greg@kroah.com [Thu, 25 Dec 2003 08:33:27 +0000 (00:33 -0800)]
[PATCH] Don't require the BUS value for the LABEL rule.

19 years ago[PATCH] If a LABEL rule has a BUS id, then we must check to see if the device is...
greg@kroah.com [Thu, 25 Dec 2003 08:33:00 +0000 (00:33 -0800)]
[PATCH] If a LABEL rule has a BUS id, then we must check to see if the device is on a bus.

19 years ago[PATCH] add documentation about the BUS key being optional for the CALLOUT rule.
greg@kroah.com [Thu, 25 Dec 2003 08:08:55 +0000 (00:08 -0800)]
[PATCH] add documentation about the BUS key being optional for the CALLOUT rule.

19 years ago[PATCH] If a CALLOUT rule has a BUS id, then we must check to see if the device is...
greg@kroah.com [Thu, 25 Dec 2003 08:05:28 +0000 (00:05 -0800)]
[PATCH] If a CALLOUT rule has a BUS id, then we must check to see if the device is on a bus.

Thanks to Martin Schlemmer <azarah@nosferatu.za.org> for pointing this out.

19 years ago[PATCH] Don't require the BUS value for the CALLOUT rule.
greg@kroah.com [Thu, 25 Dec 2003 08:03:56 +0000 (00:03 -0800)]
[PATCH] Don't require the BUS value for the CALLOUT rule.

19 years ago[PATCH] add test for callout rule with a device that has no bus.
greg@kroah.com [Thu, 25 Dec 2003 07:56:54 +0000 (23:56 -0800)]
[PATCH] add test for callout rule with a device that has no bus.

19 years ago[PATCH] 010_bk stamp
greg@kroah.com [Thu, 25 Dec 2003 07:56:29 +0000 (23:56 -0800)]
[PATCH] 010_bk stamp

19 years ago[PATCH] added different build options to the rpm udev.spec file.
greg@kroah.com [Thu, 25 Dec 2003 07:38:58 +0000 (23:38 -0800)]
[PATCH] added different build options to the rpm udev.spec file.

19 years ago[PATCH] fix udev sed Makefile usage
svetljo@gmx.de [Thu, 25 Dec 2003 07:01:40 +0000 (23:01 -0800)]
[PATCH] fix udev sed Makefile usage

19 years ago[PATCH] proper cleanup on udevdb_init() failure
mbuesch@freenet.de [Thu, 25 Dec 2003 06:58:16 +0000 (22:58 -0800)]
[PATCH] proper cleanup on udevdb_init() failure

Seems like we need the following patch to do
proper sysbus cleanup, if udevdb_init() fails.

19 years ago[PATCH] patch udev 009-010 rpm spec file
mh@nadir.org [Thu, 25 Dec 2003 06:54:39 +0000 (22:54 -0800)]
[PATCH] patch udev 009-010 rpm spec file

the following problem was introduced with udev 009:

[root@claw packages]# rpm -Uvh ~mh/rpm/RPMS/ppc/udev-010-1.ppc.rpm
Preparing...########################################### [100%]
   1:udev   ########################################### [100%]
error: unpacking of archive failed on file /usr/share/doc/udev-010/COPYING;3fe8a8e3: cpio: open failed - Permission denied

it's because the mode of the directory /usr/share/doc/udev-010/ is
0644. This is with yellodog-3.0.

the following patch fixes it:

19 years ago[PATCH] add pci to the bus_files list.
greg@kroah.com [Thu, 25 Dec 2003 06:51:16 +0000 (22:51 -0800)]
[PATCH] add pci to the bus_files list.

19 years ago[PATCH] check for empty line a bit better in the parser.
greg@kroah.com [Thu, 25 Dec 2003 05:48:18 +0000 (21:48 -0800)]
[PATCH] check for empty line a bit better in the parser.

Thanks to Mitch <mitch@0bits.com> for pointing this out.

19 years ago[PATCH] more init script cleanups, the stop target now calls udev to cleanup instead...
greg@kroah.com [Thu, 25 Dec 2003 05:47:14 +0000 (21:47 -0800)]
[PATCH] more init script cleanups, the stop target now calls udev to cleanup instead of just removing the whole /udev directory.

19 years ago[PATCH] make udev init script run udev in the background to let startup go much faster
greg@kroah.com [Thu, 25 Dec 2003 05:25:40 +0000 (21:25 -0800)]
[PATCH] make udev init script run udev in the background to let startup go much faster

19 years ago[PATCH] fix long delay for all devices in namedev
greg@kroah.com [Thu, 25 Dec 2003 03:44:19 +0000 (19:44 -0800)]
[PATCH] fix long delay for all devices in namedev

Now we only sleep if we can't find the device file, and we have
a hack to sleep for 1 second if we are on a partition.  This will be
removed when the libsysfs change gets made...

19 years ago[PATCH] v010 release 010
greg@kroah.com [Tue, 23 Dec 2003 08:33:29 +0000 (00:33 -0800)]
[PATCH] v010 release

19 years ago[PATCH] fix udev-test.pl
kay.sievers@vrfy.org [Tue, 23 Dec 2003 07:30:51 +0000 (23:30 -0800)]
[PATCH] fix udev-test.pl

Here is a small fix for udev-test.pl, to print the METHOD also
for the "whitespace config" tests.

  TEST: Handle comment lines in config file (and replace kernel name)
  method '' for 'class/tty/ttyUSB0' expecting node 'visor'
  add: ok    remove: ok

19 years ago[PATCH] small cleanup udev-remove.c
kay.sievers@vrfy.org [Tue, 23 Dec 2003 06:47:58 +0000 (22:47 -0800)]
[PATCH] small cleanup udev-remove.c

Here is a small cleanup. It replaces the malloc in udev-remove.c
with a struct, like we do in udev-add.c

19 years ago[PATCH] fix complier warning in namedev.c
greg@kroah.com [Tue, 23 Dec 2003 06:45:43 +0000 (22:45 -0800)]
[PATCH] fix complier warning in namedev.c

19 years ago[PATCH] add documentation for the new '%k' modifier (kernel name replacement)
greg@kroah.com [Tue, 23 Dec 2003 06:40:19 +0000 (22:40 -0800)]
[PATCH] add documentation for the new '%k' modifier (kernel name replacement)

19 years ago[PATCH] add documentation about the multiple sysfs values that are now allowed for...
greg@kroah.com [Tue, 23 Dec 2003 06:36:10 +0000 (22:36 -0800)]
[PATCH] add documentation about the multiple sysfs values that are now allowed for the LABEL rule.

19 years ago[PATCH] add tests for multi-file LABEL rules.
greg@kroah.com [Tue, 23 Dec 2003 06:32:06 +0000 (22:32 -0800)]
[PATCH] add tests for multi-file LABEL rules.

19 years ago[PATCH] add ability to have up to 5 SYSFS_ file/value pairs for the LABEL rule.
greg@kroah.com [Tue, 23 Dec 2003 06:31:35 +0000 (22:31 -0800)]
[PATCH] add ability to have up to 5 SYSFS_ file/value pairs for the LABEL rule.

19 years ago[PATCH] change pgsize
ananth@in.ibm.com [Tue, 23 Dec 2003 04:54:51 +0000 (20:54 -0800)]
[PATCH] change pgsize

In udev-009 and previous releases, for klibc compatibility, the pgsize var
in sysfs_read_attribute() (file sysfs_dir.c under libsysfs) is handcoded
to 0x4000.

Should it not be 4096 bytes (0x1000 in hex) instead of 0x4000 (16k bytes)?