chiark / gitweb /
elogind.git
18 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.

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

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

18 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.

18 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/

18 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.

18 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.

18 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...

18 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.

18 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.

18 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.

18 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.

18 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

18 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

18 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

18 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.

18 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.

18 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.

18 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.

18 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.

18 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.

18 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 :)

18 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

18 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

18 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.

18 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...

18 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.

18 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

18 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.

18 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.

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

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

18 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.

18 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.

18 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.

18 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.

18 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.

18 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.

18 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.

18 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.

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

18 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.

18 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

18 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.

18 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:

18 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.

18 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.

18 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.

18 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

18 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...

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

18 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

18 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

18 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

18 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)

18 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.

18 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.

18 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.

18 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)?

18 years ago[PATCH] extras multipath update
christophe.varoqui@free.fr [Tue, 23 Dec 2003 04:53:55 +0000 (20:53 -0800)]
[PATCH] extras multipath update

 incremental to 20031222-2,

 2003-12-22 multipath-010
        * tweak the install target in Makefile
        * stop passing fds as argument : this change enable a strict
          segregation of ugly 2.4 code
        * sysfs version of get_lun_strings()
        * be careful about the return of get_unique_id() since errors
          formerly caught up by if(open()) in the caller fn are now returned
          by get_unique_id()
        * send get_serial() in unused.c

18 years ago[PATCH] extras multipath update
christophe.varoqui@free.fr [Tue, 23 Dec 2003 04:52:01 +0000 (20:52 -0800)]
[PATCH] extras multipath update

 incremental to 20031222,

 2003-12-22 multipath-010
        * introduce dm-simplecmd for RESUME & SUSPEND requests
        * split add_map() in setup_map() & dm-addmap()
        * setup_map() correctly submits "SUSPEND-RELOAD-RESUME or CREATE"
          sequences instead of the bogus "RELOAD or CREATE"

18 years ago[PATCH] extras multipath update
christophe.varoqui@free.fr [Tue, 23 Dec 2003 04:49:48 +0000 (20:49 -0800)]
[PATCH] extras multipath update

 incremental to 20031220,

 2003-12-22 multipath-010
        * don't print .sg_dev if equal to .dev (2.6) in print_path()
        * since the kernel code handles defective paths, remove all
          code to cope with them :
                * move do_tur() to unused.c
                * remove .state from path struct
                * remove .state settings & conditionals
        * add a cmdline switch to force maps to failover mode,
          ie 1 path per priority group
        * add default policies to the whitelist array (spread io ==
          MULTIBUS / io forced to 1 path == FAILOVER)
        * move get_disk_size() call out of add_map() to coalesce()
        * comment tricky coalesce() fn
        * bogus unsused.c file renamed to unused.c

18 years ago[PATCH] extras multipath update
christophe.varoqui@free.fr [Tue, 23 Dec 2003 04:49:22 +0000 (20:49 -0800)]
[PATCH] extras multipath update

An important one, against stock udev-009 :

 2003-12-20 multipath-010
        * big ChangeLog update
        * start to give a little control over target params :
          introduce cmdline arg -i to control polling interval
        * cope with hotplug-style calling convention :
          ie "multipath scsi $DEVPATH" ... to avoid messing with
          online maps not concerned by an event
        * example hotplug agent to drop in /etc/hotplug.d/scsi
        * revert the run & resched patch : unless someone proves me
          wrong, this was overdesigned
        * move commented out functions in unused.c
        * update multipath target params to "udm[23] style"
        * mp target now supports nr_path == 1, so do we
        * add gratuitous free()
        * push version forward

18 years ago[PATCH] experimental CALLOUT script for devfs ide node creation with cd, disc, part
kay.sievers@vrfy.org [Tue, 23 Dec 2003 04:34:53 +0000 (20:34 -0800)]
[PATCH] experimental CALLOUT script for devfs ide node creation with cd, disc, part

Here is a experimental CALLOUT script for udev to create devfs nodes
for IDE-devices. Not that I need these, I just wanted to see if it works :)

The script is really stupid, no error handling, nothing more than
absolutely needed. The rule uses the 'k' format char of the previous
patch. The %D is not used, so the user can have disc or disk :)

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

creates the following on my machine with two hard disks, one DVD and a PCMCIA-compact-flash inserted:
  /udev
  |-- 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

18 years ago[PATCH] add any valid device
kay.sievers@vrfy.org [Tue, 23 Dec 2003 03:16:19 +0000 (19:16 -0800)]
[PATCH] add any valid device

