chiark / gitweb /
elogind.git
18 years ago[PATCH] some cleanups due to the need for LABEL rules to use "SYSFS_" now.
greg@kroah.com [Wed, 17 Dec 2003 07:39:44 +0000 (23:39 -0800)]
[PATCH] some cleanups due to the need for LABEL rules to use "SYSFS_" now.

18 years ago[PATCH] don't rely on field order in namedev_parse
kay.sievers@vrfy.org [Wed, 17 Dec 2003 07:36:19 +0000 (23:36 -0800)]
[PATCH] don't rely on field order in namedev_parse

  o change the parsing to get a key from the rule and sort it
    into our list of known keys instead of expecting a special order
  o the key to match a sysfs file must be prependend by 'SYSFS_' now
    to match with the new parsing.
    (The config must be changed, but it's a bit more descriptive too.)
  o put names of fields in define's, like the name of the methods
  o update all tests and the man page

18 years ago[PATCH] remove udev from runlevels on uninstall
rml@ximian.com [Wed, 17 Dec 2003 07:31:16 +0000 (23:31 -0800)]
[PATCH] remove udev from runlevels on uninstall

I guess we should run 'chkconfig --del udev' on removal to clear out the
now-stale udev entries, if any.

18 years ago[PATCH] install initscript in udev rpm
rml@ximian.com [Wed, 17 Dec 2003 07:30:15 +0000 (23:30 -0800)]
[PATCH] install initscript in udev rpm

Attached patch installs the initscript via 'make install' and adds it to
the RPM package.  The RPM script then runs chkconfig(8) to setup the
initscript to run at the appropriate runlevels.

18 years ago[PATCH] more extras/multipath changes
christophe.varoqui@free.fr [Tue, 16 Dec 2003 07:25:51 +0000 (23:25 -0800)]
[PATCH] more extras/multipath changes

* Make the HW-specific get_unique_id switch pretty
* Prepare to field-test by whitelisting all known fibre array, try to
fetch WWID from the standard EVPD 0x83 off 8 for everyone ... we will
learn from feedback :)

Could you drop a note with the udev-009 release-notes asking for testing
this WWID fetching thing ?

18 years ago[PATCH] get part of callout return string
kay.sievers@vrfy.org [Tue, 16 Dec 2003 06:54:38 +0000 (22:54 -0800)]
[PATCH] get part of callout return string

Try this patch if you like, to get special parts of the callout output.
This beast works now:
CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node *", NAME="%1c", SYMLINK="%2c %3c"

The callout returned string is separated by spaces and is
addressed by the "len" value of the 'c' format char.
Since we support symlinks, this my be useful for other uses of callout too.

  introduce 'len number' for format chars
  the first use is 'c'-the callout return to select a part of the output string like:
  CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node *", NAME="%1c", SYMLINK="%2c %3c"
  (note: first part is requested by len=1, len=0 will return the whole string)
  add a test to udev-test.pl

18 years ago[PATCH] remove '\n' from end of callout return
kay.sievers@vrfy.org [Tue, 16 Dec 2003 06:38:18 +0000 (22:38 -0800)]
[PATCH] remove '\n' from end of callout return

  remove possible newline at end of callout output,
  for easier matching with ID=

18 years ago[PATCH] Add restart target to the etc/init.d/udev script
greg@kroah.com [Tue, 16 Dec 2003 06:25:03 +0000 (22:25 -0800)]
[PATCH] Add restart target to the etc/init.d/udev script

Change made by Rolf Eike Beer <eike-hotplug@sf-tec.de>

18 years ago[PATCH] add init.d/udev to "make install"
eike-hotplug@sf-tec.de [Tue, 16 Dec 2003 06:22:34 +0000 (22:22 -0800)]
[PATCH] add init.d/udev to "make install"

adds /etc/init.d/udev to "make install"

18 years ago[PATCH] add init.d/udev to the spec file
eike-hotplug@sf-tec.de [Tue, 16 Dec 2003 06:22:30 +0000 (22:22 -0800)]
[PATCH] add init.d/udev to the spec file

add /etc/init.d/udev to the SPEC-File and this way to the RPM

18 years ago[PATCH] pre-libsysfs-0.4.0 patch
dsteklof@us.ibm.com [Tue, 16 Dec 2003 05:53:28 +0000 (21:53 -0800)]
[PATCH] pre-libsysfs-0.4.0 patch

I am sending you a pre-release patch. It's everything that's in our
current CVS tree. It adds the functionality you've been looking for. Please
play with this before checking it into your tree, I'd like to know if
it's ok with you or if you find problems. I have tested this out with
test.all and the perl regression test. Let me know what you think.

Still need to do more testing for our work and add some more functions
related to the changes.

I've gone into namedev.c and udev-add.c to make the necessary changes
in line with the library. I have not gone and edited any of the "extras".

Changes:

1) Libsysfs object structures work more as handles now, their included
directories or devices are labeled private. If you need attributes
from a sysfs_class_device, call the available function and don't access
the directory directly. Same holds true for a sysfs_class_device
sysfs_device. Do not access the link directly but call the function
sysfs_get_classdev_device() instead. We only populate entries upon
request, makes things faster and uses less memory.

2) Added sysfs_get_classdev_parent() as requested.

3) Changed getpagesize to sysconf.

4) Added sysfs_refresh_attributes function for refreshing views of
attribute lists. We still need to add refresh for links and subdirs. All
udev needs to do is keep calling sysfs_get_classdev_attr() and that will
internally call the refresh routine.

18 years ago[PATCH] tweak the config file generation portion of the Makefile a bit.
greg@kroah.com [Thu, 11 Dec 2003 16:12:29 +0000 (08:12 -0800)]
[PATCH] tweak the config file generation portion of the Makefile a bit.

