aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2012-03-18build-sys: place build binaries in the rootKay Sievers1-1/+1
2012-02-20test: remove outdated key attributesKay Sievers2-3/+3
2012-01-10fix debug messageKay Sievers1-1/+1
2012-01-10tabs are as useful as a hole in the headKay Sievers2-1039/+1037
2012-01-09add test/src to .gitignoreKay Sievers1-0/+1
2012-01-06replace unpacked sysfs test tree 'test/sys/' with packed tarballKay Sievers9586-10676/+34
2012-01-06merge udev/, libudev/, systemd/ files in src/; move extras/ to src/Kay Sievers1-1/+1
2012-01-01remove mknod() logic and rely on 'devtmpfs'Kay Sievers9-252/+29
2011-12-25make: introduce --with-rootprefix=Kay Sievers3-33/+35
2011-12-23build argv[] for builtin commandsKay Sievers1-1/+1
2011-12-05use libexecdir, bindir, sbindir, switch to /usr/lib/udev in documentationKay Sievers1-1/+1
2011-10-06remove 'udevadm trigger --type=failed' and SYSFS, ID, BUS keysKay Sievers1-1/+1
2011-08-05implement path_id, usb_id, input_id as built-in commandKay Sievers1-2/+12
2011-05-31rule-syntax-check.py: use print()Kay Sievers1-3/+3
2011-05-16libudev: device - use DEVMODE from kernel as the default modeKay Sievers1-1/+1
2011-03-23use /run/udev/ if possible and fall back to /dev/.udev/Kay Sievers1-0/+1
2010-12-14udevd: write full database file for (unsupported) renamed device nodesKay Sievers2-0/+2
2010-09-21Add automatic rules syntax checkMartin Pitt2-0/+81
Add test/rule-syntax-check.py, a script for checking the syntax of all udev rules files passed as command line arguments. Add a wrapper test/rules-test.sh which calls rule-syntax-check.py on all udev rules that we ship, but does nothing if Python is not available. Integrate this into make check/distcheck.
2010-05-20fix tests and allow MODE=000Kay Sievers1-5/+5
2010-05-05warn when renaming kernel-provided nodes instead of adding symlinksKay Sievers1-11/+0
2010-04-13remove "ignore_remove" optionKay Sievers1-10/+0
2010-04-13remove "all_partitions" optionKay Sievers1-43/+0
We can not predict the major/minor of non-existing devices: $ grep . /sys/class/block/sd*/dev /sys/class/block/sda1/dev:259:524288 /sys/class/block/sda2/dev:259:262144 /sys/class/block/sda3/dev:259:786432 /sys/class/block/sda4/dev:259:131072 /sys/class/block/sda/dev:259:0 /sys/class/block/sdb/dev:259:655360 /sys/class/block/sdc/dev:259:393216 If this functionality is still needed for some broken hardware, it needs to be solved with a tool not part of the udev package. Because such option is unreliable and unsafe to use.
2010-01-27update testsKay Sievers2-343/+253
2009-11-16udev-test.pl: catch-up with recent changesKay Sievers1-23/+3
2009-09-07test: catch possible bug in GOTO resolvingKay Sievers1-2/+3
2009-08-19change database file namesKay Sievers1-2/+2
With very deeply nested devices, We can not use a single file name to carry an entire DEVPATH. Use <subsystem>:<sysname> as the database filename, which should also simplify the handling of devices moving around, as these values will not change but still be unique. For the name stack we use the <maj>:<min> now as the filename. > On Tue, Aug 18, 2009 at 09:59:56AM -0400, Ric Wheeler wrote: > The first is that udev grumbles during boot about "file name too long" > like the following: > > Aug 17 06:49:58 megadeth udevd-event[20447]: unable to create db file > '/dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:04.0\x2f0000:17:00.0\x2f0000:18:0a.0\x2f0000:1f:00.0\x2fhost11\x2fport-11:0\x2fexpander-11:0\x2fport-11:0:0\x2fexpander-11:1\x2fport-11:1:0\x2fexpander-11:2\x2fport-11:2:17\x2fexpander-11:3\x2fport-11:3:1\x2fend_device-11:3:1\x2fbsg\x2fend_device-11:3:1': > File name too long
2009-08-07Fix another relative path for the new working directory.Diego Elio 'Flameeyes' Pettenò1-1/+1
2009-08-07Replace the custom test-run target with the standard make check.Diego Elio 'Flameeyes' Pettenò1-1/+1
A little fix is needed for the udev-test.pl script (to be called with the proper path), but this allows for the test binaries to be only built when running the tests themselves.
2009-05-22test: check string substitutions in OWNER and GROUPBenjamin Gilbert1-3/+3
String substitutions in OWNER and GROUP keys were broken in udev 137-142. Explicitly test for this, since such breakage will not manifest in typical rulesets.
2009-05-20use more efficient string copyingKay Sievers1-9/+0
2009-05-19remove format char string truncation syntaxKay Sievers1-20/+1
2009-05-13fix possible endless loop for GOTO to non-existent LABELKay Sievers1-0/+11
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526365
2009-02-05test: add test for empty and non-existent ATTRKay Sievers2-0/+27
2009-01-30fix NAME="" logicKay Sievers1-19/+21
Reported-By: Soh Kam Yung <sohkamyung@gmail.com>
2008-11-12string index - split nodes and childs to allow and unlimited number of childsKay Sievers1-0/+8
2008-10-26libudev: device - allocate envp array only onceKay Sievers1-1/+2
2008-10-26test: add RUN+="socket: ..." to a test to run monitor codeKay Sievers1-2/+2
2008-10-26fix $attr{[<subsystem>/<sysname>]<attribute>} substitutionKay Sievers1-0/+10
2008-10-25match KEY="A|B" without temporary string copyKay Sievers1-0/+25
2008-10-23replace in-memory rules array with match/action token listKay Sievers1-25/+28
The in-memory rule array of a common desktop distro install took: 1151088 bytes with the token list: 109232 bytes tokens (6827 * 16 bytes), 71302 bytes buffer
2008-10-17test: fix a few unintentially wrongly written rules which cause parse errorsKay Sievers1-11/+21
2008-10-14test: move global ENV{ENV_KEY_TEST}="test" to local ruleKay Sievers1-3/+5
2008-10-14delete simple-build-check.shKay Sievers1-38/+0
2008-09-29test: replace last reference of "/class/*" devpathKay Sievers1-2/+2
2008-09-29test: add missing pci directory because of .gitignore *.7Kay Sievers1257-1380/+2082
2008-09-29test: replace ancient sysfs tree with recent oneKay Sievers9189-526/+10026
2008-09-29libudev: enumerate - split new() and scan()Kay Sievers1-2/+2
2008-09-16udev-test.pl: set non-zero exitcode if tests failAlan Jenkins1-0/+4
2008-09-08udev-test.pl: set udev_log="err"Kay Sievers1-2/+2
2008-09-03udev-test.pl: remove left-over comment from --valgrind optionKay Sievers1-2/+0
2008-09-01udev-test.pl: add --valgrind optionKay Sievers1-17/+30
2008-07-30use autotoolsKay Sievers1-1/+1
2008-07-18move default rules from /etc/udev/rules.d/ to /lib/udev/rules.d/Kay Sievers1-3/+3
None of these rules is supposed to be changed by users, so move them out of /etc. Custom rules, and automatically generated rules stay in /etc. All rules are still processed in lexical order, regardless which directory they live in.
2008-05-19add substitution in MODE= fieldErik van Konijnenburg1-4/+32
Do substitition processing in MODE field, similar to substitution in OWNER, GROUP etc fields. Add test case for normal and overflow behaviour. Document in manpage.
2008-04-21fstab_import: add program to IMPORT matching fstab entryKay Sievers1-1/+2
DEVPATH=/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda6 SUBSYSTEM=block ... ID_FS_USAGE=filesystem ID_FS_TYPE=ext3 ID_FS_VERSION=1.0 ... FSTAB_NAME=/dev/disk/by-id/scsi-SATA_ST910021AS_3MH0Y3KF-part6 FSTAB_DIR=/home/kay/work FSTAB_TYPE=ext3 FSTAB_OPTS=defaults FSTAB_FREQ=1 FSTAB_PASSNO=1
2008-04-18allow setting of MODE="0000"Kay Sievers1-0/+10
2008-03-21test: remove duplicated EXTRA entryKay Sievers1-1/+0
2008-03-14extend hack to allow TEST=="*/start"Kay Sievers1-0/+9
2008-03-14test: add "subsystem" links to all devicesKay Sievers108-0/+99
2007-11-13remove udevstartKay Sievers1-61/+0
2007-08-16accept relative path for TESTKay Sievers1-0/+28
2007-07-25restore behavior of NAME==Kay Sievers1-0/+12
2007-07-24collect: extra to synchronize actions across eventsHannes Reinecke1-0/+1
2007-07-16allow SYMLINK== matchKay Sievers1-12/+0
2007-06-03add "[$SUBSYSTEM/$KERNEL]<attribute>" lookupKay Sievers1-0/+9
2007-05-21replace_chars: replace % characterKay Sievers1-21/+1
2007-03-28finally remove the directory event-multiplexer crapKay Sievers1-1/+0
2007-03-12delete dasd_id, it moved to s390-toolsKay Sievers1-1/+0
These s390-tools-1.6.0 (applicable for the "October 2005 stream") replace s390-tools-1.5.4. New tools: * tape390_crypt: Tool to control and query crypto settings for 3592 zSeries tape devices. * mon_fsstatd: Daemon that writes filesystem utilization data to the z/VM monitor stream. * dumpconf: Allows to configure the dump device used for system dump in case a kernel panic occurs. * dasdinfo: Display unique DASD ID, either uid or volser. * 59-dasd.rules: udev rules for unique DASD device nodes created in /dev/disk/. http://www.ibm.com/developerworks/linux/linux390/s390-tools-1.6.0.html
2007-02-25add test for an attribute which contains an operator charKay Sievers2-1/+11
2006-12-08rename "udev.c" to "test-udev.c" - it is only for testingKay Sievers1-1/+1
2006-09-05add persistent rules generator for net devices and optical drivesMarco d'Itri1-1/+3
2006-09-05let $attr{symlink} return the last element of the pathKay Sievers1-0/+18
Example for /block/sda: SUBSYSTEMS="scsi", ENV{COMMENT}="$attr{driver}" sets COMMENT=sd SUBSYSTEMS="pci", ENV{COMMENT}="$attr{driver}" sets COMMENT=ata_piix
2006-09-05fix ENV{TEST}="Test: $env{TEST}"Kay Sievers1-0/+13
2006-08-20use new key names in test programsKay Sievers2-139/+163
2006-08-20skip rule, if too may keys of the same type are usedKay Sievers1-1/+1
2006-08-19consistent key naming to match only the event device or include all parent ↵Kay Sievers1-3/+3
devices This scheme is more consistent and makes it obvious if a match happens against the event device only, or the full chain of parent devices. The old key names are now: BUS -> SUBSYSTEMS ID -> KERNELS SYSFS -> ATTRS DRIVER -> DRIVERS Match keys for the event device: KERNEL SUBSYSTEM ATTR DRIVER (in a future release, for now the same as DRIVERS) Match keys for all devices along the parent device chain: KERNELS SUBSYSTEMS ATTRS DRIVERS ID, BUS, SYSFS are no longer mentioned in the man page but still work. DRIVER must be converted to DRIVERS to match the new scheme. For now, an error is logged, if DRIVER is used. In a future release, the DRIVER key behaviour will change.
2006-08-13don't report an error on overlong comment linesKay Sievers1-0/+12
2006-08-05switch ifdef __KLIBC__ to ifndef __GLIBC__Kay Sievers1-8/+0
2006-07-04remove broken %e enumerationKay Sievers1-68/+0
2006-06-14don't remove symlinks if they are already thereKay Sievers1-0/+1
Consecutive "add" events will not remove and recreate the same symlinks anymore. No longer valid links, like after changing a filesystem label, will still be removed.
2006-04-24allow NAME=="value" to check for already assigned valueKay Sievers1-6/+43
2006-03-29move all *_id programs to /lib/udev/Kay Sievers1-0/+1
2006-01-26don't add $SUBSYSTEM automatically as $1 to programsKay Sievers1-9/+0
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-16fix BUS, ID, $id usageKay Sievers1-44/+27
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09replace libsysfsKay Sievers2-24/+30
We never used any of the libsysfs convenience features. Here we replace it completely with 300 lines of code, which are much simpler and a bit faster cause udev(d) does not open any syfs file for a simple event which does not need any parent device information. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16remove "udev_db" option from config fileKay Sievers1-4/+0
All udev state is kept in /$udev_root/.udev/ now. No option to configure that anymore, it will always be there. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-10fix tests and remove no longer useful stuffKay Sievers9-260/+3
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-09remove our own copy of klibcKay Sievers1-7/+8
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-02test: add "driver" and "bus" links to test sysfs treeKay Sievers29-5/+20
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-28remove no longer working udevd-test programKay Sievers3-723/+0
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27fix the new warnings I asked forKay Sievers1-2/+2
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27use DESTDIR on uninstall, no need to pass prefix to submakeKay Sievers1-10/+5
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-09-14add install test to 'make buildtest'Kay Sievers1-4/+15
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14EXTRAS: cleanup and sync all MakefilesKay Sievers1-1/+0
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-06add edd_id tool to match BIOS EDD disk informationKay Sievers1-0/+1
Thanks to: John Hull <John_Hull@Dell.com> Matt Domsch <Matt_Domsch@Dell.com> Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30Makefile: remove all the duplicated rulesKay Sievers1-1/+0
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-29udev_test.pl: we replace untrusted chars with '_'Kay Sievers1-1/+1
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28start to enforce plain ascii or valid utf8Kay Sievers1-1/+19
No device node or symlink can have other characters as plain readable ascii or valid utf8. The /dev/disk/by-label/* symlinks can no longer contain weird stuff read from untrusted sources. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-16ENV{TEST}=="1" compares and ENV{TEST}="1" sets the environmentKay Sievers1-0/+25
This can be uses to export stuff to the event environment or to carry a state from one rule to another, like enabling/disabling later rules conditionally. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11added cdrom_id to the build checkGreg KH1-0/+1
2005-08-09add firmware_helper to load firmwareKay Sievers1-1/+2
From: Bill Nottingham <notting@redhat.com> Changed reading of firmware blob to mmap and let firmware_helper follow the setting of the log level with UDEV_LOG.
2005-07-19create_floppy_devices: add tool to create floppy nodes based on sysfs infoHannes Reinecke1-0/+1
2005-07-16allow rules to have labels and skip to next labelKay Sievers1-0/+13
This will allow us to have whole blocks of rules to skip conditionally. The following section creates the node "yes": GOTO="TEST" NAME="no" NAME="no2", LABEL="NO" NAME="yes", LABEL="TEST" NAME="no3"
2005-07-13dasd_id: add s390 disk-label proberHannes Reinecke1-0/+1
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-07-12IMPORT: add {parent} to import the persistent data of the parent deviceKay Sievers1-0/+21
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12allow multiple values to be matched with KEY=="value1|value2"Kay Sievers1-0/+21
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07fix symlink values separated by multiple spacesKay Sievers1-0/+11
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07fix typo in group assignmentKay Sievers1-1/+25
Thanks to: Georgi Georgiev
2005-07-04add usb_id program to generate usb-storage device identifiersKay Sievers1-1/+7
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-06-30prepare RELEASE-NOTESKay Sievers1-2/+2
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25add ata_id to read serial numbers from ATA drivesKay Sievers1-1/+1
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25IMPORT allow to import program returned keys into the envKay Sievers1-1/+11
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25IMPORT=<file> allow to import a shell-var style config-fileKay Sievers1-0/+19
This allows to source-in a file into the udev environment to have the defined keys available for later processing by udev itself or the forked helper programs. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-24allow rules to be compiled to one binary fileKay Sievers8-0/+0
All the rule files can be compiled into a single file, which can be mapped into the udev process to avoid parsing the rules with every event. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-20prepare for module loading rules and add MODALIAS keyKay Sievers1-3/+48
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-08udevd: allow starting of udevd with stopped exec-queueKay Sievers1-0/+0
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: clear lists if a new value is assignedKay Sievers1-21/+42
Former values are cleared if SYMLINK=<value> is used. To add a value SYMLINK+=<value> is now needed. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: move dev.d/ handling to external helperKay Sievers1-1/+1
Modern rules are expected to call notification and postprocessing with the RUN key. For compatibility the current behavior can be emulated with an external helper. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: allow final assignments :=Kay Sievers1-0/+23
The use of KEY:=<value> will make the key unchangeable by later rules. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-05-18remove detach_state files from the sysfs test tree.Greg KH6-6/+0
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-10Update permissions on test scripts so they will run properly now.Greg KH2-0/+0
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-10hopefully fix up the symlinks in the test directoryGreg KH21-0/+0
Thanks to Kay for pointing this out. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-09[PATCH] Writing udev rules docs updateDaniel Drake21-0/+0
Here's a long overdue update to the udev rules docs, based on lots of user feedback from the last few months. Mostly updates to keep up with the new udev features, some clarifications and wording improvements. I added a section on rules for palm pilots due to the excessive amount of mail I get about them. I removed the nvidia stuff because it's out of date. Added another section about debugging using logs and udevtest. Removed the thanks list because I haven't been updating it and there are too many people to name now, sorry..!
2005-05-05Added symlinks thanks to Kay's script and git hacking.Greg KH21-0/+21
Now the tests should work again...
2005-04-26[PATCH] fix stupid all_partitions bugtklauser@access.unizh.ch1-0/+1
> On Mon, 2005-04-11 at 14:55 +0200, Norbert Preining wrote: > > On Mon, 11 Apr 2005, Kay Sievers wrote: > > > > brw-rw---- 1 root root 8, 0 2005-04-10 14:58 /dev/sdcard > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard1 > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard2 > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard3 > > > > > > This looks broken. > > > > Good to hear. Yeah, I guess it's broken. In create_node() in udev_add.c there is always added 1 to the minor number, thus the error. The attached patch should fix this.
2005-04-26[PATCH] add test for make -j4 to build-checkkay.sievers@vrfy.org1-2/+2
2005-04-26[PATCH] udev-test.pl: add test for DEVNAME export to RUN environmentkay.sievers@vrfy.org1-0/+13
2005-04-26[PATCH] add RUN key to be able to run rule based notificationkay.sievers@vrfy.org1-0/+47
SUBSYSTEM=="block", RUN="/sbin/program" will execute the program only for block device events. ACTION="remove", SUBSYSTEM=="block", RUN"/sbin/program" will execute the program, if a block device is removed.
2005-04-26[PATCH] allow to match against empty key valueskay.sievers@vrfy.org1-4/+16
2005-04-26[PATCH] read %s{}-sysfs values at any device in the chainkay.sievers@vrfy.org1-0/+9
2005-04-26[PATCH] remove untrusted chars read from sysfs-values or returned by PROGRAMkay.sievers@vrfy.org1-0/+9
Better remove characters that are useless in a device node name. It may be a security risk to pass any character read from e.g. a sysfs attribute to a shell script we execute later. Prevent the modification of the libsysfs attribute value cache. Clear PROGRAM result if the execution encountered an error.
2005-04-26[PATCH] test-suite: remove UDEV_TEST, it's not needed anymorekay.sievers@vrfy.org5-193/+195
2005-04-26[PATCH] udev-test.pl: use more common user/group nameskay.sievers@vrfy.org1-4/+4
2005-04-26[PATCH] udev-test.pl: add a test where the group cannot be found in /etc/passwdkay.sievers@vrfy.org1-0/+10
2005-04-26[PATCH] udev-test.pl: add check for textual uid/gidkay.sievers@vrfy.org1-24/+63
2005-04-26[PATCH] add ENV{} key to match agains environment variableskay.sievers@vrfy.org1-9/+23
2005-04-26[PATCH] add a test and simplify debug statementkay.sievers@vrfy.org1-0/+10
2005-04-26[PATCH] support =, ==, !=, += for the key match and assignmentkay.sievers@vrfy.org1-161/+193
2005-04-26[PATCH] add OPTION="last_rule" to skip any later rulekay.sievers@vrfy.org1-1/+10
2005-04-26[PATCH] remove PLACE key matchkay.sievers@vrfy.org1-3/+3
ID should do the same, cause we walk up the chain of devices on the physical device and can match for the name of every device there with the ID key.
2005-04-26[PATCH] udev-test.pl: remove useless testskay.sievers@vrfy.org1-23/+0
2005-04-26[PATCH] namedev: skip backslashes only if followed by newlinekay.sievers@vrfy.org1-0/+9
Fix from: Hannes Reinecke <hare@suse.de> namedev_parse is a bit overzealous when in comes to handling backspaces; it always eats up backspaces regardless of anything beyond that. This means it is impossible to enter '\t' in a rule. Quite a bit of fun when you're trying to write regexps.
2005-04-26[PATCH] remove the device node only if the major/minor number matcheskay.sievers@vrfy.org1-22/+15
2005-04-26[PATCH] introduce OPTIONS=ignore_device, ignore_remove, all_partitions" keykay.sievers@vrfy.org1-2/+33
Here we move all possible options into a own key to make it possible to have options-only rules. The options on the NAME key are removed from the man page and will be removed from a future version of udev. For ignore rules, OPTIONS="ignore" should be used. The rule: SUBSYSTEM="block", SYSFS{removable}="1", OPTIONS="all_partitions" will create all partitions for a block device which is known to have removable media (a check for cdrom drives would be needed too).
2005-04-26[PATCH] allow simple-build-check.sh to go faster if MAKEOPTS is setgregkh@suse.de1-6/+6
This lets my multiprocessor boxes do the testing quicker...
2005-04-26[PATCH] fix test for temporary nodespatmans@us.ibm.com1-2/+2
2005-04-26[PATCH] fix special file mode mask for temporary device nodekay.sievers@vrfy.org1-1/+1
2005-04-26[PATCH] udevstart: simplify "dev" file searchingkay.sievers@vrfy.org2-7/+59
Just stat() the "dev" file in the device directory instead of opening the directory and iterating over all entries. Make udevstart work with the settings in with udev.conf so we can run a test program. Add a test for udevstart. Remove changelog stuff from code. We should never start with this silly thing.
2005-04-26[PATCH] add %P modifier to query the node name of the parent devicekay.sievers@vrfy.org1-1/+31
Events for partition devies may want to read the main block device name to compose it's own name or read a disklabel from the main device. SUBSYSTEM="block", KERNEL="*[1-9]", NAME="%P-p%n" will append the partition number to the name of the main block device.
2005-04-26[PATCH] provide temporary device node for callouts to access the devicekay.sievers@vrfy.org1-0/+18
%N will create a temporary node for a callout a be sustituted with the name of the node.
2005-04-26[PATCH] simple_build_check: make it possible to pass KERNEL_DIRkay.sievers@vrfy.org1-12/+15
2005-04-26[PATCH] remove default_* permissions from udev.conf filekay.sievers@vrfy.org1-3/+0
With the "permissions only rules" we can just place: MODE="0660", OWNER="root", GROUP="root" at the beginning of the rules file and get exactly the same behavior. If no values are given the compiled-in defaults are used.
2005-04-26[PATCH] update Fedora config files and add some more testskay.sievers@vrfy.org1-0/+28
2005-04-26[PATCH] allow permissions only ruleskay.sievers@vrfy.org1-0/+12
On Mon, 2004-12-20 at 15:03 +0100, Marco d'Itri wrote: > +# all block devices > > +SUBSYSTEM="block", NAME="%k", GROUP="disk" > > + > NAME="%k" here and in similar rules does not add any new information, > what about making it optional, like it is for SYMLINK-only rules?
2005-04-26[PATCH] add SUBSYSTEM rule to catch all block devices and apply the disk ↵kay.sievers@vrfy.org1-1/+1
permissions
2005-04-26[PATCH] allow multiline rules by backslash at the end of the linekay.sievers@vrfy.org1-0/+30
On Sun, 2004-12-19 at 18:31 +0100, Marco d'Itri wrote: > > On Dec 19, Kay Sievers <kay.sievers@vrfy.org> wrote: > > > (Feature request: would it be possible to extend the rules files parser > > to support continuation lines? I'd like it to consider lines starting > > with white space as part of the previous line.) > > How about the usual backslash at the end of the line. Here is a simple > patch.
2005-04-26[PATCH] simplify rules file by setting default mode to 0660kay.sievers@vrfy.org1-5/+5
On Sun, 2004-12-19 at 18:31 +0100, Marco d'Itri wrote: > It may be better to use default_mode="0660", I do not think that there > are any mode 600 devices. This would allow setting only the group for > most of them.
2005-04-26[PATCH] I broke the extras/ again. Add simple build test script now.kay.sievers@vrfy.org1-0/+26
2005-04-26[PATCH] complete removal of explicit udev permissions config filekay.sievers@vrfy.org5-191/+17
2005-04-26bleah, more merge fixes...Greg KH1-1/+3
2005-04-26[PATCH] udevd-test.pl: remove wrong date calculationkay.sievers@vrfy.org3-127/+23
A hour wrap during the test run does not work :) Just remove all the useless date conversions as we are only interested in the seconds it takes to process. [root@pim udevd-test]# ./udevd-test.pl 9 ... device: /class/tty/console, action: remove forking udev time: Sat Dec 11 18:59:57 2004 the delay time is: 3 s device: /class/tty/ptmx, action: remove forking udev time: Sat Dec 11 19:00:07 2004 the delay time is: 4013 s the delay time is: 4013 udevd doesn't act properly.
2005-04-26[PATCH] delete a bunch of files no longer needed.greg@kroah.com6-311/+0
Thanks to Kay for pointing it out.
2005-04-26[PATCH] fix udev-test/udev-test.pl to work with againkay.sievers@vrfy.org1-54/+43
2005-04-26[PATCH] don't call the hotplug scripts with a test runkay.sievers@vrfy.org1-0/+1
2005-04-26fixups to get back to proper patch orderGreg KH1-3/+1
Damm, it's hard to merge a multi-line tree into one flat line at times...
2005-04-26[PATCH] comment out ability to run udev-test.pl with valgrindgreg@kroah.com1-1/+3
2005-04-26[PATCH] add NAME{ignore_remove} attributekay.sievers@vrfy.org1-2/+23
Some broken ide drivers are generating high event traffic, with add/remove events. With this attribute, it can be specified, that the node is always available. It may be used in conjunction with the new DRIVER= match to catch specific kernel device drivers.
2005-04-26[PATCH] support DRIVER as a rule keykay.sievers@vrfy.org1-0/+10
Match with a rule against a device with a specific kernel driver.
2005-04-26[PATCH] support SUBSYSTEM as a rule keykay.sievers@vrfy.org1-0/+11
This should make it easier to catch e.g all block or net devices with a single rule.
2005-04-26[PATCH] replace tdb database by simple lockless file databasekay.sievers@vrfy.org8-10/+10
This makes the udev operation completely lockless by storing a file for every node in /dev/.udevdb/* This solved the problem with deadlocking concurrent udev processes waiting for each other to release the file lock under heavy load.
2005-04-26[PATCH] make udev-test.pl test for root permissions before runninggreg@kroah.com1-0/+7
Should prevent false error reports from happening.
2005-04-26[PATCH] Apply the default permissions even if we found a entry inkay.sievers@vrfy.org1-2/+2
2005-04-26[PATCH] add test for format chars in multiple symlinks to replacekay.sievers@vrfy.org1-0/+10
2005-04-26[PATCH] add dumb script to show all sysfs devices in the system.greg@kroah.com1-0/+27
2005-04-26[PATCH] big cleanup of internal udev apikay.sievers@vrfy.org1-1/+0
Here is the first patch to cleanup the internal processing of the various stages of an udev event. It should not change any behavior, but if your system depends on udev, please always test it before reboot :) We pass only one generic structure around between add, remove, namedev, db and dev_d handling and make all relevant data available to all internal stages. All udev structures are renamed to "udev". We replace the fake parameter by a flag in the udev structure. We open the class device in the main binaries and not in udev_add, to make it possible to use libsysfs for udevstart directory crawling. The last sleep parameters are removed.
2005-04-26[PATCH] fix up the wait_for_sysfs_test script a bit.greg@kroah.com1-8/+12
We also emit the same things the -mm tree does now, so to make that easier to test for.
2005-04-26[PATCH] take out & from wait_for_sysfs_test that I previously missed.greg@kroah.com1-1/+1
2005-04-26[PATCH] add wait_for_sysfs test script to the tarball to help people debug ↵greg@kroah.com1-0/+40
their boxes.
2005-04-26[PATCH] fix problems using scsi_id with udevstartkay.sievers@vrfy.org1-0/+9
when udevstart was running we didn't set the environment and the subsystem argument for the callouts the dev.d/ scripts. Here is a fix, that sets that with every udevstart iteration, corrects argv[0] to be the basename() only not the whole path and adds a test for invoking callouts without arguments.
2005-04-26[PATCH] add enum testskay.sievers@vrfy.org1-3/+86
On Fri, Sep 10, 2004 at 01:09:07PM -0700, Greg KH wrote: > On Tue, Sep 07, 2004 at 01:19:34PM +0200, David Zeuthen wrote: > > > > KERNEL="sr*", NAME="%k", SYMLINK="cdrom%e" > > KERNEL="scd*", NAME="%k", SYMLINK="cdrom%e" > > KERNEL="pcd*", NAME="%k", SYMLINK="cdrom%e" > > KERNEL="hd[a-z]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="\%k", SYMLINK="cdrom%e" > > KERNEL="fd[0-9]", NAME="%k", SYMLINK="floppy%e" > > KERNEL="hd[a-z]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy", NAME=\"%k", SYMLINK="floppy%e" > > > > New patch is attached. > > Nice, I've applied this. > > How about sending a patch for the test/udev-test.pl script that adds a > test for this new paramater, so we make sure to not break it in the > future. Here are the tests for the enumeration character %e. I've added a option string to be able to do a whole sequence of tests without node removal, so we can skip the "remove" event and get an increasing number to append to the name. After the sequence test the whole directory is cleaned for the next tests.
2005-04-26[PATCH] fix udev segfaults with bad permissions filekay.sievers@vrfy.org1-0/+16
On Tue, Sep 14, 2004 at 02:53:12PM +0200, Loleslaw wrote: > Hi, > Since I started using udev-031 on my gentoo udevstart would just segfault > (udev-030 worked). As it turned out I had a file in /etc/udev/permissions.d > with a single space in one line. I've cleaned the file and it works all > right, but I thought you could be interested. > I've traced it to function namedev_init_permissions in namedev_parse.c > I don't know C well enough to suggest a patch. Yeah, thanks for pointing that out. It only happens if the file ends with whitespace-only lines. Here is a fix and a test for udev-test.pl to cover that case.
2005-04-26[PATCH] add test for ! in partition namegreg@kroah.com5-0/+14
2005-04-26[PATCH] add devd_test script.greg@kroah.com1-0/+39
2005-04-26[PATCH] udevd test scriptkay.sievers@vrfy.org3-0/+838
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.
2005-04-26[PATCH] Added expanded tests to the test framework from Leann Ogasawara ↵greg@kroah.com2-119/+604
<ogasawara@osdl.org>
2005-04-26[PATCH] tweak net_test a bit.greg@kroah.com1-1/+1
2005-04-26[PATCH] make a net_test test script using udevtest.greg@kroah.com1-17/+5
2005-04-26[PATCH] add hotplug.dev script to handle renamed network devices.greg@kroah.com1-0/+49
2005-04-26[PATCH] add a bunch of network class devices to the test sysfs treegreg@kroah.com40-0/+40
2005-04-26[PATCH] netdev - udevdb+dev.d changeskay.sievers@vrfy.org1-0/+11
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.
2005-04-26[PATCH] hmm, handle net devices with udev?kay.sievers@vrfy.org1-55/+55
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 :)
2005-04-26[PATCH] udev-test.pl cleanupkay.sievers@vrfy.org1-6/+6
Here is a small name change, so all expected values are named exp_*
2005-04-26[PATCH] add big major tests to udev-test.plgreg@kroah.com5-0/+24
2005-04-26[PATCH] add a test for a minor over 255greg@kroah.com3-0/+12
2005-04-26[PATCH] udev-test.pl: print out major:minor and perm test "ok" if is ok.greg@kroah.com1-4/+7
2005-04-26[PATCH] make perm and major:minor test errors be reported properly.greg@kroah.com1-0/+2
2005-04-26[PATCH] add dev node test to udev-test.plkay.sievers@vrfy.org1-264/+295
> Nice, that's a good start. Now we need to check the major:minor values > too somehow... I better do it immediately, before you put it in the empty TODO :) Patch is a bit big, cause spaces are changed to tabs to get space for the longer names.
2005-04-26[PATCH] add permission testskay.sievers@vrfy.org1-0/+30
> Any chance on being able to add a test for this kind of stuff to the > udev-test.pl script? Sure, not brilliant but seems to work :) Only numeric id's are supported so far.
2005-04-26[PATCH] "symlink only" testkay.sievers@vrfy.org1-0/+11
Here is a test for the "symlink only" rule. Any reason to do the apply_format() inside the loop? I've changed it.
2005-04-26[PATCH] callout part selector tweakkay.sievers@vrfy.org1-0/+9
Martin Schwenke <martin@meltin.net> asked for this feature and posted a patch: The following patch almost let's me have the following configuration: PROGRAM="/sbin/aliaser %b %k %n %M %m", RESULT="?*", NAME="%c{1}", SYMLINK="%c{2+}" allowing me to specify an arbitrary number of symlinks by saying "giveme the second and later words"." Here is the actual version with tests and a few words in the man page.