18 years ago[PATCH] introduce format char 'k' for kernel-name
kay.sievers@vrfy.org [Tue, 23 Dec 2003 03:13:19 +0000 (19:13 -0800)]
[PATCH] introduce format char 'k' for kernel-name

Attached is a patch that introduces the format char 'k' to be replaced with
the kernel name. I like to have it in a callout script.

I've moved the build_kernel_name() back to namedev_name_device() since
we don't expect it growing cause of 'sdaj' :)

18 years ago[PATCH] trivial make fixes
kay.sievers@vrfy.org [Tue, 23 Dec 2003 03:10:27 +0000 (19:10 -0800)]
[PATCH] trivial make fixes

One patch to let bk ignore the created udev.conf.
The second to depend on the .h files.

18 years ago[PATCH] Just live with a sleep(1) in namedev for now until libsysfs is fixed up.
greg@kroah.com [Tue, 23 Dec 2003 03:07:08 +0000 (19:07 -0800)]
[PATCH] Just live with a sleep(1) in namedev for now until libsysfs is fixed up.

18 years ago[PATCH] try to wait until the proper device file shows up in sysfs.
greg@kroah.com [Sat, 20 Dec 2003 09:05:13 +0000 (01:05 -0800)]
[PATCH] try to wait until the proper device file shows up in sysfs.

this still isn't working correctly for partitions, so don't
think this is the final version...

18 years ago[PATCH] libsysfs 0.4.0 patch
dsteklof@us.ibm.com [Sat, 20 Dec 2003 02:29:10 +0000 (18:29 -0800)]
[PATCH] libsysfs 0.4.0 patch

Ananth released sysfsutils 0.4.0 last night, I'm sure you saw the email.
Here's a patch with the latest changes from the pre-patch I already
gave you. It includes sysfs_get_device_parent(), which you said you
needed. I've run your test scripts and I've built scsi_id. Please
play around with this and check it out.

There are quite a few changes. Please do not access
structure pointers, like sysfs_device's parent, directly like
dev->parent. Please use the "get" function to retrieve. The functions
load things on demand and refresh views under the covers.

18 years ago[PATCH] don't overwrite old config on install
kay.sievers@vrfy.org [Sat, 20 Dec 2003 02:29:05 +0000 (18:29 -0800)]
[PATCH] don't overwrite old config on install

Here is a patch for the Makefile to look for a already
installed config and not to overwrite it.

18 years ago[PATCH] udev-remove.c cleanups
kay.sievers@vrfy.org [Sat, 20 Dec 2003 02:29:01 +0000 (18:29 -0800)]
[PATCH] udev-remove.c cleanups

I've moved the malloc out of the udevdb into udev-remove to free the
struct after use and not to allocate a different struct in the case the
device is not in the data base. I seems a bit easier to read.

18 years ago[PATCH] remove unneeded TODO and FIXME entry
greg@kroah.com [Sat, 20 Dec 2003 02:08:39 +0000 (18:08 -0800)]
[PATCH] remove unneeded TODO and FIXME entry

Thanks to Kay for pointing it out to me.

18 years ago[PATCH] clean up the stand-alone tests to work properly on other people's machines.
greg@kroah.com [Thu, 18 Dec 2003 06:41:04 +0000 (22:41 -0800)]
[PATCH] clean up the stand-alone tests to work properly on other people's machines.

18 years ago[PATCH] bug in udev-remove.c
kay.sievers@vrfy.org [Thu, 18 Dec 2003 06:33:29 +0000 (22:33 -0800)]
[PATCH] bug in udev-remove.c

Uups, we have a bug in udev-remove.c.

udev segfaults with NULL-pointer, if the device is not in the database:

  ./test.block: line 29:  4844 Segmentation fault      $BIN block
  Dec 17 22:47:42 pim udev[4882]: udev_remove_device: '/block/sdy' not found in database, falling back on default name
  Dec 17 22:47:42 pim udev[4882]: udev_remove_device: name is '(null)'

18 years ago[PATCH] fix scsi_id segfault with udev-009
dsteklof@us.ibm.com [Thu, 18 Dec 2003 03:05:25 +0000 (19:05 -0800)]
[PATCH] fix scsi_id segfault with udev-009

Scsi_id hasn't been changed to use the latest libsysfs changes. The
"directory" in the sysfs_class_device is now considered "private" and only
should be accessed using functions. Treating the structures as handles lets
us only load information when it's needed, reducing caching or stale
information and also helping performance.