18 years ago[PATCH] use udevdir in udev.conf
olh@suse.de [Thu, 11 Dec 2003 16:00:40 +0000 (08:00 -0800)]
[PATCH] use udevdir in udev.conf

udevdir is a define, but udev.conf has a hardcoded path. Maybe this
config file should be generated on the fly, like shown below.

18 years ago[PATCH] change devfs disk name rule from 'disk' to 'disc'
greg@kroah.com [Thu, 11 Dec 2003 06:12:30 +0000 (22:12 -0800)]
[PATCH] change devfs disk name rule from 'disk' to 'disc'

18 years ago[PATCH] man-page mention multiple symlinks
kay.sievers@vrfy.org [Wed, 10 Dec 2003 23:40:08 +0000 (15:40 -0800)]
[PATCH] man-page mention multiple symlinks

As usual, when the stuff gets in the tree - here is a small
man page update and a TODO line removal.

  mention multiple symlinks
  update example with silly symlink rule :)
  shorten example line to have less than 80 chars
  remove "want symlink support" from TODO

18 years ago[PATCH] add vc support to udev.rules.devfs
greg@kroah.com [Wed, 10 Dec 2003 09:14:24 +0000 (01:14 -0800)]
[PATCH] add vc support to udev.rules.devfs

18 years ago[PATCH] added a devfs udev config file from Marco d'Itri <md@Linux.IT>
greg@kroah.com [Wed, 10 Dec 2003 09:10:37 +0000 (01:10 -0800)]
[PATCH] added a devfs udev config file from Marco d'Itri <md@Linux.IT>

18 years ago[PATCH] set default mode to 0600 to be safer.
greg@kroah.com [Wed, 10 Dec 2003 09:05:30 +0000 (01:05 -0800)]
[PATCH] set default mode to 0600 to be safer.

18 years ago[PATCH] Makefile tweaks for the DBUS build.
greg@kroah.com [Wed, 10 Dec 2003 09:02:03 +0000 (01:02 -0800)]
[PATCH] Makefile tweaks for the DBUS build.

18 years ago[PATCH] and more extras/multipath updates
christophe.varoqui@free.fr [Wed, 10 Dec 2003 08:52:04 +0000 (00:52 -0800)]
[PATCH] and more extras/multipath updates

* configure the multipath target with round-robin path selector and
conservative default for a start : yes it makes this release the first
really useful one.
* temporarily disable map creation for single path device due to current
restrictive defaults in the kernel target. Sistina should work it out.
* correct the strncmp logic in blacklist function.

Tested on StorageWorks with 2.6.0-test10-udm1 :

xa-s03:~# ./multipath -v
60001fe1000bdad0000903507109004b (1 0 1 1) /dev/sda op:1 /dev/sda
[HSG80           ]
60001fe1000bdad000090371312100bf (1 0 1 2) /dev/sdb op:1 /dev/sdb
[HSG80           ]
60001fe1000bdad000090371312100c2 (1 0 1 3) /dev/sdc op:1 /dev/sdc
[HSG80           ]
60001fe1000bdad00009037131210067 (1 0 2 1) /dev/sdd op:1 /dev/sdd
[HSG80           ]
60001fe1000bdad000090371312100b3 (1 0 2 2) /dev/sde op:1 /dev/sde
[HSG80           ]
60001fe1000bdad00009035071090024 (1 0 2 3) /dev/sdf op:1 /dev/sdf
[HSG80           ]
600508b4000156d700012000000b0000 (1 0 3 1) /dev/sdg op:1 /dev/sdg
[HSV110 (C)COMPAQ]
600508b4000156c30001200000210000 (1 0 3 2) /dev/sdh op:1 /dev/sdh
[HSV110 (C)COMPAQ]
600508b4000156d700012000000b0000 (1 0 6 1) /dev/sdi op:1 /dev/sdi
[HSV110 (C)COMPAQ]
600508b4000156c30001200000210000 (1 0 6 2) /dev/sdj op:1 /dev/sdj
[HSV110 (C)COMPAQ]

60001fe1000bdad0000903507109004b
 \_(1 0 1 1) /dev/sda op:1 /dev/sda [HSG80           ]
60001fe1000bdad000090371312100bf
 \_(1 0 1 2) /dev/sdb op:1 /dev/sdb [HSG80           ]
60001fe1000bdad000090371312100c2
 \_(1 0 1 3) /dev/sdc op:1 /dev/sdc [HSG80           ]
60001fe1000bdad00009037131210067
 \_(1 0 2 1) /dev/sdd op:1 /dev/sdd [HSG80           ]
60001fe1000bdad000090371312100b3
 \_(1 0 2 2) /dev/sde op:1 /dev/sde [HSG80           ]
60001fe1000bdad00009035071090024
 \_(1 0 2 3) /dev/sdf op:1 /dev/sdf [HSG80           ]
600508b4000156d700012000000b0000
 \_(1 0 3 1) /dev/sdg op:1 /dev/sdg [HSV110 (C)COMPAQ]
 \_(1 0 6 1) /dev/sdi op:1 /dev/sdi [HSV110 (C)COMPAQ]
600508b4000156c30001200000210000
 \_(1 0 3 2) /dev/sdh op:1 /dev/sdh [HSV110 (C)COMPAQ]
 \_(1 0 6 2) /dev/sdj op:1 /dev/sdj [HSV110 (C)COMPAQ]

