summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [PATCH] v017 release017greg@kroah.com2005-04-263-2/+56
|
* [PATCH] more udev-016/extras/multipathchristophe.varoqui@free.fr2005-04-267-1387/+313
| | | | | | | | | | | | | | | | | | | | | incremental to udev-016/extras/multipath-0.0.16.3, * add a GROUP_BY_SERIAL flag. This should be useful for controlers that activate their spare paths on simple IO submition with a penalty. The StorageWorks HW defaults to this mode, even if the MULTIBUS mode is OK. * remove unused sg_err.c * big restructuring : split devinfo.c from main.c. Export : * void basename (char *, char *); * int get_serial (int, char *); * int get_lun_strings (char *, char *, char *, char *); * int get_evpd_wwid(char *, char *); * long get_disk_size (char *); Now we see clearly what is expected from an external package like scsi_id. * stop passing struct env as param
* [PATCH] more udev-016/extras/multipathchristophe.varoqui@free.fr2005-04-264-2/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Hello, > > incremental to udev-016/extras/multipath, > > * don't rely on the linux symlink in the udev/klibc dir since > udev build doesn't use it anymore. This corrects build breakage > * remove make_dm_node fn & call. Rely on udev for this. > > The first patch is to be applied. > The second is conditioned by udev dealing correctly with devmap names. > > For this I can suggest a CALLOUT rule like this : > KERNEL="dm-[0-9]*", PROGRAM="/tmp/name_devmap %M %m", NAME="%k", > SYMLINK="%c" > > With name_devmap like : > #!/bin/sh > /usr/sbin/dmsetup ls|/bin/grep "$1, $2"|/usr/bin/awk '{print $1}' > ok I coded the suggested tool. it works with the following rule : KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c" I don't know if it's right to keep this tools packaged with multipath because it's widely more general. Maybe Joe should merge it in the device-mapper package or provide the functionnality through dmsetup ?
* [PATCH] add udev_log to the documentation.greg@kroah.com2005-04-261-0/+8
|
* [PATCH] fix offsetof() define in klibc.greg@kroah.com2005-04-261-1/+1
|
* [PATCH] add some .spec file changes from Red Hat.greg@kroah.com2005-04-261-0/+10
|
* [PATCH] update the init.d udev script based on a patch from Red Hat.greg@kroah.com2005-04-261-7/+15
|
* [PATCH] remove the .udev.tdb when installing or uninstalling to be safe.greg@kroah.com2005-04-262-2/+4
|
* [PATCH] remove the database at startup.greg@kroah.com2005-04-261-0/+6
|
* [PATCH] udev - keep private data out of the database?kay.sievers@vrfy.org2005-04-262-8/+13
| | | | | | | | | Shouldn't we keep the temporary strings out of the database, or is this information useful for something? It cuts the length of the data from 628 to 275 bytes.
* [PATCH] fix bug in permission handling.greg@kroah.com2005-04-261-1/+1
|
* [PATCH] update klibc to version .107greg@kroah.com2005-04-263-1/+36
|
* [PATCH] add udevtest program to buildgreg@kroah.com2005-04-265-75/+59
| | | | | | | Also fix up some other dependancy issues in the Makefile. Thanks to Olaf Hering <olh@suse.de> for pointing them out.
* [PATCH] fix problem where usb devices can be either the main device or the ↵greg@kroah.com2005-04-262-18/+228
| | | | | | | | interface This fixes the bug of a long delay for mouse devices
* [PATCH] more logging.h cleanups to be a bit more flexible.greg@kroah.com2005-04-265-27/+40
|
* [PATCH] stop using mode_t as different libcs define it in different ways :(greg@kroah.com2005-04-262-2/+2
|
* [PATCH] udev add wild card compare for IDpatmans@us.ibm.com2005-04-261-1/+2
| | | | | | | | | | | | | | | Allow wild card comparison of the ID. Using strcmp_pattern here also means we on longer match partial values, for example, a scsi rule like this won't match anymore: BUS="scsi", ID=":0", NAME="sdfoo-short-bus_id-1" But this now works: BUS="scsi", ID="*:0", NAME="sdfoo-bus_id-wild-card-1"
* [PATCH] udev kill extra bus_id compares in match_idpatmans@us.ibm.com2005-04-261-16/+3
| | | | | | | | | | | | | | | Kill the extra bus_id check in match_id. This is wrong, especially since we check for rule matches with the parent devices on a given devices path. For example, given a device path of: /sys/devices/pci0000:01/0000:01:0c.0/host5/5:0:2:0 With this patch, the following rule will no longer match: BUS="scsi", ID="host5", NAME="sd-bus_id-host5"
* [PATCH] better credential patchkay.sievers@vrfy.org2005-04-262-36/+20
| | | | | | | | | | Here is a small improvement. We check for the type of message we receive and udevsend seems not to need all the credential setup stuff, the kernel will fill it for us. udevd now refuses to start as non root, cause it doesn't make any sense.
* [PATCH] remove some more KLIBC fixups that are no longer needed.greg@kroah.com2005-04-262-14/+1
|
* [PATCH] let udev-test.pl run an individual test if you ask it to.greg@kroah.com2005-04-261-17/+45
| | | | | | | | | | just put the test number on the command line: udev-test.pl 3 will run test number 3 If no test number is specified, all of the tests will be run, just like before.
* [PATCH] Handle the '!' character that some block devices have.greg@kroah.com2005-04-261-2/+16
|
* [PATCH] add a block device with a ! in the name, and a test for this.greg@kroah.com2005-04-262-0/+11
|
* [PATCH] fix up 'make release' to use bk to build the export tree.greg@kroah.com2005-04-261-9/+7
|
* [PATCH] udevd - client access authorizationkay.sievers@vrfy.org2005-04-262-6/+61
| | | | | | | | | | | | | | Here is the badly needed client authorization for udevd. Since we switched to abstract namespace sockets, we are unable to control the access of the socket by file permissions. So here we send a ancillary credential message with every datagram, to be able to verify the uid of the sender. The sender can't fake the credentials, cause the kernel doesn't allow it for non root users. udevd is still working with klibc here :)
* [PATCH] compile udevd with klibckay.sievers@vrfy.org2005-04-264-18/+26
| | | | | | | | | | | | | | | | | | | | On Mon, Feb 09, 2004 at 05:41:15AM +0100, Kay Sievers wrote: > It seems that today was just another udev-sunday for me :) > > Here is a working patch to compile udevd with klibc. > > It's sweet the static binary takes 6 kbytes and it runs > with only 80 kbytes virtual memory. > > I changed a few peaces and added a siginterrupt.c file to klibc. > We may check with hpa to get the changes upstream? So here is the next try :) hpa, for good reason, didn't like my changes to klibc. He will dump signal() completely from klibc instead, so here we switch to sigaction() and keep udevd working with klibc.
* [PATCH] udev - fix "ignore method"kay.sievers@vrfy.org2005-04-262-33/+32
| | | | | | | | | | On Sun, Feb 08, 2004 at 04:36:01PM +0100, Kay Sievers wrote: > We don't handle NAME="" the right way. Thanks to Emil None <emil71se@yahoo.com> > for pointing this out. Here is a fix for it and a trivial style cleanup. Changed the ignore dbg() to info().
* [PATCH] udev - fix cdrom symlink rulekay.sievers@vrfy.org2005-04-261-1/+1
| | | | | | We only need to look at the device, not at the partitions.
* [PATCH] fix log option code so that it actually works for all udev programs.greg@kroah.com2005-04-268-16/+49
| | | | | | Also introduce boolean type for config file to use.
* [PATCH] make logging a config optionazarah@nosferatu.za.org2005-04-265-0/+18
| | | | | | | | | | | | | | | | | Once again, patch to make logging a config option. Reason for this (since you asked for it): - In our setup it is easy (although still annoying) .. just edit the ebuild, add logging support (or remove it) and rebuild. For say a binary distro, having the logging is useful for debugging some times, but its more a once of, or rare thing, as you do not add or change config files every day. Sure, we can have logging by default, but many do not want ~300 lines of extra debugging in their logs is not pleasant, and they will complain. Rebuilding the package for that binary package (given the users it is targeted to) is usually not within most users grasp.
* [PATCH] finish syncing up with klibcgreg@kroah.com2005-04-265-5/+202
|
* [PATCH] sync with latest version of klibc (0.107)greg@kroah.com2005-04-2623-154/+732
|
* [PATCH] convert udevsend/udevd to DGRAM and single-threadedkay.sievers@vrfy.org2005-04-264-256/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Fri, Feb 06, 2004 at 01:08:24AM -0500, Chris Friesen wrote: > > Kay, you said "unless we can get rid of _all_ the threads or at least > getting faster, I don't want to change it." > > Well how about we get rid of all the threads, *and* we get faster? Yes, we are twice as fast now on my box :) > This patch applies to current bk trees, and does the following: > > 1) Switch to DGRAM sockets rather than STREAM. This simplifies things > as mentioned in the previous message. > > 2) Invalid sequence numbers are mapped to -1 rather than zero, since > zero is a valid sequence number (I think). Also, this allows for real > speed tests using scripts starting at a zero sequence number, since that > is what the initial expected sequence number is. > > 3) Get rid of all threading. This is the biggie. Some highlights: > a) timeout using setitimer() and SIGALRM > b) async child death notification via SIGCHLD > c) these two signal handlers do nothing but raise volatile flags, > all the > work is done in the main loop > d) locking no longer required I cleaned up the rest of the comments, the whitespace and a few names to match the whole thing. Please recheck it. Test script is switched to work on subsystem 'test' to let udev ignore it.
* [PATCH] udevd - kill the lockfilekay.sievers@vrfy.org2005-04-263-31/+0
|
* [PATCH] update extras/multipathchristophe.varoqui@free.fr2005-04-263-41/+5
| | | | | | | | | | | | | | | | | | | | | incremental to udev-016/extras/multipath, * don't rely on the linux symlink in the udev/klibc dir since udev build doesn't use it anymore. This corrects build breakage * remove make_dm_node fn & call. Rely on udev for this. The first patch is to be applied. The second is conditioned by udev dealing correctly with devmap names. For this I can suggest a CALLOUT rule like this : KERNEL=3D"dm-[0-9]*", PROGRAM=3D"/tmp/name_devmap %M %m", NAME=3D"%k", SY= MLINK=3D"%c" With name_devmap like : #!/bin/sh /usr/sbin/dmsetup ls|/bin/grep "$1, $2"|/usr/bin/awk '{print $1}'
* [PATCH] udevd - fix socket path lengthkay.sievers@vrfy.org2005-04-262-2/+7
| | | | | | | | | | It seems that the guys are no longer differ about the right size of the socket address :) The kernel simply takes all bytes until the specified length as the name, so the real length should be enough.
* [PATCH] udevd - switch socket path to abstract namespacekay.sievers@vrfy.org2005-04-264-6/+5
| | | | | | | | | | | | | | | | | | | As Chris Friesen <chris_friesen@sympatico.ca> suggested, here we switch the unix domains socket path to abstract namespace and get rid of the socket file in the filesystem. Hey, this was new to me today. So here a few words: Linux supports a abstract namespace for sockets. We don't need a physical file on the filesystem but only a unique string magically starting with the '\0' character. strace with real file: connect(3, {sa_family=AF_UNIX, path="/udev/.udevd.sock"}, 110) strace with abstract namespace: connect(3, {sa_family=AF_UNIX, path=@udevd}, 110)
* [PATCH] udevd - allow to bypass sequence numberkay.sievers@vrfy.org2005-04-262-12/+23
| | | | | | | | | | | | | | | | This patch allows udevsend to be called by the user and not only by the kernel with its SEQNUM. If no SEQNUM is given, we move the event straight to the exec queue and don't look if something is missing. I don't know if this is really needed, but some people seem trying to send events trough udevd instead of calling udev directly with their scripts and confuse the reorder logic with that. So at least, we may remove this source of confusion and udevsend is much much faster back than udev itself and it will also block concurrent events for the same devpath.
* [PATCH] 016_bk markgreg@kroah.com2005-04-262-2/+2
|
* [PATCH] include used functionkay.sievers@vrfy.org2005-04-261-0/+1
| | | | | | This includes the missing header for the use of getpid in logging.h.
* [PATCH] fix up Makefile dependancies for udev_version.hgreg@kroah.com2005-04-261-3/+3
|
* [PATCH] v016 release016greg@kroah.com2005-04-263-2/+37
|
* [PATCH] add udevd and udevsend to the spec file.greg@kroah.com2005-04-261-1/+10
|
* [PATCH] make /etc/hotplug.d/default/udev.hotplug symlink point to udevsend now.greg@kroah.com2005-04-261-2/+2
|
* [PATCH] add KERNEL_DIR option so that the distros will be happygreg@kroah.com2005-04-265-11/+20
| | | | | | Based on a patch from Svetoslav Slavtchev <svetljo@gmx.de>
* [PATCH] get_dev_number() in extras/ide-devfs.shelkropac@students.zcu.cz2005-04-261-1/+1
| | | | | | | | | | this patch corrects ide devices with number greater than 9 being linked into wrong discs/discX directories (my hda10 device was in discs/disc1 directory) it adds % into pattern for $DRIVE, so for example, hda10 is not eaten to hda1, but to hda, and break in for cycle works for it
* [PATCH] FAQ udev.rules.devfsrrm3@rrm3.org2005-04-261-1/+1
| | | | | | I have a very small patch for the udev FAQ. :-)
* [PATCH] make udevsend binary even smallergreg@kroah.com2005-04-261-0/+2
|
* [PATCH] let udevsend build with klibckay.sievers@vrfy.org2005-04-263-4/+14
| | | | | | | | | | | > I don't mind udevd using glibc, I just want the programs that get run a > lot of different times (udev and udevsend) to be as small as possible to > get the best cache results. As udevd sticks around all the time, it's > not as important. Sound sane to you? Oh, nice. Good idea.
* [PATCH] udevsend now almost compiles with klibc, struct sockaddr_un is only ↵greg@kroah.com2005-04-261-5/+3
| | | | problem now.