chiark / gitweb /
17 years ago[PATCH] add dumb test for all of the different modifiers. [Wed, 19 Nov 2003 10:49:29 +0000 (02:49 -0800)]
[PATCH] add dumb test for all of the different modifiers.

17 years ago[PATCH] update the TODO list with more items that people can easily do. [Wed, 19 Nov 2003 10:48:57 +0000 (02:48 -0800)]
[PATCH] update the TODO list with more items that people can easily do.

17 years ago[PATCH] faster test scripts [Wed, 19 Nov 2003 10:39:39 +0000 (02:39 -0800)]
[PATCH] faster test scripts

I've attached a patch against 005 for both the block and tty scripts.  I
didn't bother running udev backgrounded, since as you say, the new code
runs a lot faster.

17 years ago[PATCH] move the test.block and test.tty scripts to the test/ directory [Wed, 19 Nov 2003 08:40:39 +0000 (00:40 -0800)]
[PATCH] move the test.block and test.tty scripts to the test/ directory

17 years ago[PATCH] add remove actions to the test scripts [Wed, 19 Nov 2003 08:39:43 +0000 (00:39 -0800)]
[PATCH] add remove actions to the test scripts

17 years ago[PATCH] turn DEBUG_PARSER off by default. [Wed, 19 Nov 2003 08:27:38 +0000 (00:27 -0800)]
[PATCH] turn DEBUG_PARSER off by default.

17 years ago[PATCH] add some documentation for the %b modifier to the default config file. [Wed, 19 Nov 2003 06:48:46 +0000 (22:48 -0800)]
[PATCH] add some documentation for the %b modifier to the default config file.

17 years ago[PATCH] fix make install rule for when the udev symlink is already there. [Wed, 19 Nov 2003 05:45:46 +0000 (21:45 -0800)]
[PATCH] fix make install rule for when the udev symlink is already there.

17 years ago[PATCH] more robust config file parsing in namedev.c [Wed, 19 Nov 2003 05:39:30 +0000 (21:39 -0800)]
[PATCH] more robust config file parsing in namedev.c

After getting a number of different crashes for udev reading broken
udev.config files, I decided to try to make the parser a little
more robust.

The behaviour is changed to stop reading the configuration file
and logging the broken entry instead of silently ignoring it (is
that good? It's easy to just print and continue).
All strcpy()'s to a fixed length string are now implicitly limited
to the bounds of the target string.

I kept the -ENODEV return code for now, not sure if there should be
different ones.

17 years ago[PATCH] add bus id modifier [Wed, 19 Nov 2003 05:36:10 +0000 (21:36 -0800)]
[PATCH] add bus id modifier

On Tuesday 18 November 2003 02:14, Greg KH wrote:
> On Mon, Nov 17, 2003 at 06:33:32PM +0100, Arnd Bergmann wrote:
> > That would at least be part of the solution I'm looking for. How about
> > extra format characters for bus_id and for the result of a callout
> > program?
> Sure, I can see the use for that.  Want to send a patch?  :)