N|600508b4000156d700012000000b0000 : 0 4194304 multipath 2 2 10
round-robin 2 /dev/sdg 10 2 1 2 /dev/sdi 10 2 1 2
N|600508b4000156c30001200000210000 : 0 20971520 multipath 2 2 10
round-robin 2 /dev/sdh 10 2 1 2 /dev/sdj 10 2 1 2
xa-s03:~# dmsetup ls
600508b4000156c30001200000210000        (254, 1)
600508b4000156d700012000000b0000        (254, 0)
xa-s03:~# ll /dev/mapper/
total 0
brw-------    1 root     root     254,   1 Dec  9 22:57
600508b4000156c30001200000210000
brw-------    1 root     root     254,   0 Dec  9 22:57
600508b4000156d700012000000b0000
crw-------    1 root     root      10,  63 Jul 25 22:48 control
xa-s03:~# dd if=/dev/mapper/600508b4000156c30001200000210000
of=/dev/null bs=1M count=500
500+0 records in
500+0 records out
524288000 bytes transferred in 5.662530 seconds (92589003 bytes/sec)

gee, that pretty fast :)

18 years ago[PATCH] more extras/multipath updates
christophe.varoqui@free.fr [Wed, 10 Dec 2003 08:50:25 +0000 (00:50 -0800)]
[PATCH] more extras/multipath updates

* update the Makefiles to autodetect libgcc.a & gcc includes
"ulibc-style". Factorisation of udevdirs & others niceties
* drop a hint about absent /dev/sd? on failed open() for poor Debian
users who don't imagine their favorite distro with only 16 preconfigured
SCSI device nodes :)

18 years ago[PATCH] allow multiple symlinks
kay.sievers@vrfy.org [Wed, 10 Dec 2003 08:47:00 +0000 (00:47 -0800)]
[PATCH] allow multiple symlinks

Here is a patch to allow the creation of multiple symlinks.
The names must be separated by a space character.

REPLACE, KERNEL="ttyUSB0", NAME="visor", SYMLINK="first-%n second-%n third-%n"

results in:

Dec  9 05:28:51 pim udev[12019]: create_node: mknod(udev-root/visor, 020666, 188, 0)
Dec  9 05:28:51 pim udev[12019]: create_node: symlink 'udev-root/first-0' to node 'visor' requested
Dec  9 05:28:51 pim udev[12019]: create_node: symlink(./visor, udev-root/first-0)
Dec  9 05:28:51 pim udev[12019]: create_node: symlink 'udev-root/second-0' to node 'visor' requested
Dec  9 05:28:51 pim udev[12019]: create_node: symlink(./visor, udev-root/second-0)
Dec  9 05:28:51 pim udev[12019]: create_node: symlink 'udev-root/third-0' to node 'visor' requested
Dec  9 05:28:51 pim udev[12019]: create_node: symlink(./visor, udev-root/third-0)

18 years ago[PATCH] update the FAQ due to the latest devfs mess on lkml and also due to symlinks...
greg@kroah.com [Wed, 10 Dec 2003 08:37:02 +0000 (00:37 -0800)]
[PATCH] update the FAQ due to the latest devfs mess on lkml and also due to symlinks now working.

18 years ago[PATCH] cleanup man & remove symlink comment
kay.sievers@vrfy.org [Wed, 10 Dec 2003 08:30:43 +0000 (00:30 -0800)]
[PATCH] cleanup man & remove symlink comment

  remove "want symlinks" text from udev-add.c
  mention SYMLINK in man page
  man page format cleanup
  man page example for SYMLINK

18 years ago[PATCH] document the different Makefile config options that we have.
greg@kroah.com [Tue, 9 Dec 2003 02:08:52 +0000 (18:08 -0800)]
[PATCH] document the different Makefile config options that we have.

18 years ago[PATCH] change USE_DBUS to DBUS in Makefile, and disable it by default as it's still...
greg@kroah.com [Tue, 9 Dec 2003 02:01:56 +0000 (18:01 -0800)]
[PATCH] change USE_DBUS to DBUS in Makefile, and disable it by default as it's still to hard to build on all systems.

18 years ago[PATCH] fix formatting of udev_dbus.c to use tabs. Also get it to build properly...
greg@kroah.com [Tue, 9 Dec 2003 02:01:28 +0000 (18:01 -0800)]
[PATCH] fix formatting of udev_dbus.c to use tabs. Also get it to build properly now.

18 years ago[PATCH] move all of the DBUS logic into one file and remove all of the #ifdef crud...
greg@kroah.com [Mon, 8 Dec 2003 17:40:40 +0000 (09:40 -0800)]
[PATCH] move all of the DBUS logic into one file and remove all of the #ifdef crud from the main code.

18 years ago[PATCH] D-BUS patch for udev-008
david@fubar.dk [Mon, 8 Dec 2003 17:19:19 +0000 (09:19 -0800)]
[PATCH] D-BUS patch for udev-008

Attached is a patch against udev-008 to send out a D-BUS message when a
device node is added or removed.

Using D-BUS lingo, udev acquires the org.kernel.udev service and sends
out a NodeCreated or NodeDeleted signal on the
org.kernel.udev.NodeMonitor interface. Each signal carries two
parameters: the node in question and the corresponding sysfs path.

[Note: the D-BUS concepts of service, interface, object can be a bit
confusing at first glance]

An example program listening for these messages looks like this

#!/usr/bin/python

import dbus
import gtk

def udev_signal_received(dbus_iface, member, service, object_path, message):
    [filename, sysfs_path] = message.get_args_list()
    if member=='NodeCreated':
        print 'Node %s created for %s'%(filename, sysfs_path)
    elif member=='NodeDeleted':
        print 'Node %s deleted for %s'%(filename, sysfs_path)

def main():
    bus = dbus.Bus(dbus.Bus.TYPE_SYSTEM)
    bus.add_signal_receiver(udev_signal_received,
                            'org.kernel.udev.NodeMonitor',  # interface
                            'org.kernel.udev',              # service
                            '/org/kernel/udev/NodeMonitor') # object

    gtk.mainloop()

if __name__ == '__main__':
    main()

and this is the output when hot-plugging some usb-storage.

[david@laptop udev-008]$ ~/node_monitor.py
Node /udev/sda created for /block/sda
Node /udev/sda1 created for /block/sda/sda1
Node /udev/sda1 deleted for /block/sda/sda1
Node /udev/sda deleted for /block/sda

