chiark / gitweb /
ogasawara@osdl.org [Thu, 22 Apr 2004 00:49:49 +0000 (17:49 -0700)]
[PATCH] gcov for udev
Sorry for the late email regarding the gcov code coverage information
for udev. For those of you who have not yet noticed, udev can now be
compiled with gcov support and provide code coverage analysis. All
pertinent scripts and information can be found in the udev tree. Please
refer to "README-gcov_for_udev" for detailed information on compiling
gcov into udev and obtaining code coverage analysis. I've enclosed a
patch that updates the README-gcov_for_udev. Also, "udev-test.pl" in
udev/test/ was expanded to test symlinks, permissions, and some lack of
node creation a little more thoroughly. All comments and feedback would
be greatly welcomed. Also, any extra testing would be appreciated.
Thanks,
kay.sievers@vrfy.org [Thu, 22 Apr 2004 00:49:44 +0000 (17:49 -0700)]
[PATCH] fix test regressions
On Sat, Apr 17, 2004 at 03:30:29AM +0200, Kay Sievers wrote:
> On Sat, Apr 17, 2004 at 02:04:55AM +0200, Kay Sievers wrote:
> > On Fri, Apr 16, 2004 at 04:04:42PM -0700, Greg KH wrote:
> > > Oh, and if you run the latest udev_test.pl, we have a bunch more tests,
> > > including a few that fail, if you were looking for something to do :)
> >
> > Will do it. We need to change apply_format(). I tries to expand the '%%'
> > with the next iteration over the string and removes the '%'.
The tests are all successful now.
If this patch breaks something else, we simply have too few tests :)
greg@kroah.com [Thu, 22 Apr 2004 00:43:17 +0000 (17:43 -0700)]
[PATCH] added rules for tun and raw devices
greg@kroah.com [Sat, 17 Apr 2004 07:29:36 +0000 (00:29 -0700)]
[PATCH] add udev conf.d file.
greg@kroah.com [Sat, 17 Apr 2004 07:25:46 +0000 (00:25 -0700)]
[PATCH] Switch the default config to point to a directory for the rules and permission files.
greg@kroah.com [Sat, 17 Apr 2004 07:25:20 +0000 (00:25 -0700)]
[PATCH] update the Red Hat .dev files to work on other distros
greg@kroah.com [Sat, 17 Apr 2004 07:23:17 +0000 (00:23 -0700)]
[PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default/ usage
Thanks to Red Hat for them.
greg@kroah.com [Sat, 17 Apr 2004 07:09:32 +0000 (00:09 -0700)]
[PATCH] add hints for red hat users from Leann Ogasawara <ogasawara@osdl.org>
greg@kroah.com [Sat, 17 Apr 2004 07:09:17 +0000 (00:09 -0700)]
[PATCH] add scripts to run gcov for udev from Leann Ogasawara <ogasawara@osdl.org>
kay.sievers@vrfy.org [Sat, 17 Apr 2004 06:58:27 +0000 (23:58 -0700)]
[PATCH] udev_selinux changes
Here is the fix for extras/seliux/*
o install the binary in /sbin/
o add symlink to /etc/dev.d/ with suffix .dev
o removed the undefined udev_log variable
o fixed compiler warnings
dan@reactivated.net [Sat, 17 Apr 2004 06:58:08 +0000 (23:58 -0700)]
[PATCH] Update writing udev rules docs
Here's an update for the writing udev rules document.
- Minor corrections/clarifications
- Added info about using NAME{all_partitions}
- Added more info about udevinfo, simplifying the rule-writing process
You can ignore the diff I sent you yesterday - according to the
20040415 bk
snapshot on codemonkey.org, you haven't applied it yet. This patch
incorporates that update, and some other changes I just made.
kay.sievers@vrfy.org [Sat, 17 Apr 2004 06:58:05 +0000 (23:58 -0700)]
[PATCH] udevd test script
Thanks to Yin, Hu <hu.yin@intel.com>, who made a nice perl script to test the
expected behavior of the udevd sequence number handling. The test sends
different SEQNUM sequences to udevd, while analyzing the reordering and timeout
handling of udevd.
md@Linux.IT [Sat, 17 Apr 2004 06:58:02 +0000 (23:58 -0700)]
[PATCH] devfs.sh-ide-floppy
greg@kroah.com [Sat, 17 Apr 2004 02:34:01 +0000 (19:34 -0700)]
[PATCH] Fix build process for users who have LC_ALL set to a non-english language.
Many thanks to jack_mort <mort_jack@yahoo.fr> for helping track this down.
greg@kroah.com [Fri, 16 Apr 2004 06:14:49 +0000 (23:14 -0700)]
[PATCH] Added expanded tests to the test framework from Leann Ogasawara <ogasawara@osdl.org>
greg@kroah.com [Tue, 13 Apr 2004 08:28:05 +0000 (01:28 -0700)]
[PATCH] added execelent "writing udev rules" document from Daniel Drake <dan@reactivated.net>
kay.sievers@vrfy.org [Tue, 13 Apr 2004 08:21:46 +0000 (01:21 -0700)]
[PATCH] udev_dbus changes
On Sun, Apr 11, 2004 at 03:51:07AM +0200, Kay Sievers wrote:
> Here we change extras/dbus/* to
> o install the binary in /etc/dev.d
> o append .dev to the binary
> o add David's copyright
> o add the listener script to watch the sent dbus messages
> o removed the undefined udev_log variable
> o switch printf() to dbg()
Here we install the binary in /usr/sbin/ and symlink it to
/etc/dev.d/ with the .dev suffix.
greg@kroah.com [Tue, 13 Apr 2004 08:19:41 +0000 (01:19 -0700)]
[PATCH] added rule to put USB printers in their proper places.
Thanks to Dan Weber <dan@mirrorlynx.com> for the info.
greg@kroah.com [Tue, 13 Apr 2004 07:43:14 +0000 (00:43 -0700)]
[PATCH] added rules for CAPI devices.
Thanks to Marcel Holtmann <marcel@holtmann.org> for the information.
greg@kroah.com [Fri, 9 Apr 2004 04:51:47 +0000 (21:51 -0700)]
[PATCH] added a dev.d alsa script to help people out.
Originally by Marco d'Itri <md@Linux.IT>
kay.sievers@vrfy.org [Fri, 9 Apr 2004 01:49:27 +0000 (18:49 -0700)]
[PATCH] fix devpath for netdev
Fix the devpath string for unhandled netdev's.
sjoerd@spring.luon.net [Fri, 9 Apr 2004 01:48:56 +0000 (18:48 -0700)]
[PATCH] DEVNODE -> DEVNAME transition fixes
It seems that the transition from DEVNODE to DEVNAME wasn't done
everywhere. This broke udev_dbus for me.
Attached patch does the transition in the places it wasn't done yet.
greg@kroah.com [Sat, 3 Apr 2004 06:47:22 +0000 (22:47 -0800)]
[PATCH] v024 release
kay.sievers@vrfy.org [Sat, 3 Apr 2004 06:16:38 +0000 (22:16 -0800)]
[PATCH] tweak node unlink handling
Based on a patch from Olaf Hering we remove the node now only if the
requested dev_t is different from the already existing node, so any
run of udevstart should preserve the inode number of the node file.
syslog while the right node is already there:
creating device node '/udev/hda'
make_node: preserve file '/udev/hda', cause it has correct dev_t
make_node: chmod(/udev/hda, 060600)
syslog for wrong file already there:
creating device node '/udev/hda'
make_node: already present file '/udev/hda' unlinked
make_node: chmod(/udev/hda, 060600)
syslog for directory with same name already there:
creating device node '/udev/hda'
make_node: unlink(/udev/hda) failed with error '21'
kay.sievers@vrfy.org [Sat, 3 Apr 2004 04:10:37 +0000 (20:10 -0800)]
[PATCH] switch udevd's msg_dump() to #define
Here we switch the msg_dump() to #define instead of commenting it out.
kay.sievers@vrfy.org [Sat, 3 Apr 2004 04:10:35 +0000 (20:10 -0800)]
[PATCH] handle netdev in udevruler
Here we get the netdev handling for udevruler, after all information
is available now in the udev database. It also fixes the way libsysfs is
used.
greg@kroah.com [Sat, 3 Apr 2004 01:02:09 +0000 (17:02 -0800)]
[PATCH] remove compiler warning from udevd.c
kay.sievers@vrfy.org [Sat, 3 Apr 2004 00:59:04 +0000 (16:59 -0800)]
[PATCH] man page cleanup
Small cleanup of the wording in the udev. man page.
kay.sievers@vrfy.org [Sat, 3 Apr 2004 00:59:01 +0000 (16:59 -0800)]
[PATCH] put config info in db for netdev
Small change, to put the config informations for handled network
interfaces into the database.
kay.sievers@vrfy.org [Sat, 3 Apr 2004 00:58:59 +0000 (16:58 -0800)]
[PATCH] increase udevd event timeout
I have a very slow Bluetooth adapter hotplug event call, so we need
to increase the event timeout to something larger than 6 seconds.
Apr 1 02:54:08 pim udevsend[12119]: main: DEVPATH = '/class/tty/ttyUB0'
Apr 1 02:54:08 pim udevsend[12119]: main: SEQNUM = '340'
Apr 1 02:54:08 pim udevsend[12120]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1'
Apr 1 02:54:08 pim udevsend[12120]: main: SEQNUM = '344'
Apr 1 02:54:09 pim udevsend[12133]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.1'
Apr 1 02:54:09 pim udevsend[12133]: main: SEQNUM = '342'
Apr 1 02:54:10 pim udevsend[12136]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.2'
Apr 1 02:54:10 pim udevsend[12136]: main: SEQNUM = '343'
Apr 1 02:54:13 pim udevsend[12141]: main: DEVPATH = '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0'
Apr 1 02:54:13 pim udevsend[12141]: main: SEQNUM = '341'
kay.sievers@vrfy.org [Sat, 3 Apr 2004 00:58:57 +0000 (16:58 -0800)]
[PATCH] udevstart fix
Sorry, udevstart needs a small cleanup after my recent copy/pastes.
greg@kroah.com [Fri, 2 Apr 2004 08:13:50 +0000 (00:13 -0800)]
[PATCH] only generate udev.8 on the fly, not all other man pages.
greg@kroah.com [Fri, 2 Apr 2004 08:13:20 +0000 (00:13 -0800)]
[PATCH] update bk ignore list some more.
greg@kroah.com [Fri, 2 Apr 2004 08:01:58 +0000 (00:01 -0800)]
[PATCH] switch to generate the man pages during the normal build, not during the install.
greg@kroah.com [Fri, 2 Apr 2004 07:55:45 +0000 (23:55 -0800)]
[PATCH] convert udev.8.in to use @udevdir@ macro for make install.
greg@kroah.com [Fri, 2 Apr 2004 07:47:23 +0000 (23:47 -0800)]
[PATCH] first step of making man pages dynamically generated.
Based on a an original patch from Olaf Hering <olh@suse.de>
greg@kroah.com [Fri, 2 Apr 2004 07:37:43 +0000 (23:37 -0800)]
[PATCH] add install and uninstall the etc/dev.d/net/hotplug.dev file to the Makefile
greg@kroah.com [Fri, 2 Apr 2004 07:36:58 +0000 (23:36 -0800)]
[PATCH] tweak net_test a bit.
kay.sievers@vrfy.org [Fri, 2 Apr 2004 06:59:56 +0000 (22:59 -0800)]
[PATCH] put netdev handling and dev.d/ in manpages
Mention the recently added netdev handling and the dev.d/ directories
in the man pages.
greg@kroah.com [Fri, 2 Apr 2004 05:52:46 +0000 (21:52 -0800)]
[PATCH] fix some segfaults when running udevtest for network devices.
greg@kroah.com [Fri, 2 Apr 2004 05:51:17 +0000 (21:51 -0800)]
[PATCH] make a net_test test script using udevtest.
greg@kroah.com [Fri, 2 Apr 2004 05:46:07 +0000 (21:46 -0800)]
[PATCH] handle the subsytem if provided in udevtest.
this is needed to test the /etc/dev.d/ stuff properly.
greg@kroah.com [Fri, 2 Apr 2004 05:38:59 +0000 (21:38 -0800)]
[PATCH] add hotplug.dev script to handle renamed network devices.
greg@kroah.com [Fri, 2 Apr 2004 03:25:41 +0000 (19:25 -0800)]
[PATCH] add a bunch of network class devices to the test sysfs tree
greg@kroah.com [Thu, 1 Apr 2004 09:02:53 +0000 (01:02 -0800)]
[PATCH] update RFC-dev.d docs due to DEVNODE to DEVNAME change
kay.sievers@vrfy.org [Thu, 1 Apr 2004 08:59:58 +0000 (00:59 -0800)]
[PATCH] DEVPATH for netdev
Here we change the DEVPATH for netdev's in the environment of the dev.d/
scripts to the name the device is renamed to. The original name doesn't
exist in the kernel after rename.
kay.sievers@vrfy.org [Thu, 1 Apr 2004 07:12:57 +0000 (23:12 -0800)]
[PATCH] netdev - udevdb+dev.d changes
Here is a patch to change the netdev handling in the database and for
the dev.d/ calls. I applies on top of the udevd.patch, cause klibc has
no sysinfo().
o netdev's are also put into our database now. I want this for the
udevruler gui to get a list of all handled devices.
All devices in the db are stamped with the system uptime value at
the creation time. 'udevinfo -d' prints it.
o the DEVPATH value is the key for udevdb, but if we rename
a netdev, the name is replaced in the kernel, so we add
the changed name to the db to match with the remove event.
NOTE: The dev.d/ scripts still get the original name from the
hotplug call. Should we replace DEVPATH with the new name too?
o We now only add a device to the db, if we have successfully created
the main node or successfully renamed a netdev. This is the main part
of the patch, cause I needed to clean the retval passing trough all
the functions used for node creation.
o DEVNODE sounds a bit ugly for netdev's so I exported DEVNAME too.
Can we change the name?
o I've added a UDEV_NO_DEVD to possibly skip the script execution
and used it in udev-test.pl.
udevstart is the same horror now, if you have scripts with logging
statements in dev.d/ it takes minutes to finish, can we skip the
scripts here too?
o The get_device_type() function is changed to be more strict, cause
'udevinfo -a -p /block/' gets a class device for it and tries to
print the major/minor values.
o bugfix, the RESULT value has now a working newline removal and a test
for this case.
kay.sievers@vrfy.org [Thu, 1 Apr 2004 07:03:46 +0000 (23:03 -0800)]
[PATCH] udevd race conditions and performance, assorted cleanups - take 2
here is a patch on top of your nice improvements.
I fixed the whitespace and it hopefully fixes the stupid timestamp bug in
udevd. Some stupid OS sets the hwclock to localtime and linux changes it
to UTC while starting. If any events are pending they may be delayed by
the users time distance from UTC :) So we use the uptime seconds now.
chris_friesen@sympatico.ca [Thu, 1 Apr 2004 07:03:07 +0000 (23:03 -0800)]
[PATCH] udevd race conditions and performance, assorted cleanups
This patch covers a number of areas:
1) sysfs.h is fixed up to use the common dbg() macro. This fixes the
case where DEBUG is defined but USE_LOG isn't.
2) udevstart.c is modified to include the proper headers, rather than
getting them indirectly which can break depending on Makefile flags
3) udevd.c gets some major changes:
a) I added a pipe from the signal handler. This fixes the race
conditions that I mentioned earlier. Basically, the point of the pipe
is to force the select() call to return immediately if a signal handler
fired before we actually started the select() call. This then lets us
run the appropriate code based on flags set in the signal handler proper.
b) I added a number of flags to coalesce calls to common routines. This
should make things slightly more efficient.
c) since most calls will tend to come in with a sequence number larger
than what has been received, I switched msg_queue_insert() to scan the
msg_list backwards to improve performance.
filename="udevd.diff"
kay.sievers@vrfy.org [Thu, 1 Apr 2004 07:00:45 +0000 (23:00 -0800)]
[PATCH] udevinfo patch
On Fri, Mar 26, 2004 at 06:36:32PM +0500, Ananth N Mavinakayanahalli wrote:
> On Fri, Mar 26, 2004 at 11:24:39AM +0100, Kay Sievers wrote:
> > On Fri, Mar 26, 2004 at 11:21:29AM +0500, Ananth N Mavinakayanahalli wrote:
> > > On Fri, Mar 26, 2004 at 04:47:35AM +0100, Kay Sievers wrote:
> > > > On Fri, Mar 26, 2004 at 01:26:46AM +0100, Carl-Daniel Hailfinger wrote:
> > > > > Greg KH wrote:
> > > > > > On Tue, Mar 23, 2004 at 01:51:01PM -0800, Daniel Stekloff wrote:
> > > >
> > > > No, it breaks the net device handling. I think we should change
> > > > libsysfs instead, not to return a class device for '/block', if
> > > > we want to fix it.
> > >
> > > /sys/block is considered a sysfs "class" and not a class_device. So,
> > > going by udevinfo's help, -p expects path to a class_device and _not_
> > > a class itself and hence option /sys/block with -p is not a valid query.
> > >
> > > Kay?
> >
> > Yes, it's invalid, but we shouldn't print major minor for a invalid
> > path. sysfs_open_class_device_path("/block") returns a device. If this is
> > the right behavior for libsysfs, I will change the get_device_type("/block")
> > not to return a 'b'-type.
>
> Libsysfs validates the path given to it for opening a class_device to be
> a valid directory; it does not however validate if the path is a valid
> class_device path. So, in the case of udevinfo, a 'b' type should not
> be returned if the path is just /sys/block or /sys/block/
This may prevent it.
atul.sabharwal@intel.com [Thu, 1 Apr 2004 06:56:51 +0000 (22:56 -0800)]
[PATCH] Add README for chassis_id
hare@suse.de [Thu, 1 Apr 2004 06:56:45 +0000 (22:56 -0800)]
[PATCH] fix SEGV in libsysfs/dlist.c
Hi all, Greg,
libsysfs/dlist.c: _dlist_mark_move()
is missing checks for empty lists and may (and indeed, does) crash when=20
called with empty dlists.
greg@kroah.com [Thu, 1 Apr 2004 02:27:02 +0000 (18:27 -0800)]
[PATCH] clean up chassis_id coding style.
atul.sabharwal@intel.com [Thu, 1 Apr 2004 02:18:58 +0000 (18:18 -0800)]
[PATCH] Add chassis_id program to extras directory
greg@kroah.com [Thu, 1 Apr 2004 02:17:38 +0000 (18:17 -0800)]
[PATCH] clean up the OSDL document formatting a bit
maryedie@osdl.org [Thu, 1 Apr 2004 02:11:27 +0000 (18:11 -0800)]
[PATCH] add OSDL documentation for persistent naming
greg@kroah.com [Tue, 30 Mar 2004 03:52:56 +0000 (19:52 -0800)]
[PATCH] add netlink rules to devfs and gentoo rules files.
greg@kroah.com [Tue, 30 Mar 2004 03:46:40 +0000 (19:46 -0800)]
[PATCH] added USB device rules to rules files.
greg@kroah.com [Tue, 30 Mar 2004 02:38:53 +0000 (18:38 -0800)]
[PATCH] clean up the gentoo rules file a bit more, adding dri rules.
greg@kroah.com [Tue, 30 Mar 2004 02:33:48 +0000 (18:33 -0800)]
[PATCH] fix up udev.rules to handle oss rules better.
Patch from Jordan <lx_xero@comcast.net>
greg@kroah.com [Sat, 27 Mar 2004 09:23:21 +0000 (01:23 -0800)]
[PATCH] 023_bk mark
kay.sievers@vrfy.org [Sat, 27 Mar 2004 09:21:46 +0000 (01:21 -0800)]
[PATCH] dev_d.c file sorting and cleanup
On Thu, Mar 25, 2004 at 02:52:13AM +0100, Kay Sievers wrote:
> Please have look if it still works for you, I only did a very quick
> test.
Here is a unified version, with all the functions moved to udev_lib.c.
We have a generic function now, to call a given fnct(char *) for every
file ending with a specific suffix, sorted in lexical order. We use it
to execute the dev.d/ files and read our rules.d/ files. The binary
should be a bit smaller now.
I've also changed it, to not do the dev.d/ exec for net devices.
kay.sievers@vrfy.org [Sat, 27 Mar 2004 09:21:43 +0000 (01:21 -0800)]
[PATCH] apply all_partitions rule to main block device only
Rules with NAME{all_partitions}= are now applied only to the parent of a
block device. We no longer need to exclude the partitions or sg* devices.
md@Linux.IT [Sat, 27 Mar 2004 09:21:41 +0000 (01:21 -0800)]
[PATCH] small ide-devfs.sh fix
The file may not exist and errors would be spewed on the console.
greg@kroah.com [Thu, 25 Mar 2004 08:14:47 +0000 (00:14 -0800)]
[PATCH] fix udev.spec file for where udevtest should be placed.
greg@kroah.com [Thu, 25 Mar 2004 08:08:46 +0000 (00:08 -0800)]
[PATCH] v023 release
greg@kroah.com [Thu, 25 Mar 2004 08:03:28 +0000 (00:03 -0800)]
[PATCH] create the /etc/dev.d/ directories in 'make install'
greg@kroah.com [Thu, 25 Mar 2004 07:31:04 +0000 (23:31 -0800)]
[PATCH] actually have udev run files ending in .dev in the /etc/dev.d/ directory as documented.
kay.sievers@vrfy.org [Thu, 25 Mar 2004 07:19:39 +0000 (23:19 -0800)]
[PATCH] hmm, handle net devices with udev?
Hmm, Arndt Bergmann sent a patch like this one a few weeks ago and
I want to bring the question back, if we want to handle net device
naming with udev.
With this patch it is actually possible to specify something like this
in udev.rules:
KERNEL="dummy*", SYSFS{address}="00:00:00:00:00:00", SYSFS{features}="0x0", NAME="blind%n"
KERNEL="eth*", SYSFS{address}="00:0d:60:77:30:91", NAME="private"
and you will get:
[root@pim udev.kay]# cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 1500 30 0 0 0 0 0 0 1500 30 0 0 0 0 0 0
private: 278393 1114 0 0 0 0 0 0 153204 1468 0 0 0 0 0 0
sit0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
blind0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
The udevinfo program is also working:
[root@pim udev.kay]# ./udevinfo -a -p /sys/class/net/private
looking at class device '/sys/class/net/private':
SYSFS{addr_len}="6"
SYSFS{address}="00:0d:60:77:30:91"
SYSFS{broadcast}="ff:ff:ff:ff:ff:ff"
SYSFS{features}="0x3a9"
SYSFS{flags}="0x1003"
SYSFS{ifindex}="2"
SYSFS{iflink}="2"
SYSFS{mtu}="1500"
SYSFS{tx_queue_len}="1000"
SYSFS{type}="1"
follow the class device's "device"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0':
BUS="pci"
ID="0000:02:01.0"
SYSFS{class}="0x020000"
SYSFS{detach_state}="0"
SYSFS{device}="0x101e"
SYSFS{irq}="11"
SYSFS{subsystem_device}="0x0549"
SYSFS{subsystem_vendor}="0x1014"
SYSFS{vendor}="0x8086"
The matching device will be renamed to the given name. The device name
will not be put into the udev database, cause the kernel renames the
device and the sysfs name disappears.
I like it, cause it plugs in nicely. We have all the naming features
and sysfs queries and walks inside of udev. The sysfs timing races
are already solved and the management tools are working for net devices
too. nameif can only match the MAC address now. udev can match any sysfs
value of the device tree the net device is connected to.
But right, net devices do not have device nodes :)
greg@kroah.com [Thu, 25 Mar 2004 07:11:08 +0000 (23:11 -0800)]
[PATCH] added RFC-dev.d document detailing how /etc/dev.d/ works.
greg@kroah.com [Thu, 25 Mar 2004 06:49:03 +0000 (22:49 -0800)]
[PATCH] fixed up udev.spec to handle selinux stuff properly now.
greg@kroah.com [Thu, 25 Mar 2004 06:47:15 +0000 (22:47 -0800)]
[PATCH] remove USE_DBUS and USE_SELINUX flags from the README as they are no longer present.
greg@kroah.com [Thu, 25 Mar 2004 06:46:29 +0000 (22:46 -0800)]
[PATCH] remove selinux stuff from the main Makefile
greg@kroah.com [Thu, 25 Mar 2004 06:41:45 +0000 (22:41 -0800)]
[PATCH] move udev_selinux into extras/selinux
greg@kroah.com [Thu, 25 Mar 2004 05:42:40 +0000 (21:42 -0800)]
[PATCH] fix dbus build in the udev.spec file.
greg@kroah.com [Thu, 25 Mar 2004 05:39:33 +0000 (21:39 -0800)]
[PATCH] remove dbus stuff from main Makefile
Not needed now that it's in extras.
greg@kroah.com [Thu, 25 Mar 2004 05:37:34 +0000 (21:37 -0800)]
[PATCH] move udev_dbus to extras/dbus
Should build now, but might have linking problems.
greg@kroah.com [Thu, 25 Mar 2004 05:23:42 +0000 (21:23 -0800)]
[PATCH] udev_dbus can now compile properly, but linnking is another story...
greg@kroah.com [Thu, 25 Mar 2004 05:21:21 +0000 (21:21 -0800)]
[PATCH] remove udev_dbus.h from Makefile
greg@kroah.com [Thu, 25 Mar 2004 05:18:36 +0000 (21:18 -0800)]
[PATCH] first cut at standalone udev_selinux program.
Will not work, need to finish working on this on a system with selinux installed...
greg@kroah.com [Thu, 25 Mar 2004 05:14:08 +0000 (21:14 -0800)]
[PATCH] remove selinux support from udev core as it's no longer needed.
greg@kroah.com [Thu, 25 Mar 2004 05:12:10 +0000 (21:12 -0800)]
[PATCH] first cut at standalone udev_dbus program.
Will not work, need to finish working on this on a system with dbus installed...
greg@kroah.com [Thu, 25 Mar 2004 05:11:36 +0000 (21:11 -0800)]
[PATCH] add get_devnode() helper to udev_lib for udev_dbus program
greg@kroah.com [Thu, 25 Mar 2004 05:11:13 +0000 (21:11 -0800)]
[PATCH] remove dbus code from core udev code as it's no longer needed to be there.
greg@kroah.com [Thu, 25 Mar 2004 04:46:58 +0000 (20:46 -0800)]
[PATCH] add /etc/dev.d/ support for udev add and remove events.
greg@kroah.com [Thu, 25 Mar 2004 01:50:40 +0000 (17:50 -0800)]
[PATCH] fix build error in namedev.c caused by previous patch.
dsteklof@us.ibm.com [Thu, 25 Mar 2004 01:34:38 +0000 (17:34 -0800)]
[PATCH] udevinfo patch
I think this is what you want for udevinfo. Patched against the latest BK
tree. I tested it and it seemed to work.
One other question, shouldn't udevinfo.c:print_all_attributes() check to
make sure attr->method is SYSFS_METHOD_SHOW along with checking to see
if attr->value != NULL or doesn't that matter?
Here's the libsysfs fix for print_device_chain():
kay.sievers@vrfy.org [Thu, 25 Mar 2004 01:34:00 +0000 (17:34 -0800)]
[PATCH] correct apply_format() for symlink only rules
Patch from Andrey, which restores the ability to use RESULT values in a
"symlink only" rule. We need to call apply_format() directly after
the matching rule, otherwise the RESULT value may be lost.
kay.sievers@vrfy.org [Wed, 24 Mar 2004 02:54:34 +0000 (18:54 -0800)]
[PATCH] don't init namedev on remove
Is there any reason to parse the rules for a remove event?
Without it, our test script needs only 2.1 seconds instead of 2.5,
so we have 19 percent more time for testing now :)
olh@suse.de [Wed, 24 Mar 2004 02:52:52 +0000 (18:52 -0800)]
[PATCH] uninitialized variable for mknod and friend
mknod gets an uninitialized variable, which leads to interesting file
modes. the bug is in namedev, devices with no match must not use the
uninitialized stuff were dev points to.
greg@kroah.com [Wed, 24 Mar 2004 02:49:56 +0000 (18:49 -0800)]
[PATCH] 022_bk tag
greg@kroah.com [Wed, 24 Mar 2004 02:43:49 +0000 (18:43 -0800)]
[PATCH] fix 'make spotless' to really do that in klibc.
bah, this took me forever to figure out why I couldn't build with klibc on
on box...
kay.sievers@vrfy.org [Wed, 24 Mar 2004 02:24:25 +0000 (18:24 -0800)]
[PATCH] first stupid try for a rule compose gui
On Mon, Mar 15, 2004 at 09:28:17PM +0100, Kay Sievers wrote:
> Here is a first simple and pretty stupid try to make a simple tool for
> composing of a udev rule.
>
> It reads the udevdb to get all currently handled devices and presents a
> list, where you can choose the device to compose the rule for.
>
> The composed rule is just printed out in a window, nothing else by now.
>
> Do we want something like this?
> Nevermind, I always wanted to know, how this newt thing works :)
Here is the next step, I still can't sleep and there are to many patches
pending to make something useful :)
Cause nobody wanted to play with me, I've made a screenshot.
The device list is sorted in alphabetical order now and if there are only
a few recently discovered devices, they are placed on top of the list.
For those who want to have a look:
http://vrfy.org/projects/udev/udevruler.png
The patch applies on top of today's mmap() patch. The db format is
changed to have the file and line number of the applied rule. So it
should be easy to edit the matching rule with this beast. It compiles
with "make all udevruler".
greg@kroah.com [Wed, 24 Mar 2004 02:21:45 +0000 (18:21 -0800)]
[PATCH] add a question/answer about automounting usb devices to the FAQ.
Thanks to bert hubert <ahu@ds9a.nl> for the text.
rgooch@ras.ucalgary.ca [Tue, 23 Mar 2004 06:43:07 +0000 (22:43 -0800)]
[PATCH] SCSI logical and physical names for udev
Hi, Greg. Appended is scsi-devfs.sh, a script for udev to implement
devfs-style names for SCSI hard discs, CD-ROM's and generic devices.
This has been tested with both hard discs and CD-ROM's. The SCSI
generic support should be OK for when there is sysfs/udev support for
SCSI generic devices. SCSI tapes are not yet implemented because I
don't have one to test with.
In addition, this script supports physical names, based on PCI bus
location, both longhand (/udev/bus/pci/...) and shorthand
(/udev/sd/pci/*).
greg@kroah.com [Tue, 23 Mar 2004 06:39:39 +0000 (22:39 -0800)]
[PATCH] Increase the name size as requested by Richard Gooch <rgooch@ras.ucalgary.ca>
greg@kroah.com [Tue, 23 Mar 2004 06:32:34 +0000 (22:32 -0800)]
[PATCH] fix udevtest to build properly after the big udev_lib change.
kay.sievers@vrfy.org [Tue, 23 Mar 2004 06:22:20 +0000 (22:22 -0800)]
[PATCH] replace fgets() with mmap() and introduce udev_lib.[hc]
Here we replace the various fgets() with a mmap() call for the config
file reading, due to the reported performance problems with klibc.
Thanks to Patrick's testing, it makes a very small, close to nothing
speed gain for libc users, but a 6 times speed increase for klibc users
with a 1000 line config file.
I've created a udev_lib.[hc] for this and also moved all the generic
stuff from udev.h in there and uninlined the functions.
tytso@mit.edu [Tue, 23 Mar 2004 06:19:37 +0000 (22:19 -0800)]
[PATCH] Trivial man page typo fixes to udev
Fix minor man page typo's.
kay.sievers@vrfy.org [Tue, 23 Mar 2004 06:18:34 +0000 (22:18 -0800)]
[PATCH] make udevtest a real program :)
Here are the missing pieces for udevtest. A simple man page is added,
the blacklist is removed, cause it can't work without having a subsystem.
The Makefile removes all manpages now with a uninstall and installs
udevtest in /usr/bin/.
Any old version from /sbin/ should be deleted by hand.
The only expected argument is the sysfs devpath, here I changed it to be
more tolerant to the input. The path may now be specified with or
without a leading slash and optionally with the /sys moutpoint prepended.
I hope this will end the confusion about the use of this program :)