> Take a look at the current bk tree (which has moved to
> bk:// )  I've made finding that device a lot
> easier now, and it works for all rule types.

Great, just what I was missing. I didn't see the any link to the bk
repository. Here's the patch for the bus_id. I'll need to think about
the handling of callout results a bit more.

17 years ago[PATCH] change release target in makefile. [Wed, 19 Nov 2003 05:35:44 +0000 (21:35 -0800)]
[PATCH] change release target in makefile.

17 years ago[PATCH] change debug level on printf values for now. [Tue, 18 Nov 2003 09:22:02 +0000 (01:22 -0800)]
[PATCH] change debug level on printf values for now.

17 years ago[PATCH] updated demo config file. [Tue, 18 Nov 2003 09:15:11 +0000 (01:15 -0800)]
[PATCH] updated demo config file.

17 years ago[PATCH] add some documentation of the modifiers to the default config file. [Tue, 18 Nov 2003 09:12:31 +0000 (01:12 -0800)]
[PATCH] add some documentation of the modifiers to the default config file.

17 years ago[PATCH] add demo config file. [Tue, 18 Nov 2003 09:09:58 +0000 (01:09 -0800)]
[PATCH] add demo config file.

17 years ago[PATCH] add printf option to label test to verify it works. [Tue, 18 Nov 2003 09:07:49 +0000 (01:07 -0800)]
[PATCH] add printf option to label test to verify it works.

17 years ago[PATCH] fix up printf-like functionality due to previous changes. [Tue, 18 Nov 2003 09:07:21 +0000 (01:07 -0800)]
[PATCH] fix up printf-like functionality due to previous changes.

17 years ago[PATCH] implement printf-like placeholder support for NAME [Tue, 18 Nov 2003 08:59:27 +0000 (00:59 -0800)]
[PATCH] implement printf-like placeholder support for NAME

> Problem is, if you use the LABEL rule to match a device, like a SCSI
> vendor, then all of the partitions, as well as the main block device,
> will end up with the same name.  That's why I added the "add the number"
> hack to the LABEL rule.
> So yes, your patch is correct in that we shouldn't always be adding the
> number to any match for LABEL (like for char devices), but if we do
> that, then we break partitions.  Your '%' patch fixes this, but I'd just
> like to extend it a bit.  Let me see what I can come up with...

Oh, I see. Do you mean something like this:

LABEL, BUS="usb", model="Creative Labs WebCam 3", NAME="webcam%n-%M:%m-test"

results in: "webcam0-81:0-test"

Nov 15 16:51:53 pim udev[16193]: get_class_dev: looking at /sys/class/video4linux/video0
Nov 15 16:51:53 pim udev[16193]: get_class_dev: class_dev->name = video0
Nov 15 16:51:53 pim udev[16193]: get_major_minor: dev = 81:0
Nov 15 16:51:53 pim udev[16193]: get_major_minor: found major = 81, minor = 0
Nov 15 16:51:53 pim udev[16193]: udev_add_device: name = webcam0-81:0-test
Nov 15 16:51:53 pim udev[16193]: create_node: mknod(/udev/webcam0-81:0-test, 020666, 81, 0)

  implement printf-like placeholder support for NAME
  %n-kernel number, %M-major number, %m-minor number

17 years ago[PATCH] get the major/minor number before we name the device. [Fri, 14 Nov 2003 04:08:10 +0000 (20:08 -0800)]
[PATCH] get the major/minor number before we name the device.

Will come in handy later...

17 years ago[PATCH] add scsi_id "extra" program from Patrick Mansfield <> [Thu, 13 Nov 2003 14:34:36 +0000 (06:34 -0800)]
[PATCH] add scsi_id "extra" program from Patrick Mansfield <>

17 years ago[PATCH] Add multipath "extra" program from Christophe Varoqui, <christophe.varoqui... [Thu, 13 Nov 2003 14:30:57 +0000 (06:30 -0800)]
[PATCH] Add multipath "extra" program from Christophe Varoqui, <>

17 years ago[PATCH] trailing whitespace cleanups. [Thu, 13 Nov 2003 14:24:09 +0000 (06:24 -0800)]
[PATCH] trailing whitespace cleanups.

17 years ago[PATCH] splig LABEL and NUMBER into separate functions. [Thu, 13 Nov 2003 13:52:08 +0000 (05:52 -0800)]
[PATCH] splig LABEL and NUMBER into separate functions.

Now items are processed in priority order, fixing that bug.

17 years ago[PATCH] add TOPO regression test. [Thu, 13 Nov 2003 02:08:40 +0000 (18:08 -0800)]
[PATCH] add TOPO regression test.

17 years ago[PATCH] move TOPOLOGY rule to it's own function. [Thu, 13 Nov 2003 02:08:19 +0000 (18:08 -0800)]
[PATCH] move TOPOLOGY rule to it's own function.

17 years ago[PATCH] fix bug where NUMBER and TOPOLOGY would not work for partitions. [Thu, 13 Nov 2003 01:56:26 +0000 (17:56 -0800)]
[PATCH] fix bug where NUMBER and TOPOLOGY would not work for partitions.

17 years ago[PATCH] clean up the way we find the sysdevice for a block device for namedev. [Thu, 13 Nov 2003 01:38:14 +0000 (17:38 -0800)]
[PATCH] clean up the way we find the sysdevice for a block device for namedev.

17 years ago[PATCH] updated label test script (tests for partitions now.) [Wed, 12 Nov 2003 16:35:40 +0000 (08:35 -0800)]
[PATCH] updated label test script (tests for partitions now.)

17 years ago[PATCH] split REPLACE and CALLOUT into separate functions [Wed, 12 Nov 2003 16:26:08 +0000 (08:26 -0800)]
[PATCH] split REPLACE and CALLOUT into separate functions

Finally starting to process this in priority order, not config file order.

17 years ago[PATCH] add debug line for REPLACE call. [Wed, 12 Nov 2003 15:44:56 +0000 (07:44 -0800)]
[PATCH] add debug line for REPLACE call.

17 years ago[PATCH] add replace test [Wed, 12 Nov 2003 15:32:29 +0000 (07:32 -0800)]
[PATCH] add replace test

17 years ago[PATCH] add more sysfs test tree files. [Wed, 12 Nov 2003 15:30:20 +0000 (07:30 -0800)]
[PATCH] add more sysfs test tree files.

17 years ago[PATCH] change UDEV_SYSFS_PATH environment variable due to libsysfs change. [Wed, 12 Nov 2003 15:23:39 +0000 (07:23 -0800)]
[PATCH] change UDEV_SYSFS_PATH environment variable due to libsysfs change.

17 years ago[PATCH] fix bug in klibc's isspace function. [Wed, 12 Nov 2003 15:17:33 +0000 (07:17 -0800)]
[PATCH] fix bug in klibc's isspace function.

17 years ago[PATCH] patch for libsysfs sysfs directory handling [Wed, 12 Nov 2003 13:37:24 +0000 (05:37 -0800)]
[PATCH] patch for libsysfs sysfs directory handling

Here's a quick patch to:

1) Add an environment variable "SYSFS_PATH" that libsysfs will check
for when getting mount point before searching system's sysfs mount