The patch requires D-BUS 0.20 or later while the python example program
requires D-BUS from CVS as I only recently applied a patch against the
python bindings.

18 years ago[PATCH] experimental (very simple) SYMLINK creation
kay.sievers@vrfy.org [Sun, 7 Dec 2003 17:12:07 +0000 (09:12 -0800)]
[PATCH] experimental (very simple) SYMLINK creation

> > here is a experimental symlink creation patch - for discussion,
> > in which direction we should go.
> > It is possible now to define SYMLINK= after the NAME= in udev.rules.
> > The link is relative to the node, but the path is not optimized now
> > if the node and the link are in the same nested directory.
> > Only one link is supported, cause i need to sleep now :)
> >
> > 06-simple-symlink-creation.diff
> >   simple symlink creation
> >   reorganized udev-remove to have access to the symlink field
> >   subdir creation/removal are functions now
> >   udev-test.pl tests for link creation/removal

Here is a new version with relative link target path optimization
an better tests in udev-test.pl:

LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="1/2/a/b/node", SYMLINK="1/2/c/d/symlink"

  Dec  7 06:48:34 pim udev[13789]: create_node: symlink 'udev-root/1/2/c/d/symlink' to node '1/2/a/b/node' requested
  Dec  7 06:48:34 pim udev[13789]: create_path: created 'udev-root/1/2/c'
  Dec  7 06:48:34 pim udev[13789]: create_path: created 'udev-root/1/2/c/d'
  Dec  7 06:48:34 pim udev[13789]: create_node: symlink(../../a/b/node, udev-root/1/2/c/d/symlink)

18 years ago[PATCH] better allow builds of extras programs under udev
patmans@us.ibm.com [Sun, 7 Dec 2003 17:04:49 +0000 (09:04 -0800)]
[PATCH] better allow builds of extras programs under udev

Here is an improved version of the patch that enables builds of the extras
progams for the targets all, clean, install, and uninstall, and passes
down the "prefix" for use by install and uninstall.

This patch enables building of the "extras" programs using the same build
environment as udev (i.e. build with udev's versions of klibc and
sysfsutils).

For example, build scsi_id and udev via:

make EXTRAS=extras/scsi_id

Build scsi_id and udev with klibc via:

make KLIBC=true EXTRAS=extras/scsi_id

18 years ago[PATCH] update udev extras/scsi_id to version 0.2
patmans@us.ibm.com [Sun, 7 Dec 2003 16:55:40 +0000 (08:55 -0800)]
[PATCH] update udev extras/scsi_id to version 0.2

This patch updates scsi_id under udev from version 0.1 to version 0.2.

18 years ago[PATCH] yet more extras/multipath
christophe.varoqui@free.fr [Sun, 7 Dec 2003 16:50:19 +0000 (08:50 -0800)]
[PATCH] yet more extras/multipath

* implement a reschedule flag in /var/run. Last thing the prog do before
exit is check if a call to multipath was done (but canceled by
/var/run/multipath.run check) during its execution. If so restart the
main loop.
* implement a blacklist of sysfs bdev to not bother with for now (hd,
md, dm, sr, scd, ram, raw). This avoid sending SG_IO to unappropiate
devices.

Compiles & survive "while true;do (./multipath -v &);done"

18 years ago[PATCH] more extras/multipath updates
christophe.varoqui@free.fr [Sun, 7 Dec 2003 16:48:23 +0000 (08:48 -0800)]
[PATCH] more extras/multipath updates

* Adds a /var/run/multipath.run handling to avoid simultaneous runs.
* Remove a commented-out "printf"

18 years ago[PATCH] extras/multipath update
christophe.varoqui@free.fr [Sun, 7 Dec 2003 16:44:59 +0000 (08:44 -0800)]
[PATCH] extras/multipath update

here is the next update which brings this multipath to the state i'm not
ashamed of it being in udev :)

* drop a libdevmapper copy in extras/multipath; maybe discussions w/
Sistina folks will bring a better solution in the future.
* drop a putchar usage in libdevmapper to compile cleanly with klibc
* drop another such usage of my own in main.c
* massage the Makefile to compile libdevmapper against klibc
* use "ld" to produce the binary rather than "gcc -static"
* stop being stupid w/ uneeded major, minor & dev in main.c:dm_mk_node()
* reverse to creating striped target for now because the multipath
target is more hairy than expected initialy
* push the version code to 009 to be in synch w/ udev

builds & run here.
binary size is 43ko, which is fairly gratifying after all the efforts
I've put to compiling it with klibc :)

18 years ago[PATCH] man page beauty
kay.sievers@vrfy.org [Fri, 5 Dec 2003 03:22:53 +0000 (19:22 -0800)]
[PATCH] man page beauty

I've never seen any project where the documentation is in sync with the
code at this early stage. Nice! So here is the patch to make it extra perfect :)

  remove random indent to be consistent
  style is "shell style"
  s/wildcard/pattern/
  mention negation char in character class

18 years ago[PATCH] pattern match for label method
kay.sievers@vrfy.org [Fri, 5 Dec 2003 03:21:31 +0000 (19:21 -0800)]
[PATCH] pattern match for label method

  switch LABEL search to pattern match
  add a test for pattern match in LABEL
  remove useless rule from udev.rules

18 years ago[PATCH] a bug in linefeed removal
kay.sievers@vrfy.org [Fri, 5 Dec 2003 03:21:27 +0000 (19:21 -0800)]
[PATCH] a bug in linefeed removal

While I was adding pattern match to the LABEL method i hit a bug.
We modify a string returned from libsysfs, so with every iteration is is
truncated by one char:

