summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [PATCH] v010 release010greg@kroah.com2005-04-263-2/+53
|
* [PATCH] fix udev-test.plkay.sievers@vrfy.org2005-04-261-1/+1
| | | | | | | | | | | 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
* [PATCH] small cleanup udev-remove.ckay.sievers@vrfy.org2005-04-261-11/+7
| | | | | | | Here is a small cleanup. It replaces the malloc in udev-remove.c with a struct, like we do in udev-add.c
* [PATCH] fix complier warning in namedev.cgreg@kroah.com2005-04-261-1/+0
|
* [PATCH] add documentation for the new '%k' modifier (kernel name replacement)greg@kroah.com2005-04-262-1/+5
|
* [PATCH] add documentation about the multiple sysfs values that are now ↵greg@kroah.com2005-04-261-1/+5
| | | | allowed for the LABEL rule.
* [PATCH] add tests for multi-file LABEL rules.greg@kroah.com2005-04-262-1/+22
|
* [PATCH] add ability to have up to 5 SYSFS_ file/value pairs for the LABEL rule.greg@kroah.com2005-04-263-51/+97
|
* [PATCH] change pgsizeananth@in.ibm.com2005-04-261-1/+1
| | | | | | | | | | 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)?
* [PATCH] extras multipath updatechristophe.varoqui@free.fr2005-04-264-65/+99
| | | | | | | | | | | | | | | | 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
* [PATCH] extras multipath updatechristophe.varoqui@free.fr2005-04-262-21/+53
| | | | | | | | | | | | 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"
* [PATCH] extras multipath updatechristophe.varoqui@free.fr2005-04-264-102/+150
| | | | | | | | | | | | | | | | | | | | | 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
* [PATCH] extras multipath updatechristophe.varoqui@free.fr2005-04-265-131/+194
| | | | | | | | | | | | | | | | | | | | | | 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
* [PATCH] experimental CALLOUT script for devfs ide node creation with cd, ↵kay.sievers@vrfy.org2005-04-261-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [PATCH] add any valid devicekay.sievers@vrfy.org2005-04-261-22/+1
|
* [PATCH] introduce format char 'k' for kernel-namekay.sievers@vrfy.org2005-04-262-12/+16
| | | | | | | | | | 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' :)
* [PATCH] trivial make fixeskay.sievers@vrfy.org2005-04-261-1/+1
| | | | | | | One patch to let bk ignore the created udev.conf. The second to depend on the .h files.
* [PATCH] Just live with a sleep(1) in namedev for now until libsysfs is fixed up.greg@kroah.com2005-04-261-36/+22
|
* [PATCH] try to wait until the proper device file shows up in sysfs.greg@kroah.com2005-04-261-12/+147
| | | | | | | this still isn't working correctly for partitions, so don't think this is the final version...
* [PATCH] libsysfs 0.4.0 patchdsteklof@us.ibm.com2005-04-269-176/+236
| | | | | | | | | | | | | | | 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.
* [PATCH] don't overwrite old config on installkay.sievers@vrfy.org2005-04-261-6/+19
| | | | | | | Here is a patch for the Makefile to look for a already installed config and not to overwrite it.
* [PATCH] udev-remove.c cleanupskay.sievers@vrfy.org2005-04-263-19/+17
| | | | | | | | 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.
* [PATCH] remove unneeded TODO and FIXME entrygreg@kroah.com2005-04-262-2/+0
| | | | | | Thanks to Kay for pointing it out to me.
* [PATCH] clean up the stand-alone tests to work properly on other people's ↵greg@kroah.com2005-04-264-0/+12
| | | | machines.
* [PATCH] bug in udev-remove.ckay.sievers@vrfy.org2005-04-261-3/+5
| | | | | | | | | | | | 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)'
* [PATCH] fix scsi_id segfault with udev-009dsteklof@us.ibm.com2005-04-262-3/+9
| | | | | | | | | | | | | | | | | | | | | 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:
* [PATCH] add libsysfs docsdsteklof@us.ibm.com2005-04-261-0/+1687
| | | | | | | Here's the latest libsysfs doc, you may want to include it in your docs directory.
* [PATCH] Allow build with empty EXTRASakropel1@rochester.rr.com2005-04-261-4/+4
| | | | | | | 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.
* [PATCH] add tests to catch whitespace and comment config file parsing errors.greg@kroah.com2005-04-261-0/+33
|
* [PATCH] fix comment and whitespace handling in config files.Roman.Kagan@itep.ru2005-04-261-4/+4
| | | | | | | | | This chunk broke parsing of blank lines and comments with blanks before '#'. Please revert it with the patch below. Roman.
* [PATCH] mark config files as such in the rpm spec filedhollis@davehollis.com2005-04-261-3/+3
| | | | | | | | | | | | 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.
* [PATCH] trivial cleanup parser changeskay.sievers@vrfy.org2005-04-262-7/+7
| | | | | | | | 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
* [PATCH] 009_bk makefile changes.greg@kroah.com2005-04-262-2/+2
|
* [PATCH] v009 release009greg@kroah.com2005-04-263-2/+67
|
* [PATCH] signal fixes due to klibc update.greg@kroah.com2005-04-264-0/+4
|
* [PATCH] sync klibc with release 0.95greg@kroah.com2005-04-2628-231/+240
|
* [PATCH] add mol permissions to the debian permissions file.greg@kroah.com2005-04-261-0/+1
| | | | | | Info from Mathieu Segaud <matt@minas-morgul.org>
* [PATCH] update the FAQ with info about bad modprobe events from the devfs ↵greg@kroah.com2005-04-261-0/+6
| | | | scheme...
* [PATCH] dump latest klibc into the udev build treeolh@suse.de2005-04-262-9/+9
| | | | | | | | 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.
* [PATCH] some cleanups due to the need for LABEL rules to use "SYSFS_" now.greg@kroah.com2005-04-262-9/+9
|
* [PATCH] don't rely on field order in namedev_parsekay.sievers@vrfy.org2005-04-266-191/+143
| | | | | | | | | | | | 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
* [PATCH] remove udev from runlevels on uninstallrml@ximian.com2005-04-261-0/+5
| | | | | | | I guess we should run 'chkconfig --del udev' on removal to clear out the now-stale udev entries, if any.
* [PATCH] install initscript in udev rpmrml@ximian.com2005-04-262-0/+7
| | | | | | | | 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.
* [PATCH] more extras/multipath changeschristophe.varoqui@free.fr2005-04-261-6/+36
| | | | | | | | | | | | * 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 ?
* [PATCH] get part of callout return stringkay.sievers@vrfy.org2005-04-262-5/+45
| | | | | | | | | | | | | | | | | | 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
* [PATCH] remove '\n' from end of callout returnkay.sievers@vrfy.org2005-04-261-4/+7
| | | | | | | remove possible newline at end of callout output, for easier matching with ID=
* [PATCH] Add restart target to the etc/init.d/udev scriptgreg@kroah.com2005-04-261-2/+6
| | | | | | Change made by Rolf Eike Beer <eike-hotplug@sf-tec.de>
* [PATCH] add init.d/udev to "make install"eike-hotplug@sf-tec.de2005-04-261-0/+2
| | | | | | adds /etc/init.d/udev to "make install"
* [PATCH] add init.d/udev to the spec fileeike-hotplug@sf-tec.de2005-04-261-0/+1
| | | | | | add /etc/init.d/udev to the SPEC-File and this way to the RPM
* [PATCH] pre-libsysfs-0.4.0 patchdsteklof@us.ibm.com2005-04-269-699/+1175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.