2) A quick fix to sysfs_get_link where the bug was.

I have tested this out with libsysfs and with udev. I couldn't test
with klibc because I haven't got the tree to build with klibc without
my changes either. I made the link but get an error finding
linux/linits.h. I will figure that out.

Please have a look at the patch. If it's agreeable, please test it. I
really want to add some generic path manipulation functions for the
sysfs_get_link error, rather than my patch's hack. But, I haven't had
time yet to do that. You really sounded like you needed this for
testing, so I'm sending it out to you. I should probably add a
function to set the env variable(?).

17 years ago[PATCH] fix udev-add.c to build properly with older versions of gcc. [Wed, 12 Nov 2003 11:50:33 +0000 (03:50 -0800)]
[PATCH] fix udev-add.c to build properly with older versions of gcc.

17 years ago[PATCH] more manpage tweaks [Wed, 12 Nov 2003 11:48:04 +0000 (03:48 -0800)]
[PATCH] more manpage tweaks

  man page style fixes
  present the tiny udev in bold font :)

17 years ago[PATCH] add support for subdirs [Wed, 12 Nov 2003 11:48:01 +0000 (03:48 -0800)]
[PATCH] add support for subdirs

  support subdirectory creation/removal for NAME="/devfs/is/crazy/video0"
  create parent subdirs for device node if needed
  remove subdirs when last node is removed

17 years ago[PATCH] add uid/gid to nodes [Wed, 12 Nov 2003 11:47:57 +0000 (03:47 -0800)]
[PATCH] add uid/gid to nodes

  set uid/gid of node specified in udev.permissions
  only numeric id's are supported cause we can't resolve with
  klibc or libc before real /etc is mounted

17 years ago[PATCH] add prototype for ftruncate to klibc [Wed, 12 Nov 2003 11:33:44 +0000 (03:33 -0800)]
[PATCH] add prototype for ftruncate to klibc