Dec  4 02:27:16 pim udev[23307]: do_label: dev->bus='scsi' sysfs_device->bus='scsi'
Dec  4 02:27:16 pim udev[23307]: do_label: look for device attribute 'vendor'
Dec  4 02:27:16 pim udev[23307]: do_label: xxx 'IBM-ESXS '
Dec  4 02:27:16 pim udev[23307]: do_label: compare attribute 'vendor' value 'IBM-ESX' with '?IBM-ESXS'
Dec  4 02:27:16 pim udev[23307]: do_label: dev->bus='scsi' sysfs_device->bus='scsi'
Dec  4 02:27:16 pim udev[23307]: do_label: look for device attribute 'vendor'
Dec  4 02:27:16 pim udev[23307]: do_label: xxx 'IBM-ESX'
Dec  4 02:27:16 pim udev[23307]: do_label: compare attribute 'vendor' value 'IBM-ES' with 'IBM-ESXS?'
Dec  4 02:27:16 pim udev[23307]: do_label: dev->bus='scsi' sysfs_device->bus='scsi'
Dec  4 02:27:16 pim udev[23307]: do_label: look for device attribute 'vendor'
Dec  4 02:27:16 pim udev[23307]: do_label: xxx 'IBM-ES'
Dec  4 02:27:16 pim udev[23307]: do_label: compare attribute 'vendor' value 'IBM-E' with 'IBM-ES??'
Dec  4 02:27:16 pim udev[23307]: do_label: dev->bus='scsi' sysfs_device->bus='scsi'
Dec  4 02:27:16 pim udev[23307]: do_label: look for device attribute 'vendor'
Dec  4 02:27:16 pim udev[23307]: do_label: xxx 'IBM-E'
Dec  4 02:27:16 pim udev[23307]: do_label: compare attribute 'vendor' value 'IBM-' with 'IBM-ESXSS'

I changed the behavior to remove only the line feed.

03-bug-in-linefeed-removal.diff
  remove only the line feed from string not every last char

18 years ago[PATCH] 008_bk mark
greg@kroah.com [Fri, 5 Dec 2003 03:21:10 +0000 (19:21 -0800)]
[PATCH] 008_bk mark

18 years ago[PATCH] v008 release 008
greg@kroah.com [Fri, 5 Dec 2003 02:01:29 +0000 (18:01 -0800)]
[PATCH] v008 release

18 years ago[PATCH] update ChangeLog for v008
greg@kroah.com [Thu, 4 Dec 2003 05:57:12 +0000 (21:57 -0800)]
[PATCH] update ChangeLog for v008

18 years ago[PATCH] fix up some duplicated function compiler warnings in libsysfs
greg@kroah.com [Thu, 4 Dec 2003 05:51:37 +0000 (21:51 -0800)]
[PATCH] fix up some duplicated function compiler warnings in libsysfs

18 years ago[PATCH] fix some compiler warnings in the tdb code.
greg@kroah.com [Thu, 4 Dec 2003 05:45:20 +0000 (21:45 -0800)]
[PATCH] fix some compiler warnings in the tdb code.

18 years ago[PATCH] Added Kay's name to the man page.
greg@kroah.com [Thu, 4 Dec 2003 03:27:24 +0000 (19:27 -0800)]
[PATCH] Added Kay's name to the man page.

18 years ago[PATCH] update the wildcard documentation in the man page to show the new styles...
greg@kroah.com [Thu, 4 Dec 2003 03:26:02 +0000 (19:26 -0800)]
[PATCH] update the wildcard documentation in the man page to show the new styles supported.

18 years ago[PATCH] fix permission handling logic
greg@kroah.com [Thu, 4 Dec 2003 02:33:58 +0000 (18:33 -0800)]
[PATCH] fix permission handling logic

Now we can handle wildcards properly within the permission file.

18 years ago[PATCH] enable default_mode ability to actually build
greg@kroah.com [Thu, 4 Dec 2003 02:30:49 +0000 (18:30 -0800)]
[PATCH] enable default_mode ability to actually build

18 years ago[PATCH] add support for the default_mode variable, as it is documented...
greg@kroah.com [Thu, 4 Dec 2003 01:41:02 +0000 (17:41 -0800)]
[PATCH] add support for the default_mode variable, as it is documented...

18 years ago[PATCH] show permissions and groups in the label_test
greg@kroah.com [Thu, 4 Dec 2003 01:37:29 +0000 (17:37 -0800)]
[PATCH] show permissions and groups in the label_test

18 years ago[PATCH] remove some items off of the TODO list, as they are now done.
greg@kroah.com [Wed, 3 Dec 2003 16:18:14 +0000 (08:18 -0800)]
[PATCH] remove some items off of the TODO list, as they are now done.

18 years ago[PATCH] fix up the tests to work without all of the environ variables.
greg@kroah.com [Wed, 3 Dec 2003 16:13:53 +0000 (08:13 -0800)]
[PATCH] fix up the tests to work without all of the environ variables.

18 years ago[PATCH] get rid of the majority of the debug environment variables.
greg@kroah.com [Wed, 3 Dec 2003 16:13:11 +0000 (08:13 -0800)]
[PATCH] get rid of the majority of the debug environment variables.

Now there are only 3 valid environment test variables.  The rest can be
specified with the config file.

18 years ago[PATCH] pattern matching for namedev
kay.sievers@vrfy.org [Wed, 3 Dec 2003 14:22:53 +0000 (06:22 -0800)]
[PATCH] pattern matching for namedev

As promised yesterday, here is a patch to implement a more advanced
pattern matching instead of the simple '*'.

We can remove the "tty"="tty" line from udev.rules now and
replace "tty*" by "tty[0-9]*" to catch only the vc's.

  implement pattern matching in namedev
  '*'  - to match zero or more chars
  '?'  - to match exactly one char
  '[]' - character classes with ranges '[0-9]'and negation [!A]