Here's the problem.

static inline char *sysfs_get_attr(struct sysfs_class_device *dev,
                                    const char *attr)
{
        return sysfs_get_value_from_attributes(dev->directory->attributes,
                                               attr);
}

Please try this quick fix:

18 years ago[PATCH] add libsysfs docs
dsteklof@us.ibm.com [Thu, 18 Dec 2003 02:58:28 +0000 (18:58 -0800)]
[PATCH] add libsysfs docs

Here's the latest libsysfs doc, you may want to include it in your
docs directory.

18 years ago[PATCH] Allow build with empty EXTRAS
akropel1@rochester.rr.com [Thu, 18 Dec 2003 02:32:53 +0000 (18:32 -0800)]
[PATCH] Allow build with empty EXTRAS

Need to let the shell expand $EXTRAS so it can properly detect an empty
list. Without this patch, the build fails whenever $EXTRAS is empty.

18 years ago[PATCH] add tests to catch whitespace and comment config file parsing errors.
greg@kroah.com [Thu, 18 Dec 2003 02:28:05 +0000 (18:28 -0800)]
[PATCH] add tests to catch whitespace and comment config file parsing errors.

18 years ago[PATCH] fix comment and whitespace handling in config files.
Roman.Kagan@itep.ru [Thu, 18 Dec 2003 02:24:05 +0000 (18:24 -0800)]
[PATCH] fix comment and whitespace handling in config files.

This chunk broke parsing of blank lines and comments with blanks before
'#'.  Please revert it with the patch below.

  Roman.

18 years ago[PATCH] mark config files as such in the rpm spec file
dhollis@davehollis.com [Wed, 17 Dec 2003 16:35:00 +0000 (08:35 -0800)]
[PATCH] mark config files as such in the rpm spec file

Got a nasty surprise after upgrading my RPM.  The config files weren't
marked as configs and were subsequently replaced!  DOH!  Fortunately, I
didn't have much in there yet but that certainly isn't something others
will like going forward.  Attached is a simple patch to the spec file so
they aren't replaced in the future.  The config files included in the
RPM should wind up as udev.conf.rpmnew, etc if they are different from
what is installed.

18 years ago[PATCH] trivial cleanup parser changes
kay.sievers@vrfy.org [Wed, 17 Dec 2003 08:58:01 +0000 (00:58 -0800)]
[PATCH] trivial cleanup parser changes

  o use defines in debug strings
  o replace my 'xxx' debug :)
  o shorten line in man page example to not to exceed 80 chars when printed

18 years ago[PATCH] 009_bk makefile changes.
greg@kroah.com [Wed, 17 Dec 2003 08:57:52 +0000 (00:57 -0800)]
[PATCH] 009_bk makefile changes.

18 years ago[PATCH] v009 release 009
greg@kroah.com [Wed, 17 Dec 2003 08:30:59 +0000 (00:30 -0800)]
[PATCH] v009 release

18 years ago[PATCH] signal fixes due to klibc update.
greg@kroah.com [Wed, 17 Dec 2003 08:23:28 +0000 (00:23 -0800)]
[PATCH] signal fixes due to klibc update.

18 years ago[PATCH] sync klibc with release 0.95
greg@kroah.com [Wed, 17 Dec 2003 08:22:55 +0000 (00:22 -0800)]
[PATCH] sync klibc with release 0.95

18 years ago[PATCH] add mol permissions to the debian permissions file.
greg@kroah.com [Wed, 17 Dec 2003 08:04:50 +0000 (00:04 -0800)]
[PATCH] add mol permissions to the debian permissions file.

Info from Mathieu Segaud <matt@minas-morgul.org>

18 years ago[PATCH] update the FAQ with info about bad modprobe events from the devfs scheme...
greg@kroah.com [Wed, 17 Dec 2003 08:04:23 +0000 (00:04 -0800)]
[PATCH] update the FAQ with info about bad modprobe events from the devfs scheme...

18 years ago[PATCH] dump latest klibc into the udev build tree
olh@suse.de [Wed, 17 Dec 2003 07:41:59 +0000 (23:41 -0800)]
[PATCH] dump latest klibc into the udev build tree

KLIBC is used as an internal makefile variable, it expands to either
true or false right now. udev should use something else than KLIBC to
allow build against the latest and greatest klibc version.

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.