17 years ago[PATCH] Remove a few items from the TODO list that are already done. [Thu, 30 Oct 2003 08:59:16 +0000 (00:59 -0800)]
[PATCH] Remove a few items from the TODO list that are already done.

17 years ago[PATCH] DESTDIR for udev [Thu, 30 Oct 2003 06:26:35 +0000 (22:26 -0800)]
[PATCH] DESTDIR for udev

17 years ago[PATCH] version number to 005_bk [Thu, 30 Oct 2003 06:26:23 +0000 (22:26 -0800)]
[PATCH] version number to 005_bk

17 years ago[PATCH] udev init script [Thu, 30 Oct 2003 06:14:24 +0000 (22:14 -0800)]
[PATCH] udev init script

I integrated udev with Fedora Core.  The main piece is simply building
/udev on boot, since we don't have an initramfs yet. We should also
clear out /udev on shutdown, for /udev directories mounted on persistent

The attached script goes in /etc/init.d

Then do "chkconfig --add udev"

And the rest is handled automatically.  I made it for Fedora but it will
probably work, with little change, on any Linux system.

Right now it only does sysfs-based discovery of block and tty devices,
since those are the only types of devices I have on my system.  There is
a TODO in the script where we would add the other device types.

17 years ago[PATCH] pull some klibc stuff into the make Makefile to try to stay in sync. [Sat, 25 Oct 2003 07:21:18 +0000 (00:21 -0700)]
[PATCH] pull some klibc stuff into the make Makefile to try to stay in sync.

17 years ago[PATCH] klibc build fixes [Sat, 25 Oct 2003 07:20:51 +0000 (00:20 -0700)]
[PATCH] klibc build fixes

Still can't seem to build both klibc and glibc versions from same makefile :(

17 years ago[PATCH] Fixup path for kernel includes when building with klibc. [Sat, 25 Oct 2003 06:37:17 +0000 (23:37 -0700)]
[PATCH] Fixup path for kernel includes when building with klibc.

Fixup path for kernel includes when building with klibc.

klibc expects the symlink klibc/linux to point to a relatively up
to date tree, use -Iklibc/linux/include to make linux/ and asm/
includes resolve properly, as these won't exist in the regular
klibc/klibc/include location.

17 years ago[PATCH] 005 release 005 [Thu, 23 Oct 2003 08:08:58 +0000 (01:08 -0700)]
[PATCH] 005 release

17 years ago[PATCH] add klibc linux symlink info to the README [Thu, 23 Oct 2003 08:04:30 +0000 (01:04 -0700)]
[PATCH] add klibc linux symlink info to the README

17 years ago[PATCH] get 'make release' to work properly again. [Thu, 23 Oct 2003 08:04:09 +0000 (01:04 -0700)]
[PATCH] get 'make release' to work properly again.

17 years ago[PATCH] udev: sleep_for_dev() bits [Thu, 23 Oct 2003 07:50:27 +0000 (00:50 -0700)]
[PATCH] udev: sleep_for_dev() bits

OK, I fixed that bug you hinted at earlier in my previous
sleep_for_dev() patch.  I am sure you fixed it, but here we go
nonetheless, just in case.

I actually changed it up a bit.  It is probably faster to count down
from SECONDS_TO_WAIT_FOR_DEV than count up.

I also made the lone 'path' argument const, since it can be.

Some other misc. bits, too.

17 years ago[PATCH] added README info for how to build using klibc. [Thu, 23 Oct 2003 07:19:18 +0000 (00:19 -0700)]
[PATCH] added README info for how to build using klibc.

17 years ago[PATCH] turn off debugging if we are building with klibc [Thu, 23 Oct 2003 07:13:16 +0000 (00:13 -0700)]
[PATCH] turn off debugging if we are building with klibc

17 years ago[PATCH] turn off debugging in namedev [Thu, 23 Oct 2003 07:12:58 +0000 (00:12 -0700)]
[PATCH] turn off debugging in namedev