18 years ago[PATCH] Update the man page to show the new config file, it's format, and how to...
greg@kroah.com [Wed, 3 Dec 2003 09:09:48 +0000 (01:09 -0800)]
[PATCH] Update the man page to show the new config file, it's format, and how to use it.

wow, update the docs to keep in line with reality, what a concept...

18 years ago[PATCH] fix up the tests to support the rules file name change
greg@kroah.com [Wed, 3 Dec 2003 09:09:05 +0000 (01:09 -0800)]
[PATCH] fix up the tests to support the rules file name change

18 years ago[PATCH] add support for a main udev config file, udev.conf.
greg@kroah.com [Wed, 3 Dec 2003 09:08:46 +0000 (01:08 -0800)]
[PATCH] add support for a main udev config file, udev.conf.

the older udev.config file is now called udev.rules.
This allows us to better control configuration values, and move away from
the environment variables.

18 years ago[PATCH] turn debugging messages off by default.
greg@kroah.com [Wed, 3 Dec 2003 02:41:29 +0000 (18:41 -0800)]
[PATCH] turn debugging messages off by default.

it's a bit noisy for the masses...

18 years ago[PATCH] split out the namedev config parsing logic to namedev_parse.c
greg@kroah.com [Wed, 3 Dec 2003 02:38:30 +0000 (18:38 -0800)]
[PATCH] split out the namedev config parsing logic to namedev_parse.c

18 years ago[PATCH] rename namedev's get_attr() to be main namedev_name_device() as that's what...
greg@kroah.com [Wed, 3 Dec 2003 02:18:21 +0000 (18:18 -0800)]
[PATCH] rename namedev's get_attr() to be main namedev_name_device() as that's what it really is.

18 years ago[PATCH] add devfs like tty rules as an example in the default config file.
greg@kroah.com [Wed, 3 Dec 2003 01:55:00 +0000 (17:55 -0800)]
[PATCH] add devfs like tty rules as an example in the default config file.

18 years ago[PATCH] catch replace device by wildcard
kay.sievers@vrfy.org [Wed, 3 Dec 2003 01:52:26 +0000 (17:52 -0800)]
[PATCH] catch replace device by wildcard

  catch device name by wildcard to support a whole class of devices
  by just one config line like:
  REPLACE, KERNEL="tty*", NAME="vc/%n"

18 years ago[PATCH] operate on the rules in the order they are in the config file (within the...
greg@kroah.com [Wed, 3 Dec 2003 01:45:19 +0000 (17:45 -0800)]
[PATCH] operate on the rules in the order they are in the config file (within the rule type)

18 years ago[PATCH] Add -nodefaultlibs while compiling against klibc
mort@wildopensource.com [Tue, 2 Dec 2003 08:59:36 +0000 (00:59 -0800)]
[PATCH] Add -nodefaultlibs while compiling against klibc

This patch adds -nodefaultlibs to LDFLAGS when compiling udev against
klibc.  This fixes the warning that I was getting when using $(LD)=gcc
in the versions after Makefile.klibc disappeared.  The problem was that
it was still including a "-lc" in the call to the linker.

18 years ago[PATCH] another patch for path problem
dsteklof@us.ibm.com [Tue, 2 Dec 2003 08:48:01 +0000 (00:48 -0800)]
[PATCH] another patch for path problem

The quick patch I sent you yesterday fixes it in one location, but
there are other points in the library that calls sysfs_get_mnt_path. We
need to address all the areas in the library where paths are used. The
following patch is a band-aid until we can get a proper path management
in the library.

18 years ago[PATCH] Cset exclude: dsteklof@us.ibm.com|ChangeSet|20031126173159|56255
greg@kroah.com [Tue, 2 Dec 2003 08:47:52 +0000 (00:47 -0800)]
[PATCH] Cset exclude: dsteklof@us.ibm.com|ChangeSet|20031126173159|56255

18 years ago[PATCH] ARCH detection for ppc
olh@suse.de [Tue, 2 Dec 2003 08:44:48 +0000 (00:44 -0800)]
[PATCH] ARCH detection for ppc

I'm not sure why ppc is converted to powerpc, it breaks at least $(ARCH)
in klibc.

gcc -dumpmachine
powerpc-suse-linux

18 years ago[PATCH] Build failure - missing linux/limits.h include?
arnd@arndb.de [Tue, 2 Dec 2003 08:26:46 +0000 (00:26 -0800)]
[PATCH] Build failure - missing linux/limits.h include?

On Tuesday 25 November 2003 00:12, Chris Larson wrote:
> udev fails to compile here unless I'm doing a KLIBC build.  The reason
> appears to be that the normal limits.h in the gcc inc dir doesn't pull
> in linux/limits.h, whereas the limits.h out in the klibc include dirs
> does.  I'd think it'd be best to add a #include <linux/limits.h> to
> udev.h directly, since it uses PATH_MAX.

No, don't include kernel headers directly if you can avoid it.
The problem you are referring to seems to be with old tool chains,
I have the same symptom with my s390 gcc-2.95/glibc-2.1.3.
Including <sys/param.h> instead of <limits.h> seems to fix it.

18 years ago[PATCH] udev-007/extras/multipath update
christophe.varoqui@free.fr [Tue, 2 Dec 2003 08:16:32 +0000 (00:16 -0800)]
[PATCH] udev-007/extras/multipath update

here is a clean-up patch :

* removes sg_err.[ch] deps
* makes sure the core code play nice with klibc
* port the sysfs calls to dlist helpers
* links against udev's sysfs (need libsysfs.a & dlist.a)
* finally define DM_TARGET as "multipath" as Joe posted the code today
  (not tested yet)
* push version forward (do you want it in sync with udev version?)

libdevmapper doesn't play well with klibc, so I wasn't able to produce a
static binary yet. Help needed here ... as I don't want to fall back to
merge libdevmapper code in the core.

It compiles here and doesn't segfault.

18 years ago[PATCH] fix udev parallel builds with klibc
patmans@us.ibm.com [Tue, 2 Dec 2003 07:50:09 +0000 (23:50 -0800)]
[PATCH] fix udev parallel builds with klibc

I can't build udev with make -j9. Here's a patch to fix it.

18 years ago[PATCH] add test for checking the BUS value.
greg@kroah.com [Thu, 27 Nov 2003 01:45:26 +0000 (17:45 -0800)]
[PATCH] add test for checking the BUS value.

18 years ago[PATCH] fix problem where we were not looking at the BUS value.
greg@kroah.com [Thu, 27 Nov 2003 01:45:05 +0000 (17:45 -0800)]
[PATCH] fix problem where we were not looking at the BUS value.

18 years ago[PATCH] quick fix for libsysfs bus
dsteklof@us.ibm.com [Thu, 27 Nov 2003 01:31:59 +0000 (17:31 -0800)]
[PATCH] quick fix for libsysfs bus

There seems to be a
mismatch in udev and in libsysfs as to what to expect if the mnt point
has a slash on the end or not. If I use the included patch, it breaks
something in udev. If I patch sysfs_get_mnt_path I break udev as well
because what you're expecting. I need to sit down and go through
the library and creaate a rule as to trailing slashes. Adding the env
brought this to light.

18 years ago[PATCH] libsysfs changes for sysfsutils 0.3.0
dsteklof@us.ibm.com [Tue, 25 Nov 2003 07:47:43 +0000 (23:47 -0800)]
[PATCH] libsysfs changes for sysfsutils 0.3.0

Here's the patch to up the library to the sysfsutils-0_3_0 level. The
following changes:

1) adds class name to sysfs_class_device structure
2) adds bus to sysfs_device
3) gets rid of code that made assumptions as to bus addresses being
unique across buses, which isn't the case.

I still owe you:

1) change getpagesize->sysconf. This is in the CVS tree and part of other
changes we're currently testing. Patch will follow.
2) you need a function to get a sysfs_class_device's parent. We hadn't
considered class devices to have parents, the one example of a multilevel
is the block class. We will add this function and send the patch to you.

18 years ago[PATCH] add test and documentation for new %D devfs format modifier
greg@kroah.com [Tue, 25 Nov 2003 07:45:38 +0000 (23:45 -0800)]
[PATCH] add test and documentation for new %D devfs format modifier

18 years ago[PATCH] Add format modifier for devfs like naming
arnd@arndb.de [Tue, 25 Nov 2003 07:41:40 +0000 (23:41 -0800)]
[PATCH] Add format modifier for devfs like naming

On Monday 24 November 2003 01:29, Greg KH wrote:
> I think with the ability to capture the output of the CALLOUT rule,
> combined with the ability to put format modifiers in the CALLOUT program
> string, we now have everything in place to emulate the existing devfs
> naming scheme.  Anyone want to verify this or not?

I would prefer to have the ability of creating partition nodes in devfs
style built-in to udev. Devfs used to call the whole disk e.g.
"/dev/dasd/0123/disk" and the partitions "/dev/dasd/0123/part[1-3]".
This can obviously be done with a CALLOUT rule, but its common enough
to make it a format modifier. AFAIK, this scheme has been used for
ide, scsi and dasd disks, which is about 99% of all disks ever connected
to Linux.

18 years ago[PATCH] more config file parsing robustness
azarah@nosferatu.za.org [Tue, 25 Nov 2003 07:25:06 +0000 (23:25 -0800)]
[PATCH] more config file parsing robustness

udev kept on segfaulting when it was in use, and not having the time
(and building it with DEBUG=true showing nothing), I have not tracked it
until tonight.  Seems like I made a type-o, and forgotten the ':'
between one line's group and permission parameters.  Attached patch
should stop the segfault, and warn at that at least.

18 years ago[PATCH] changed the default location of the database to /udev/.udev.tdb to be LSB...
greg@kroah.com [Tue, 25 Nov 2003 07:14:44 +0000 (23:14 -0800)]
[PATCH] changed the default location of the database to /udev/.udev.tdb to be LSB compliant

Finally the Debian people can get off my back...

18 years ago[PATCH] udev.8 tweak numeric id text
kay.sievers@vrfy.org [Tue, 25 Nov 2003 06:27:25 +0000 (22:27 -0800)]
[PATCH] udev.8 tweak numeric id text

04-udev.8-tweak-numeric-id-text.diff
  o change "return value" to "returned string"
  o add textual owner/group example for udev.permissions
  o mention klibc compile as special case for udev.permissions
  o remove duplicated numeric owner clause

18 years ago[PATCH] udev-test.pl add subdir test
kay.sievers@vrfy.org [Tue, 25 Nov 2003 06:27:23 +0000 (22:27 -0800)]
[PATCH] udev-test.pl add subdir test

03-udev-test.pl-add-subdir-test.diff
  o duplicate existing test and change it to explicitely test the subdir handling

18 years ago[PATCH] namedev.c strcat tweak
kay.sievers@vrfy.org [Tue, 25 Nov 2003 06:27:20 +0000 (22:27 -0800)]
[PATCH] namedev.c strcat tweak

02-namedev.c-strcat-tweak.diff
  o cat the substitution to the already known end of the string instead of searching it another time

18 years ago[PATCH] overall whitespace + debug text conditioning
kay.sievers@vrfy.org [Tue, 25 Nov 2003 06:27:17 +0000 (22:27 -0800)]
[PATCH] overall whitespace + debug text conditioning

01-overall-whitespace+debug-text-conditioning.diff
  o cleanup whitespace
  o clarify a few comments
  o enclose all printed debug string values in ''