17 years ago[PATCH] added vsyslog support to klibc. [Thu, 23 Oct 2003 07:12:41 +0000 (00:12 -0700)]
[PATCH] added vsyslog support to klibc.

17 years ago[PATCH] add ftruncate to klibc. [Thu, 23 Oct 2003 06:59:44 +0000 (23:59 -0700)]
[PATCH] add ftruncate to klibc.

probably got it wrong too...

17 years ago[PATCH] klibc specific tweaks [Thu, 23 Oct 2003 06:48:55 +0000 (23:48 -0700)]
[PATCH] klibc specific tweaks

17 years ago[PATCH] libsysfs does not need mntent.h in it's header file. [Thu, 23 Oct 2003 06:46:19 +0000 (23:46 -0700)]
[PATCH] libsysfs does not need mntent.h in it's header file.

17 years ago[PATCH] klibc makefile changes. [Thu, 23 Oct 2003 05:30:50 +0000 (22:30 -0700)]
[PATCH] klibc makefile changes.

17 years ago[PATCH] build tdb and libsysfs from the same makefile as udev. [Thu, 23 Oct 2003 02:40:52 +0000 (19:40 -0700)]
[PATCH] build tdb and libsysfs from the same makefile as udev.

This fixes problem of libsysfs and tdb getting build with different gcc options
as the rest of udev.

17 years ago[PATCH] udev build tweaks to tdb's spinlock code [Thu, 23 Oct 2003 05:39:59 +0000 (22:39 -0700)]
[PATCH] udev build tweaks to tdb's spinlock code

17 years ago[PATCH] udev-add build cleanups for other libc versions. [Thu, 23 Oct 2003 02:39:54 +0000 (19:39 -0700)]
[PATCH] udev-add build cleanups for other libc versions.

17 years ago[PATCH] tweak tdb to build within udev better. [Thu, 23 Oct 2003 02:39:28 +0000 (19:39 -0700)]
[PATCH] tweak tdb to build within udev better.

17 years ago[PATCH] make libsysfs spit debug messages to the same place as the rest of udev. [Thu, 23 Oct 2003 02:38:59 +0000 (19:38 -0700)]
[PATCH] make libsysfs spit debug messages to the same place as the rest of udev.

17 years ago[PATCH] make libsysfs build cleanly [Thu, 23 Oct 2003 02:38:10 +0000 (19:38 -0700)]
[PATCH] make libsysfs build cleanly

17 years ago[PATCH] added klibc version 0.82 (cvs tree) to the udev tree. [Thu, 23 Oct 2003 01:37:40 +0000 (18:37 -0700)]
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.

Not hooked up to the build yet.

17 years ago[PATCH] makefile fix for now. [Wed, 22 Oct 2003 08:32:07 +0000 (01:32 -0700)]
[PATCH] makefile fix for now.

17 years ago[PATCH] hm, makefile bug with so many files... will fix later... [Wed, 22 Oct 2003 08:15:20 +0000 (01:15 -0700)]
[PATCH] hm, makefile bug with so many files... will fix later...

17 years ago[PATCH] regression tests starting to be added. [Wed, 22 Oct 2003 08:14:59 +0000 (01:14 -0700)]
[PATCH] regression tests starting to be added.

17 years ago[PATCH] fix LABEL bug for device files (not class files.) [Wed, 22 Oct 2003 08:12:40 +0000 (01:12 -0700)]
[PATCH] fix LABEL bug for device files (not class files.)

17 years ago[PATCH] got rid of struct device_attr [Wed, 22 Oct 2003 05:28:32 +0000 (22:28 -0700)]
[PATCH] got rid of struct device_attr

namedev.c is still a mess, that's up next after testing...

17 years ago[PATCH] rename namedev.permissions and namedev.config to udev.permissions and udev... [Wed, 22 Oct 2003 05:08:03 +0000 (22:08 -0700)]
[PATCH] rename namedev.permissions and namedev.config to udev.permissions and udev.config

the namedev name didn't really make much sense anymore...

17 years ago[PATCH] more warning flags to the build. [Wed, 22 Oct 2003 07:18:49 +0000 (00:18 -0700)]
[PATCH] more warning flags to the build.