18 years ago[PATCH] klibc makefile fixes
arnd@arndb.de [Tue, 25 Nov 2003 06:10:23 +0000 (22:10 -0800)]
[PATCH] klibc makefile fixes

18 years ago[PATCH] get rid of functions in klibc_fixups that are now in klibc
greg@kroah.com [Tue, 25 Nov 2003 05:59:03 +0000 (21:59 -0800)]
[PATCH] get rid of functions in klibc_fixups that are now in klibc

18 years ago[PATCH] sync up with the 0.84 version of klibc
greg@kroah.com [Tue, 25 Nov 2003 05:57:33 +0000 (21:57 -0800)]
[PATCH] sync up with the 0.84 version of klibc

18 years ago[PATCH] fix udev init.d script to handle all class devices in sysfs.
greg@kroah.com [Mon, 24 Nov 2003 14:19:44 +0000 (06:19 -0800)]
[PATCH] fix udev init.d script to handle all class devices in sysfs.

18 years ago[PATCH] fix the test.block and test.tty scripts due to their moveing. Also add a...
greg@kroah.com [Mon, 24 Nov 2003 14:13:05 +0000 (06:13 -0800)]
[PATCH] fix the test.block and test.tty scripts due to their moveing. Also add a test.all script.

18 years ago[PATCH] udev-test.pl - tweaks
kay.sievers@vrfy.org [Mon, 24 Nov 2003 13:44:01 +0000 (05:44 -0800)]
[PATCH] udev-test.pl - tweaks

I found two missing characters and optimized $PWD.

18 years ago[PATCH] 007_bk version change to Makefile.
greg@kroah.com [Mon, 24 Nov 2003 13:38:01 +0000 (05:38 -0800)]
[PATCH] 007_bk version change to Makefile.

18 years ago[PATCH] v007 release 007
greg@kroah.com [Mon, 24 Nov 2003 08:03:24 +0000 (00:03 -0800)]
[PATCH] v007 release

18 years ago[PATCH] v007 Changelog
greg@kroah.com [Mon, 24 Nov 2003 08:03:10 +0000 (00:03 -0800)]
[PATCH] v007 Changelog

18 years ago[PATCH] update default config file with a CALLOUT rule, and more documentation.
greg@kroah.com [Mon, 24 Nov 2003 07:39:59 +0000 (23:39 -0800)]
[PATCH] update default config file with a CALLOUT rule, and more documentation.

18 years ago[PATCH] updated the man page with the latest format specifier changes.
greg@kroah.com [Mon, 24 Nov 2003 07:39:39 +0000 (23:39 -0800)]
[PATCH] updated the man page with the latest format specifier changes.

18 years ago[PATCH] added ability to put format specifiers in the CALLOUT program string.
greg@kroah.com [Mon, 24 Nov 2003 06:25:13 +0000 (22:25 -0800)]
[PATCH] added ability to put format specifiers in the CALLOUT program string.

18 years ago[PATCH] tweak udev-test.pl to report '0' errors if that's what happened.
greg@kroah.com [Mon, 24 Nov 2003 05:17:34 +0000 (21:17 -0800)]
[PATCH] tweak udev-test.pl to report '0' errors if that's what happened.

18 years ago[PATCH] - format char for CALLOUT output
kay.sievers@vrfy.org [Mon, 24 Nov 2003 05:14:33 +0000 (21:14 -0800)]
[PATCH] - format char for CALLOUT output

here is a patch for inserting the callout output into NAME=.
ID= supports the usual wildcard to compare with the output.

I've moved all wildcard matching to a function cause this was the third occurrence.
Also attached is the last whitespace cleanup and debug text corrections.
The callout patch depends on the whitespace patch.

CALLOUT, BUS="usb", PROGRAM="/bin/echo -n return", ID="ret*", NAME="webcam-%c-"

results in:

Nov 21 17:33:51 pim udev[20399]: get_major_minor: found major = 81, minor = 0
Nov 21 17:33:51 pim udev[20399]: exec_callout: callout to '/bin/echo -n return'
Nov 21 17:33:51 pim udev[20399]: exec_callout: callout returned 'return'
Nov 21 17:33:51 pim udev[20399]: get_attr: substitute callout output 'return'
Nov 21 17:33:51 pim udev[20399]: udev_add_device: name = webcam-return-
Nov 21 17:33:51 pim udev[20399]: create_node: mknod(/udev/webcam-return-, 020660, 81, 0)

18 years ago[PATCH] more namedev whitespace cleanups
kay.sievers@vrfy.org [Mon, 24 Nov 2003 05:14:10 +0000 (21:14 -0800)]
[PATCH] more namedev whitespace cleanups

attached is the last whitespace cleanup and debug text corrections.

18 years ago[PATCH] only build klibc_fixups.c if we are actually using klibc.
greg@kroah.com [Mon, 24 Nov 2003 04:56:52 +0000 (20:56 -0800)]
[PATCH] only build klibc_fixups.c if we are actually using klibc.

18 years ago[PATCH] add support for string group and string user names in udev.permissions.
greg@kroah.com [Mon, 24 Nov 2003 04:56:18 +0000 (20:56 -0800)]
[PATCH] add support for string group and string user names in udev.permissions.

This only works if you are using glibc.

Patch based on patch from Marco d'Itri <md@Linux.IT>

18 years ago[PATCH] add getgrnam and getpwnam to klibc_fixups files.
greg@kroah.com [Mon, 24 Nov 2003 04:44:41 +0000 (20:44 -0800)]
[PATCH] add getgrnam and getpwnam to klibc_fixups files.

Hopefully the klibc_fixups code will not be needed eventually.

18 years ago[PATCH] fix segfault in parsing bad udev.permissions file
md@Linux.IT [Mon, 24 Nov 2003 02:35:03 +0000 (18:35 -0800)]
[PATCH] fix segfault in parsing bad udev.permissions file