17 years ago[PATCH] namedev.c comments + debug patch [Wed, 22 Oct 2003 04:48:11 +0000 (21:48 -0700)]
[PATCH] namedev.c comments + debug patch

and a patch for namdev.c comments + debug
o correct 'device device'
o correct permission file to config file

17 years ago[PATCH] fix dbg line in namedev.c [Wed, 22 Oct 2003 04:47:50 +0000 (21:47 -0700)]
[PATCH] fix dbg line in namedev.c

Thanks to Kay Sievers <> for pointing this out.

17 years ago[PATCH] man page update [Wed, 22 Oct 2003 04:46:00 +0000 (21:46 -0700)]
[PATCH] man page update

here a new patch for the man page:
o namdev.permissions added
o corrected a few typos
o corrected text for config line format.
  owner, group mode are only in namedev.permissions
  (don't know what i was dreaming, while i wrote this :))

17 years ago[PATCH] udev: another canidate for static [Wed, 22 Oct 2003 04:45:19 +0000 (21:45 -0700)]
[PATCH] udev: another canidate for static

Another one of those "trivial patches so everything must be good"

sleep_for_dev() isn't exported or defined in a header, so it can be
marked 'static'

17 years ago[PATCH] more overrides of config info with env variables if in test mode. [Wed, 22 Oct 2003 04:41:35 +0000 (21:41 -0700)]
[PATCH] more overrides of config info with env variables if in test mode.

17 years ago[PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up. [Wed, 22 Oct 2003 04:40:53 +0000 (21:40 -0700)]
[PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up.

Now we will timeout properly.

17 years ago[PATCH] change version to 004_bk [Wed, 22 Oct 2003 03:20:03 +0000 (20:20 -0700)]
[PATCH] change version to 004_bk

17 years ago[PATCH] make config files, sysfs root, and udev root configurable from config variables [Wed, 22 Oct 2003 03:19:09 +0000 (20:19 -0700)]
[PATCH] make config files, sysfs root, and udev root configurable from config variables

This will make running tests a lot simpler.

17 years ago[PATCH] 004 changelog entrys [Wed, 22 Oct 2003 00:09:52 +0000 (17:09 -0700)]
[PATCH] 004 changelog entrys

17 years ago[PATCH] 004 release 004 [Wed, 22 Oct 2003 00:08:45 +0000 (17:08 -0700)]
[PATCH] 004 release

17 years ago[PATCH] new version of libsysfs patch [Tue, 21 Oct 2003 08:19:14 +0000 (01:19 -0700)]
[PATCH] new version of libsysfs patch

Here's the patch applying the latest libsysfs.
- adds the latest libsysfs code to udev
* new code includes dlist implementation, a generic linked list
implementation. Needed our own because LGPL
* rearranged structures
* provided more functions for accessing directory and attributes
- gets rid of ->directory->path references in namedev.c
- replaces sysfs_get_value_from_attributes with sysfs_get_classdev_attr

17 years ago[PATCH] man file update [Tue, 21 Oct 2003 06:33:54 +0000 (23:33 -0700)]
[PATCH] man file update

o CALLOUT method included
o required keys for every match method listed
o keywords changed to uppercase in EXAMPLE

17 years ago[PATCH] major database cleanups [Tue, 21 Oct 2003 05:48:44 +0000 (22:48 -0700)]
[PATCH] major database cleanups

Now we standardise on a struct udevice to pass around, and store in the
database.  This cleaned up the database code a lot.

17 years ago[PATCH] Changed test.block and test.tty to take ACTION from the command line. [Tue, 21 Oct 2003 05:45:46 +0000 (22:45 -0700)]
[PATCH] Changed test.block and test.tty to take ACTION from the command line.

17 years ago[PATCH] don't sleep if 'dev' file is already present on device add. [Tue, 21 Oct 2003 04:03:15 +0000 (21:03 -0700)]
[PATCH] don't sleep if 'dev' file is already present on device add.

instead sleep for up to 10 seconds waiting for it to show up.

17 years ago[PATCH] fix comment about how the "dev" file is made up. [Tue, 21 Oct 2003 03:31:24 +0000 (20:31 -0700)]
[PATCH] fix comment about how the "dev" file is made up.

17 years ago[PATCH] more database work. Now we only store the info we really need right now. [Tue, 21 Oct 2003 03:28:42 +0000 (20:28 -0700)]
[PATCH] more database work. Now we only store the info we really need right now.

Also delete the record after the device is gone, and fix up a memory leak.

17 years ago[PATCH] add BUS= bug to TODO list so it will not get forgotten. [Tue, 21 Oct 2003 00:58:23 +0000 (17:58 -0700)]
[PATCH] add BUS= bug to TODO list so it will not get forgotten.

Thanks to for pointing this out to me.

17 years ago[PATCH] man page update [Mon, 20 Oct 2003 04:59:45 +0000 (21:59 -0700)]
[PATCH] man page update

17 years ago[PATCH] udev: mode should be mode_t [Mon, 20 Oct 2003 04:56:21 +0000 (21:56 -0700)]
[PATCH] udev: mode should be mode_t

Unix file modes should be stored in a mode_t, not a standard type.  At
the moment it is actually unsigned, in fact, not a signed integer.

Attached patch does an s/int mode/mode_t mode/ and cleans up the

17 years ago[PATCH] udev: trivial trivialities [Mon, 20 Oct 2003 04:55:43 +0000 (21:55 -0700)]
[PATCH] udev: trivial trivialities

Yah yah, really trivial stuff...

- get_class_device() doesn't need to be exported; it
  should be static

- white space cleanup

17 years ago[PATCH] udev: cool test scripts again [Sat, 18 Oct 2003 08:18:04 +0000 (01:18 -0700)]
[PATCH] udev: cool test scripts again

> But the test.block script doesn't catch any partitions on the block
> devices :)

Never happy!

        [19:07:52]root@phantasy:~/src/udev/udev# ./test.block
        [19:13:37]root@phantasy:~/src/udev/udev# ls /udev/hd*
        ls: /udev/hd*: No such file or directory
        [19:13:42]root@phantasy:~/src/udev/udev# ./test.block
        [19:13:53]root@phantasy:~/src/udev/udev# ls /udev/hd*
        /udev/hda   /udev/hda2  /udev/hda4  /udev/hda6  /udev/hdd
        /udev/hda1  /udev/hda3  /udev/hda5  /udev/hdc

test.block now recurses /sys/block, looking for partitions.  Should add
all drives and all partitions.

17 years ago[PATCH] udev spec file symlink support [Sat, 18 Oct 2003 07:12:16 +0000 (00:12 -0700)]
[PATCH] udev spec file symlink support

> Hm, I would also like to add the /etc/hotplug.d/default/udev.hotplug
> symlink, but rpm doesn't seem to like symlinks in the %files section.
> Anyone know how to do this properly?

The problem is that the symlink is left dangling to an absolute location
in the build root, which won't exist on the installer's system.  RPM 4.0
and on catches this.

Attached patch fixes it up and makes it work.

17 years ago[PATCH] spec file changes. [Sat, 18 Oct 2003 07:11:13 +0000 (00:11 -0700)]
[PATCH] spec file changes.

17 years ago[PATCH] udev: cool test scripts [Sat, 18 Oct 2003 06:54:14 +0000 (23:54 -0700)]
[PATCH] udev: cool test scripts

This patch changes test.tty and test.block to add/remove each tty and
block device, respectively, on the system.  Great way to
populate/unpopulate udev rapidly.

Its just a simple for loop over the sysfs entries.

17 years ago[PATCH] test.block changes. [Sat, 18 Oct 2003 06:54:07 +0000 (23:54 -0700)]
[PATCH] test.block changes.

17 years ago[PATCH] ok, rpm likes the "_" character instead of "-" better... [Sat, 18 Oct 2003 06:39:26 +0000 (23:39 -0700)]
[PATCH] ok, rpm likes the "_" character instead of "-" better...