chiark / gitweb /
replace utimes() with utimensat()
[elogind.git] / NEWS
1 udev 152
2 ========
3 Bugfixes.
4
5 New and fixed keymaps.
6
7 udev 151
8 ========
9 Bugfixes.
10
11 udev 150
12 ========
13 Bugfixes.
14
15 Kernels with SYSFS_DEPRECATED=y are not supported since a while. Many users
16 depend on the current sysfs layout and the information not available in the
17 deprecated layout. All remaining support for the deprecated sysfs layout is
18 removed now.
19
20 udev 149
21 ========
22 Fix for a possible endless loop in the new input_id program.
23
24 udev 148
25 ========
26 Bugfixes.
27
28 The option "ignore_device" does no longer exist. There is no way to
29 ignore an event, as libudev events can not be suppressed by rules.
30 It only prevented RUN keys from being executed, which results in an
31 inconsistent behavior in current setups.
32
33 BUS=, SYSFS{}=, ID= are long deprecated and should be SUBSYSTEM(S)=,
34 ATTR(S){}=, KERNEL(S)=. It will cause a warning once for every rule
35 file from now on.
36
37 The support for the deprecated IDE devices has been removed from the
38 default set of rules. Distros who still care about non-libata drivers
39 need to add the rules to the compat rules file.
40
41 The ID_CLASS property on input devices has been replaced by the more accurate
42 set of flags ID_INPUT_{KEYBOARD,KEY,MOUSE,TOUCHPAD,TABLET,JOYSTICK}. These are
43 determined by the new "input_id" prober now. Some devices, such as touchpads,
44 can have several classes. So if you previously had custom udev rules which e. g.
45 checked for ENV{ID_CLASS}=="kbd", you need to replace this with
46 ENV{ID_INPUT_KEYBOARD}=="?*".
47
48 udev 147
49 ========
50 Bugfixes.
51
52 To support DEVPATH strings larger than the maximum file name length, the
53 private udev database format has changed. If some software still reads the
54 private files in /dev/.udev/, which it shouldn't, now it's time to fix it.
55 Please do not port anything to the new format again, everything in /dev/.udev
56 is and always was private to udev, and may and will change any time without
57 prior notice.
58
59 Multiple devices claiming the same names in /dev are limited to symlinks
60 only now. Mixing identical symlink names and node names is not supported.
61 This reduces the amount of data in the database significantly.
62
63 NAME="%k" causes a warning now. It's is and always was completely superfluous.
64 It will break kernel supplied DEVNAMEs and therefore it needs to be removed
65 from all rules.
66
67 Most NAME= instructions got removed. Kernel 2.6.31 supplies the needed names
68 if they are not the default. To support older kernels, the NAME= rules need to
69 be added to the compat rules file.
70
71 Symlinks to udevadm with the old command names are no longer resolved to
72 the udevadm commands.
73
74 The udev-acl tool got adopted to changes in ConsoleKit. Version 0.4.1 is
75 required now.
76
77 The option "last_rule" does no longer exist. Its use breaks too many
78 things which expect to be run from independent later rules, and is an idication
79 that something needs to be fixed properly instead.
80
81 The gudev API is no longer marked as experimental,
82 G_UDEV_API_IS_SUBJECT_TO_CHANGE is no longer needed. The gudev introspection
83 is enabled by default now. Various projects already depend on introspection
84 information to bind dynamic languages to the gudev interfaces.
85
86 udev 146
87 ========
88 Bugfixes.
89
90 The udevadm trigger "--retry-failed" option, which is replaced since quite
91 a while by "--type=failed" is removed.
92
93 The failed tracking was not working at all for a few releases. The RUN
94 option "ignore_error" is replaced by a "fail_event_on_error" option, and the
95 default is not to track any failing RUN executions.
96
97 New keymaps, new modem, hid2hci updated.
98
99 udev 145
100 ========
101 Fix possible crash in udevd when worker processes are busy, rules are
102 changed at the same time, and workers get killed to reload the rules.
103
104 udev 144
105 ========
106 Bugfixes.
107
108 Properties set with ENV{.FOO}="bar" are marked private by starting the
109 name with a '.'. They will not be stored in the database, and not be
110 exported with the event.
111
112 Firmware files are looked up in:
113   /lib/firmware/updates/$(uname -r)
114   /lib/firmware/updates
115   /lib/firmware/$(uname -r)
116   /lib/firmware"
117 now.
118
119 ATA devices switched the property from ID_BUS=scsi to ID_BUS=ata.
120 ata_id, instead of scsi_id, is the default tool now for ATA devices.
121
122 udev 143
123 ========
124 Bugfixes.
125
126 The configure options have changed because another library needs to be
127 installed in a different location. Instead of exec_prefix and udev_prefix,
128 libdir, rootlibdir and libexecdir are used. The Details are explained in
129 the README file.
130
131 Event processes now get re-used after they handled an event. This reduces
132 the number of forks and the pressure on the CPU significantly, because
133 cloned event processes no longer cause page faults in the main daemon.
134 After the events have settled, a few worker processes stay around for
135 future events, all others get cleaned up.
136
137 To be able to use signalfd(), udev depends on kernel version 2.6.25 now.
138 Also inotify support is mandatory now to run udev.
139
140 The format of the queue exported by the udev damon has changed. There is
141 no longer a /dev/.udev/queue/ directory. The current event queue can be
142 accessed with udevadm settle and libudedv.
143
144 Libudev does not have the unstable API header anymore. From now on,
145 incompatible changes will be handled by bumping the library major version.
146
147 To build udev from the git tree gtk-doc is needed now. The tarballs will
148 build without it and contain the pre-built documentation. An online copy
149 is available here:
150   http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/
151
152 The tools from the udev-extras repository have been merged into the main
153 udev repository. Some of the extras have larger external dependencies, and
154 they can be disabled with the configure switch --disable-extras.
155
156 udev 142
157 ========
158 Bugfixes.
159
160 The program vol_id and the library libvolume_id are removed from the
161 repository. Libvolume_id is merged with libblkid from the util-linux-ng
162 package. Persistent disk links for label and uuid depend on the
163 util-linux-ng version (2.15) of blkid now. Older versions of blkid
164 can not be used with udev.
165
166 Libudev allows to subscribe to udev events. To prevent unwanted messages
167 to be delivered, and waking up the subscribing process, a filter can be
168 installed, to drop messages inside a kernel socket filter. The filters
169 match on the <subsytem>:<devtype> properties of the device.
170     This is part of the ongoing effort to replace HAL, and switch current
171 users over to directly use libudev.
172     Libudev is still marked as experimental, and its interface might
173 eventually change if needed, but no major changes of the currently exported
174 interface are expected anymore, and a first stable release should happen
175 soon.
176
177 A too old kernel (2.6.21) or a kernel with CONFIG_SYSFS_DEPRECATED
178 is not supported since while and udevd will log an error message at
179 startup. It should still be able to boot-up, but advanced rules and system
180 services which depend on the information not available in the old sysfs
181 format will fail to work correctly.
182
183 DVB device naming is supplied by the kernel now. In case older kernels
184 need to be supported, the old shell script should be added to a compat
185 rules file.
186
187 udev 141
188 ========
189 Bugfixes.
190
191 The processed udev events get send back to the netlink socket. Libudev
192 provides access to these events. This is work-in-progress, to replace
193 the DeviceKit daemon functionality directly with libudev. There are
194 upcoming kernel changes to allow non-root users to subcribe to these
195 events.
196
197 udev 140
198 ========
199 Bugfixes.
200
201 "udevadm settle" now optionally accepts a range of events to wait for,
202 instead of waiting for "all" events.
203
204 udev 139
205 ========
206 Bugfixes.
207
208 The installed watch for block device metadata changes is now removed
209 during event hadling, because some (broken) tools may be called from udev
210 rules and (wrongly) open the device with write access. After the finished
211 event handling the watch is restored.
212
213 udev 138
214 ========
215 Bugfixes.
216
217 Device nodes can be watched for changes with inotify with OPTIONS="watch".
218 If closed after being opened for writing, a "change" uevent will occur.
219 /dev/disk/by-{label,uuid}/* symlinks will be automatically updated.
220
221 udev 137
222 ========
223 Bugfixes.
224
225 The udevadm test command has no longer a --force option, nodes and symlinks
226 are always updated with a test run now.
227
228 The udevd daemon can be started with --resolve-names=never to avoid all user
229 and group lookups (e.g. in cut-down systems) or --resolve-names=late to
230 lookup user and groups every time events are handled.
231
232 udev 136
233 ========
234 Bugfixes.
235
236 We are currently merging the Ubuntu rules in the udev default rules,
237 and get one step closer to provide a common Linux /dev setup, regarding
238 device names, symlinks, and default device permissions. On udev startup,
239 we now expect the following groups to be resolvable to their ids with
240 glibc's getgrnam():
241   disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, kmem.
242 LDAP setups need to make sure, that these groups are always resolvable at
243 bootup, with only the rootfs mounted, and without network access available.
244
245 Some systems may need to add some new, currently not used groups, or need
246 to add some users to new groups, but the cost of this change is minimal,
247 compared to the pain the current, rather random, differences between the
248 various distributions cause for upstream projects and third-party vendors.
249
250 In general, "normal" users who log into a machine should never be a member
251 of any such group, but the device-access should be managed by dynamic ACLs,
252 which get added and removed for the specific users on login/logout and
253 session activity/inactivity. These groups are only provided for custom setups,
254 and mainly system services, to allow proper privilege separation.
255 A video-streaming daemon uid would be a member of "audio" and "video", to get
256 access to the sound and video devices, but no "normal" user should ever belong
257 to the "audio" group, because he could listen to the built-in microphone with
258 any ssh-session established from the other side of the world.
259
260 /dev/serial/by-{id,path}/ now contains links for ttyUSB devices,
261 which do not depend on the kernel device name. As usual, unique
262 devices - only a single one per product connected, or a real
263 USB serial number in the device - are always found with the same
264 name in the by-id/ directory.
265 Completely identical devices may overwrite their names in by-id/
266 and can only be found reliably in the by-path/ directory. Devices
267 specified by by-path/ must not change their connection, like the
268 USB port number they are plugged in, to keep their name.
269
270 To support some advanced features, Linux 2.6.22 is the oldest supported
271 version now. The kernel config with enabled SYSFS_DEPRECATED is no longer
272 supported. Older kernels should still work, and devices nodes should be
273 reliably created, but some rules and libudev will not work correctly because
274 the old kernels do not provide the expected information or interfaces.
275
276 udev 135
277 ========
278 Bugfixes.
279
280 Fix for a possible segfault while swapping network interface names in udev
281 versions 131-134.
282
283 udev 134
284 ========
285 Bugfixes.
286
287 The group "video" is part of the default rules now.
288
289 udev 133
290 ========
291 Bugfix for kernels using SYSFS_DEPRECATED* option and finding parent
292 block devices in some cases. No common distro uses this option anymore,
293 and we do not get enough testing for this and recent udev versions. If
294 this option is not needed to run some old distro with a new kernel,
295 it should be disabled in the kernel config.
296
297 Bugfix for the $links substitution variable, which may crash if no links
298 are created. This should not happen in usual setups because we always
299 create /dev/{block,char}/ links.
300
301 The strings of the parsed rules, which are kept in memory, no longer
302 contain duplicate entries, or duplicate tails of strings. This, and the
303 new rules parsing/matching code reduces the total in-memory size of
304 a huge distro rule sets to 0.08 MB, compared to the 1.2MB of udev
305 version 130.
306
307 The export of DEVTYPE=disk/partition got removed from the default
308 rules. This value is available from the kernel. The pnp shell script
309 modprobe hack is removed from the default rules. ACPI devices have _proper_
310 modalias support and take care of the same functionality.
311 Installations which support old kernels, but install current default
312 udev rules may want to add that to the compat rules file.
313
314 Libvolume_id now always probes for all known filesystems, and does not
315 stop at the first match. Some filesystems are marked as "exclusive probe",
316 and if any other filesytem type matches at the same time, libvolume_id
317 will, by default, not return any probing result. This is intended to prevent
318 mis-detection with conflicting left-over signatures found from earlier
319 file system formats. That way, we no longer depend on the probe-order
320 in case of multiple competing signatures. In some setups the kernel allows
321 to mount a volume with just the old filesystem signature still in place.
322 This may damage the new filesystem and cause data-loss, just by mounting
323 it. Because volume_id can not decide which one the correct signature is,
324 the wrong signatures need to be removed manually from the volume, or the
325 volume needs to be reformatted, to enable filesystem detection and possible
326 auto-mounting.
327
328 udev 132
329 ========
330 Fix segfault if compiled without optimization and dbg() does not get
331 compiled out and uses variables which are not available.
332
333 udev 131
334 ========
335 Bugfixes. (And maybe new bugs. :))
336
337 The rule matching engine got converted from a rule list to a token
338 array which reduced the in-memory rules representation of a full
339 featured distros with thousends of udev rules from 1.2MB to 0.12 MB.
340 Limits like 5 ENV and ATTR matches, and one single instance for most
341 other keys per rule are gone.
342
343 The NAME assignment is no longer special cased. If later rules assign
344 a NAME value again, the former value will be overwritten. As usual
345 for most other keys, the NAME value can be protected by doing a final
346 assignment with NAME:="<value>".
347
348 All udev code now uses libudev, which is also exported. The library
349 is still under development, marked as experimental, and its interface
350 may change as long as the DeviceKit integration is not finished.
351
352 Many thanks to Alan Jenkins for his continuous help, and finding and
353 optimizing some of the computing expensive parts.
354
355 udev 130
356 ========
357 Bugfixes.
358
359 Kernel devices and device nodes are connected now by reverse indizes in
360 /sys and /dev. A device number retrieved by a stat() or similar, the
361 kernel device directory can be found by looking up:
362   /sys/dev/{block,char}/<maj>:<min>
363 and the device node of the same device by looking up:
364   /dev/{block,char}/<maj>:<min>
365
366 udev 129
367 ========
368 Fix recently introduced bug, which caused a compilation without large
369 file support, where vol_id does not recognize raid signatures at the end
370 of a volume.
371
372 Firewire disks now create both, by-id/scsi-* and by-id/ieee-* links.
373 Seems some kernel versions prevent the creation of the ieee-* links,
374 so people used the scsi-* link which disappeared now.
375
376 More libudev work. Almost all udevadm functionality comes from libudev
377 now.
378
379 udevadm trigger has a new option --type, which allows to trigger events
380 for "devices", for "subsystems", or "failed" devices. The old option
381 --retry-failed" still works, but is no longer mentioned in the man page.
382
383 udev 128
384 ========
385 Bugfixes.
386
387 The udevadm info --device-id-of-file= output has changed to use
388 the obvious format. Possible current users should use the --export
389 option which is not affected.
390
391 The old udev commands symlinks to udevadm are not installed, if
392 these symlinks are used, a warning is printed.
393
394 udev 127
395 ========
396 Bugfixes.
397
398 Optical drive's media is no longer probed for raid signatures,
399 reading the end of the device causes some devices to malfunction.
400 Also the offset of the last session found is used now to probe
401 for the filesystem.
402
403 The volume_id library got a major version number update to 1,
404 some deprecated functions are removed.
405
406 A shared library "libudev" gets installed now to provide access
407 to udev device information. DeviceKit, the successor of HAL, will
408 need this library to access the udev database and search sysfs for
409 devices.
410 The library is currently in an experimental state, also the API is
411 expected to change, as long as the DeviceKit integration is not
412 finished.
413
414 udev 126
415 ========
416 We use ./configure now. See INSTALL for details. Current
417 options are:
418     --prefix=
419         "/usr" - prefix for man pages, include files
420     --exec-prefix=
421         "" - the root filesystem, prefix for libs and binaries
422     --sysconfdir=
423         "/etc"
424     --with-libdir-name=
425         "lib" - directory name for libraries, not a path name
426         multilib 64bit systems may use "lib64" instead of "lib"
427     --enable-debug
428         compile-in verbose debug messages
429     --disable-logging
430         disable all logging and compile-out all log strings
431     --with-selinux
432         link against SELInux libraries, to set the expected context
433         for created files
434
435 In the default rules, the group "disk" gets permissions 0660 instead
436 of 0640. One small step closer to unify distro rules. Some day, all
437 distros hopefully end up with the same set of rules.
438
439 No symlinks to udevadm are installed anymore, if they are still needed,
440 they should be provided by the package.
441
442 udev 125
443 ========
444 Bugfixes.
445
446 Default udev rules, which are not supposed to be edited by the user, should
447 be placed in /lib/udev/rules.d/ now, to make it clear that they are private to
448 the udev package and will be replaced with an update. Udev will pick up rule
449 files from:
450   /lib/udev/rules.d/  - default installed rules
451   /etc/udev/rules.d/  - user rules + on-the-fly generated rules
452   /dev/.udev/rules.d/ - temporary non-persistent rules created after bootup
453 It does not matter in which directory a rule file lives, all files are sorted
454 in lexical order.
455
456 To help creating /dev/root, we have now:
457   $ udevadm info --export --export-prefix="ROOT_" --device-id-of-file=/
458   ROOT_MAJOR=8
459   ROOT_MINOR=5
460 In case the current --device-id-of-file is already used, please switch to
461 the --export format version, it saves the output parsing and the old
462 format will be changed to use ':' as a separator, like the format in the
463 sysfs 'dev' file.
464
465 udev 124
466 ========
467 Fix cdrom_id to properly recognize blank media.
468
469 udev 123
470 ========
471 Bugfixes.
472
473 Tape drive id-data is queried from /dev/bsg/* instead of the tape
474 nodes. This avoids rewinding tapes on open().
475
476 udev 122
477 ========
478 Bugfixes.
479
480 The symlinks udevcontrol and udevtrigger are no longer installed by
481 the Makefile.
482
483 The scsi_id program does not depend on sysfs anymore. It can speak
484 SGv4 now, so /dev/bsg/* device nodes can be used, to query SCSI device
485 data, which should solve some old problems with tape devices, where
486 we better do not open all tape device nodes to identify the device.
487
488 udev 121
489 ========
490 Many bugfixes.
491
492 The cdrom_id program is replaced by an advanced version, which can
493 detect most common device types, and also properties of the inserted
494 media. This is part of moving some basic functionality from HAL into
495 udev (and the kernel).
496
497 udev 120
498 ========
499 Bugfixes.
500
501 The last WAIT_FOR_SYSFS rule is removed from the default rules.
502
503 The symlinks to udevadm for the debugging tools: udevmonitor and
504 udevtest are no longer created.
505
506 The symlinks to the udevadm man page for the old tool names are
507 no longer created.
508
509 Abstract namespace sockets paths in RUN+="socket:@<path>" rules,
510 should be prefixed with '@' to indicate that the path is not a
511 real file.
512
513 udev 119
514 ========
515 Bugfixes.
516
517 udev 118
518 ========
519 Bugfixes.
520
521 Udevstart is removed from the tree, it did not get installed for
522 a long time now, and is long replaced by trigger and settle.
523
524 udev 117
525 ========
526 Bugfixes.
527
528 All udev tools are merged into a single binary called udevadm.
529 The old names of the tools are built-in commands in udevadm now.
530 Symlinks to udevadm, with the names of the old tools, provide
531 the same functionality as the standalone tools. There is also
532 only a single udevadm.8 man page left for all tools.
533
534 Tools like mkinitramfs should be checked, if they need to include
535 udevadm in the list of files.
536
537 udev 116
538 ========
539 Bugfixes.
540
541 udev 115
542 ========
543 Bugfixes.
544
545 The etc/udev/rules.d/ directory now contains a default set of basic
546 udev rules. This initial version is the result of a rules file merge
547 of Fedora and openSUSE. For these both distros only a few specific
548 rules are left in their own file, named after the distro. Rules which
549 are optionally installed, because they are only valid for a specific
550 architecture, or rules for subsystems which are not always used are
551 in etc/udev/packages/.
552
553 udev 114
554 ========
555 Bugfixes.
556
557 Dynamic rules can be created in /dev/.udev/rules.d/ to trigger
558 actions by dynamically created rules.
559
560 SYMLINK=="<value>" matches agains the entries in the list of
561 currently defined symlinks. The links are not created in the
562 filesystem at that point in time, but the values can be matched.
563
564 RUN{ignore_error}+="<program>" will ignore any exit code from the
565 program and not record as a failed event.
566
567 udev 113
568 ========
569 Bugfixes.
570
571 Final merge of patches/features from the Ubuntu package.
572
573 udev 112
574 ========
575 Bugfixes.
576
577 Control characters in filesystem label strings are no longer silenty
578 removed, but hex-encoded, to be able to uniquely identify the device
579 by its symlink in /dev/disk/by-label/.
580 If libvolume_id is used by mount(8), LABEL= will work as expected,
581 if slashes or other characters are used in the label string.
582
583 To test the existence of a file, TEST=="<file>" and TEST!="<file>"
584 can be specified now. The TEST key accepts an optional mode mask
585 TEST{0100}=="<is executable file>".
586
587 Scsi_id now supports a mode without expecting scsi-specific sysfs
588 entries to allow the extraction of cciss-device persistent properties.
589
590 udev 111
591 ========
592 Bugfixes.
593
594 In the future, we may see uuid's which are just simple character
595 strings (see the DDF Raid Specification). For that reason vol_id now
596 exports ID_FS_UUID_SAFE, just like ID_FS_LABEL_SAFE. For things like
597 the creation of symlinks, the *_SAFE values ensure, that no control
598 or whitespace characters are used in the filename.
599
600 Possible users of libvolume_id, please use the volume_id_get_* functions.
601 The public struct will go away in a future release of the library.
602
603 udev 110
604 ========
605 Bugfixes.
606
607 Removal of useless extras/eventrecorder.sh.
608
609 udev 109
610 ========
611 Bugfixes.
612
613 udev 108
614 ========
615 Bugfixes.
616
617 The directory multiplexer for dev.d/ and hotplug.d are finally removed
618 from the udev package.
619
620 udev 107
621 ========
622 Bugfixes.
623
624 Symlinks can have priorities now, the priority is assigned to the device
625 and specified with OPTIONS="link_priority=100". Devices with higher
626 priorities overwrite the symlinks of devices with lower priorities.
627 If the device that currently owns the link, goes away, the symlink
628 will be removed, and recreated, pointing to the next device with the
629 highest actual priority. This should make /dev/disk/by-{label,uuid,id}
630 more reliable, if multiple devices contain the same metadata and overwrite
631 these symlinks.
632
633 The dasd_id program is removed from the udev tree, and dasdinfo, with the
634 needed rules, are part of the s390-tools now.
635
636 Please add KERNEL=="[0-9]*:[0-9]*" to the scsi wait-for-sysfs rule,
637 we may get the scsi sysfs mess fixed some day, and this will only catch
638 the devices we are looking for.
639
640 USB serial numbers for storage devices have the target:lun now appended,
641 to make it possibble to distinguish broken multi-lun devices with all
642 the same SCSI identifiers.
643
644 Note: The extra "run_directory" which searches and executes stuff in
645 /etc/hotplug.d/ and /etc/dev.d/ is long deprecated, and will be removed
646 with the next release. Make sure, that you don't use it anymore, or
647 provides your own implementation of that inefficient stuff.
648 We are tired of reports about a "slow udev", because these directories
649 contain stuff, that runs with _every_ event, instead of using rules,
650 that run programs only for the matching events.
651
652 udev 106
653 ========
654 Bugfixes.
655
656 udev 105
657 ========
658 Bugfixes.
659
660 DRIVER== will match only for devices that actually have a real
661 driver. DRIVERS== must be used, if parent devices should be
662 included in the match.
663
664 Libvolume_id's "linux_raid" detection needed another fix.
665
666 udev 104
667 ========
668 Bugfixes.
669
670 udev 103
671 ========
672 Add additional check to volume_id detection of via_raid, cause
673 some company decided to put a matching pattern all over the empty
674 storage area of their music players.
675
676 udev 102
677 ========
678 Fix path_id for SAS devices.
679
680 udev 101
681 ========
682 The udev daemon can be started with --debug-trace now, which will
683 execute all events serialized to get a chance to catch a possible
684 action that crashes the box.
685
686 A warning is logged, if PHYSDEV* keys, the "device" link, or a parent
687 device attribute like $attr{../file} is used, only WAIT_FOR_SYSFS rules
688 are excluded from the warning. Referencing parent attributes directly
689 may break when something in the kernel driver model changes. Udev will
690 just find the attribute by walking up the parent chain.
691
692 Udevtrigger now sorts the list of devices depending on the device
693 dependency, so a "usb" device is triggered after the parent "pci"
694 device.
695
696 udev 100
697 ========
698 Revert persistent-storage ata-serial '_' '-' replacement.
699
700 udev 099
701 ========
702 Bugfixes.
703
704 Udevtrigger can now filter the list of devices to be triggered. Matches
705 for subsystems or sysfs attributes can be specified.
706
707 The entries in /dev/.udev/queue and /dev/.udev/failed have changed to
708 zero-sized files to avoid pointing to /sys and confuse broken tools which
709 scan the /dev directory. To retry failed events, udevtrigger --retry-failed
710 should be used now.
711
712 The rules and scripts to create udev rules for persistent network
713 devices and optical drives are in the extras/rules_generator directory
714 now. If you use something similar, please consider replacing your own
715 version with this, to share the support effort. The rule_generator
716 installs its own rules into /etc/udev/rules.d.
717
718 The cdrom_id tool installs its own rule now in /etc/udev/rules.d, cause
719 the rule_generator depends on cdrom_id to be called in an earlier rule.
720
721 udev 098
722 ========
723 Bugfixes.
724
725 Renaming of some key names (the old names still work):
726 BUS -> SUBSYSTEMS, ID -> KERNELS, SYSFS -> ATTRS, DRIVER -> DRIVERS.
727 (The behavior of the key DRIVER will change soon in one of the next
728 releases, to match only the event device, please switch to DRIVERS
729 instead. If DRIVER is used, it will behave like DRIVERS, but an error
730 is logged.
731 With the new key names, we have a more consistent and simpler scheme.
732 We can match the properties of the event device only, with: KERNEL,
733 SUBSYSTEM, ATTR, DRIVER. Or include all the parent devices in the match,
734 with: KERNELS, SUBSYSTEMS, ATTRS, DRIVERS. ID, BUS, SYSFS, DRIVER are no
735 longer mentioned in the man page and should be switched in the rule
736 files.
737
738 ATTR{file}="value" can be used now, to write to a sysfs file of the
739 event device. Instead of:
740   ..., SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys$$DEVPATH/timeout'"
741 we now can do:
742   ..., ATTR{type}=="0|7|14", ATTR{timeout}="60"
743
744 All the PHYSDEV* keys are deprecated and will be removed from a
745 future kernel:
746   PHYDEVPATH -    is the path of a parent device and should not be
747                   needed at all.
748   PHYSDEVBUS -    is just a SUBSYSTEM value of a parent, and can be
749                   matched with SUBSYSTEMS==
750   PHYSDEVDRIVER - for bus devices it is available as ENV{DRIVER}.
751                   Newer kernels will have DRIVER in the environment,
752                   for older kernels udev puts in. Class device will
753                   no longer carry this property of a parent and
754                   DRIVERS== can be used to match such a parent value.
755 Note that ENV{DRIVER} is only available for a few bus devices, where
756 the driver is already bound at device event time. On coldplug, the
757 events for a lot devices are already bound to a driver, and they will have
758 that value set. But on hotplug, at the time the kernel creates the device,
759 it can't know what driver may claim the device after that, therefore
760 in most cases it will be empty.
761
762 Failed events should now be re-triggered with:
763    udevtrigger --retry-failed.
764 Please switch to this command, so we keep the details of the /dev/.udev/failed/
765 files private to the udev tools. We may need to switch the current symlink
766 target, cause some obviously broken tools try to scan all files in /dev
767 including /dev/.udev/, find the links to /sys and end up stat()'ing sysfs files
768 million times. This takes ages on slow boxes.
769
770 The udevinfo attribute walk (-a) now works with giving a device node
771 name (-n) instead of a devpath (-p). The query now always works, also when
772 no database file was created by udev.
773
774 The built-in /etc/passwd /etc/group parser is removed, we always depend on
775 getpwnam() and getgrnam() now. One of the next releases will depend on
776 fnmatch() and may use getopt_long().
777
778 udev 097
779 ========
780 Bugfixes and small improvements.
781
782 udev 096
783 ========
784 Fix path_id for recent kernels.
785
786 udev 095
787 ========
788 %e is finally gone.
789
790 Added support for swapping network interface names, by temporarily
791 renaming the device and wait for the target name to become free.
792
793 udev 094
794 ========
795 The built-in MODALIAS key and substitution is removed.
796
797 udev 093
798 ========
799 The binary firmware helper is replaced by the usual simple
800 shell script. Udevsend is removed from the tree.
801
802 udev 092
803 ========
804 Bugfix release.
805
806 udev 091
807 ========
808 Some more keys require the correct use of '==' and '=' depending
809 on the kind of operation beeing an assignment or a match. Rules
810 with invalid operations are skipped and logged to syslog. Please
811 test with udevtest if the parsing of your rules throws errors and
812 fix possibly broken rules.
813
814 udev 090
815 ========
816 Provide "udevsettle" to wait for all current udev events to finish.
817 It also watches the current kernel netlink queue by comparing the
818 even sequence number to make sure that there are no current pending
819 events that have not already arrived in the daemon.
820
821 udev 089
822 ========
823 Fix rule to skip persistent rules for removable IDE devices, which
824 also skipped optical IDE drives.
825
826 All *_id program are installed in /lib/udev/ by default now.
827
828 No binary is stripped anymore as this should be done in the
829 packaging process and not at build time.
830
831 libvolume_id is provided as a shared library now and vol_id is
832 linked against it. Also one of the next HAL versions will require
833 this library, and the HAL build process will also require the
834 header file to be installed. The copy of the same code in HAL will
835 be removed to have only a single copy left on the system.
836
837 udev 088
838 ========
839 Add persistent links for SCSI tapes. The rules file is renamed
840 to 60-persistent-storage.rules.
841
842 Create persistent path for usb devices. Can be used for all sorts
843 of devices that can't be distinguished by other properties like
844 multiple identical keyboards and mice connected to the same box.
845
846 Provide "udevtrigger" program to request events on coldplug. The
847 shell script is much too slow with thousends of devices.
848
849 udev 087
850 ========
851 Fix persistent disk rules to exclude removable IDE drives.
852
853 Warn if %e, $modalias or MODALIAS is used.
854
855 udev 086
856 ========
857 Fix queue export, which wasn't correct for subsequent add/remove
858 events for the same device.
859
860 udev 085
861 ========
862 Fix cramfs detection on big endian.
863
864 Make WAIT_FOR_SYSFS usable in "normal" rules and silent if the whole
865 device goes away.
866
867 udev 084
868 ========
869 If BUS== and SYSFS{}== have been used in the same rule, the sysfs
870 attributes were only checked at the parent device that matched the
871 by BUS requested subsystem. Fix it to also look at the device we
872 received the event for.
873
874 Build variable CROSS has changed to CROSS_COMPILE to match the kernel
875 build name.
876
877 udev 083
878 ========
879 Fix a bug where NAME="" would prevent RUN from beeing executed.
880
881 RUN="/bin/program" does not longer automatically add the subsystem
882 as the first parameter. This is from the days of /sbin/hotplug
883 which is dead now and it's just confusing to need to add a space at
884 the end of the program name to prevent this.
885 If you use rules that need the subsystem as the first parameter,
886 like the old "udev_run_hotlugd" and "udev_run_devd", add the subsystem
887 to the key like RUN+="/bin/program $env{SUBSYSTEM}".
888
889 udev 082
890 ========
891 The udev man page has moved to udev(7) as it does not describe a command
892 anymore. The programs udev, udevstart and udevsend are no longer installed
893 by default and must be copied manually, if they should be installed or
894 included in a package.
895
896 Fix a bug where "ignore_device" could run earlier collected RUN keys before
897 the ignore rule was applied.
898
899 More preparation for future sysfs changes. usb_id and scsi_id no longer
900 depend on a magic order of devices in the /devices chain. Specific devices
901 should be requested by their subsytem.
902
903 This will always find the scsi parent device without depending on a specific
904 path position:
905   dev = sysfs_device_get(devpath);
906   dev_usb = sysfs_device_get_parent_with_subsystem(dev, "scsi");
907
908 The "device" link in the current sysfs layout will be automatically
909 _resolved_ as a parent and in the new sysfs layout it will just _be_ the
910 parent in the devpath. If a device is requested by it's symlink, like all
911 class devices in the new sysfs layout will look like, it gets automatically
912 resolved and substituted with the real devpath and not the symlink path.
913
914 Note:
915 A similar logic must be applied to _all_ sysfs users, including
916 scripts, that search along parent devices in sysfs. The explicit use of
917 the "device" link must be avoided. With the future sysfs layout all
918 DEVPATH's will start with /devices/ and have a "subsystem" symlink poiting
919 back to the "class" or the "bus". The layout of the parent devices in
920 /devices is not necessarily expected to be stable across kernel releases and
921 searching for parents by their subsystem should make sysfs users tolerant
922 for changed parent chains.
923
924 udev 081
925 ========
926 Prepare udev to work with the experimental kernel patch, that moves
927 /sys/class devices to /sys/devices and /sys/block to /sys/class/block.
928
929 Clarify BUS, ID, $id usage and fix $id behavior. This prepares for
930 moving the class devices to /sys/devices.
931
932 Thanks again to Marco for help finding a hopefully nice compromise
933 to make %b simpler and working again.
934
935 udev 080
936 ========
937 Complete removal of libsysfs, replaced by simple helper functions
938 which are much simpler and a bit faster. The udev daemon operatesentirely
939 on event parameters and does not use sysfs for simple rules anymore.
940 Please report any new bugs/problems, that may be caused by this big
941 change. They will be fixed immediately.
942
943 The enumeration format character '%e' is deprecated and will be
944 removed sometimes from a future udev version. It never worked correctly
945 outside of udevstart, so we can't use it with the new parallel
946 coldplug. A simple enumeration is as useless as the devfs naming
947 scheme, just get rid of both if you still use it.
948
949 MODALIAS and $modalias is not needed and will be removed from one of
950 the next udev versions, replace it in all rules with ENV{MODALIAS} or
951 the sysfs "modalias" value.
952
953 Thanks a lot to Marco for all his help on finding and fixing bugs.
954
955 udev 079
956 ========
957 Let scsi_id request libata drive serial numbers from page 0x80.
958
959 Renamed etc/udev/persistent.rules to persistent-disk.rules and
960 added /dev/disk/by-name/* for device mapper device names.
961
962 Removed %e from the man page. It never worked reliably outside
963 of udevstart and udevstart is no longer recommended to use.
964
965 udev 078
966 ========
967 Symlinks are now exported to the event environment. Hopefully it's no
968 longer needed to run udevinfo from an event process, like it was
969 mentioned on the hotplug list:
970   UDEV  [1134776873.702967] add@/block/sdb
971   ...
972   DEVNAME=/dev/sdb
973   DEVLINKS=/dev/disk/by-id/usb-IBM_Memory_Key_0218B301030027E8 /dev/disk/by-path/usb-0218B301030027E8:0:0:0
974
975 udev 077
976 ========
977 Fix a problem if udevsend is used as the hotplug handler and tries to use
978 syslog, which causes a "vc" event loop. 2.6.15 will make udevsend obsolete
979 and this kind of problems will hopefully go away soon.
980
981 udev 076
982 ========
983 All built-in logic to work around bad sysfs timing is removed with this
984 version. The need to wait for sysfs files is almost fixed with a kernel
985 version that doesn't work with this udev version anyway. Until we fix
986 the timing of the "bus" link creation, the former integrated logic should
987 be emulated by a rule placed before all other rules:
988   ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
989
990 The option "udev_db" does no longer exist. All udev state will be in
991 /$udev_root/.udev/ now, there is no longer an option to set this
992 to anything else.
993 If the init script or something else used this value, just depend on
994 this hardcoded path. But remember _all_content_ of this directory is
995 still private to udev and can change at any time.
996
997 Default location for rule sripts and helper programs is now: /lib/udev/.
998 Everything that is not useful on the commandline should go into this
999 directory. Some of the helpers in the extras folder are installed there
1000 now. The rules need to be changed, to find the helpers there.
1001
1002 Also /lib/udev/devices is recommended as a directory where packages or
1003 the user can place real device nodes, which get copied over to /dev at
1004 every boot. This should replace the various solutions with custom config
1005 files.
1006
1007 Udevsend does no longer start the udev daemon. This must be done with
1008 the init script that prepares /dev on tmpfs and creates the initial nodes,
1009 before starting the daemon.
1010
1011 udev 075
1012 ========
1013 Silent a too verbose error logging for the old hotplug.d/ dev.d/
1014 emulation.
1015
1016 The copy of klibc is removed. A systemwide installed version of klibc
1017 should be used to build a klibc udev now.
1018
1019 udev 074
1020 ========
1021 NAME="" will not create any nodes, but execute RUN keys. To completely
1022 ignore an event the OPTION "ignore_device" should be used.
1023
1024 After removal of the reorder queue, events with a TIMEOUT can be executed
1025 without any queuing now.
1026
1027 udev 073
1028 ========
1029 Fixed bug in udevd, if inotify is not available. We depend on netlink
1030 uevents now, kernels without that event source will not work with that
1031 version of udev anymore.
1032
1033 udev 072
1034 ========
1035 The rule parsing happens now in the daemon once at startup, all udev
1036 event processes inherit the already parsed rules from the daemon.
1037 It is shipped with SUSE10.0 and reduces heavily the system load at
1038 startup. The option to save precompiled rules and let the udev process
1039 pick the them up is removed, as it's no longer needed.
1040
1041 Kernel 2.6.15 will have symlinks at /class/input pointing to the real
1042 device. Libsysfs is changed to "translate" the requested link into the
1043 real device path, as it would happen with the hotplug event. Otherwise
1044 device removal and the udev database will not work.
1045
1046 Using 'make STRIPCMD=' will leave the binaries unstripped for debugging
1047 and packaging.
1048
1049 A few improvements for vol_id, the filesytem probing code.
1050
1051 udev 071
1052 ========
1053 Fix a stupid typo in extras/run_directory for "make install".
1054
1055 scsi_id creates the temporary devnode now in /dev for usage with a
1056 non-writable /tmp directory.
1057
1058 The uevent kernel socket buffer can carry app. 50.000 events now,
1059 let's see who can break this again. :)
1060
1061 The upcoming kernel will have a new input driver core integration.
1062 Some class devices are now symlinks to the real device. libsysfs
1063 needs a fix for this to work correctly. Udevstart of older udev
1064 versions will _not_ create these devices!
1065
1066 udev 070
1067 ========
1068 Fix a 'install' target in the Makefile, that prevents EXTRAS from
1069 beeing installed.
1070
1071 udev 069
1072 ========
1073 A bunch of mostly trivial bugfixes. From now on no node name or
1074 symlink name can contain any character than plain whitelisted ascii
1075 characters or validated utf8 byte-streams. This is needed for the
1076 /dev/disk/by-label/* links, because we import untrusted data and
1077 export it to the filesystem.
1078
1079 udev 068
1080 ========
1081 More bugfixes. If udevd was started from the kernel, we don't
1082 have stdin/stdout/stderr, which broke the forked tools in some
1083 situations.
1084
1085 udev 067
1086 ========
1087 Bugfix. udevstart event ordering was broken for a long time.
1088 The new run_program() uncovered it, because /dev/null was not
1089 available while we try to run external programs.
1090 Now udevstart should create it before we run anything.
1091
1092 udev 066
1093 ========
1094 Minor bugfixes and some distro rules updates. If you don't have the
1095 persistent disk rules in /dev/disk/by-*/* on your distro, just
1096 grab it from here. :)
1097
1098 udev 065
1099 ========
1100 We can use socket communication now to pass events from udev to
1101 other programs:
1102   RUN+="socket:/org/freedesktop/hal/udev_event"
1103 will pass the whole udev event to the HAL daemon without the need
1104 for a forked helper. (See ChangeLog for udevmonitor, as an example)
1105
1106 udev 064
1107 ========
1108 Mostly bugfixes and see ChangeLog.
1109
1110 The test for the existence of an environment value should be
1111 switched from:
1112   ENV{KEY}=="*" to ENV{KEY}=="?*"
1113 because "*" will not fail anymore, if the key does not exist or
1114 is empty.
1115
1116 udev 063
1117 ========
1118 Bugfixes and a few tweaks described in the ChangeLog.
1119
1120 udev 062
1121 ========
1122 Mostly a Bugfix release.
1123
1124 Added WAIT_FOR_SYSFS="<attribute>" to be able to fight against the sysfs
1125 timing with custom rules.
1126
1127 udev 061
1128 ========
1129 We changed the  internal rule storage format. Our large rule files took
1130 2 MB of RAM, with the change we are down to 99kB.
1131
1132 If the device-node has been created with default name and no symlink or
1133 options are to remenber, it is not longer stored in the udevdb. HAL will
1134 need to be updated to work correctly with that change.
1135
1136 To overrride optimization flags, OPTFLAGS may be used now.
1137
1138 udev 060
1139 ========
1140 Bugfix release.
1141
1142 udev 059
1143 ========
1144 Major changes happened with this release. The goal is to take over the
1145 complete kernel-event handling and provide a more efficient way to dispatch
1146 kernel events. Replacing most of the current shell script logic and the
1147 kernel forked helper with a netlink-daemon and a rule-based event handling.
1148
1149 o udevd listens to netlink events now. The first valid netlink event
1150   will make udevd ignore any message from udevsend that contains a
1151   SEQNUM, to avoid duplicate events. The forked events can be disabled
1152   with:
1153     echo "" > /proc/sys/kernel/hotplug
1154   For full support, the broken input-subsytem needs to be fixed, not to
1155   bypass the driver core.
1156
1157 o /etc/dev.d/ + /etc/hotplug.d/ directory multiplexing is completely
1158   removed from udev itself and must be emulated by calling small
1159   helper binaries provided in the extras folder:
1160     make EXTRAS=extras/run_directory/
1161   will build udev_run_devd and udev_run_hotplugd, which can be called
1162   from a rule if needed:
1163     RUN+="/sbin/udev_run_hotplugd"
1164   The recommended way to handle this is to convert all the calls from
1165   the directories to explicit udev rules and get completely rid of the
1166   multiplexing. (To catch a ttyUSB event, you now no longer need to
1167   fork and exit 300 tty script instances you are not interested in, it
1168   is just one rule that matches exactly the device.)
1169
1170 o udev handles now _all_ events not just events for class and block
1171   devices, this way it is possible to control the complete event
1172   behavior with udev rules. Especially useful for rules like:
1173     ACTION="add", DEVPATH="/devices/*", MODALIAS=="?*", RUN+="/sbin/modprobe $modalias"
1174
1175 o As used in the modalias rule, udev supports now textual
1176   substitution placeholder along with the usual format chars. This
1177   needs to be documented, for now it's only visible in udev_rules_parse.c.
1178
1179 o The rule keys support now more operations. This is documented in the
1180   man page. It is possible to add values to list-keys like the SYMLINK
1181   and RUN list with KEY+="value" and to clear the list by assigning KEY="".
1182   Also "final"-assignments are supported by using KEY:="value", which will
1183   prevent changing the key by any later rule.
1184
1185 o kernel 2.6.12 has the "detached_state" attribute removed from
1186   sysfs, which was used to recognize sysfs population. We switched that
1187   to wait for the "bus" link, which is only available in kernels after 2.6.11.
1188   Running this udev version on older kernels may cause a short delay for
1189   some events.
1190
1191 o To provide infrastructure for persistent device naming, the id programs:
1192   scsi_id, vol_id (former udev_volume_id), and ata_id (new) are able now
1193   to export the probed data in environment key format:
1194     pim:~ # /sbin/ata_id --export /dev/hda
1195     ID_MODEL=HTS726060M9AT00
1196     ID_SERIAL=MRH401M4G6UM9B
1197     ID_REVISION=MH4OA6BA
1198
1199   The following rules:
1200     KERNEL="hd*[!0-9]", IMPORT="/sbin/ata_id --export $tempnode"
1201     KERNEL="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_MODEL}_$env{ID_SERIAL}"
1202
1203   Will create:
1204     kay@pim:~> tree /dev/disk
1205     /dev/disk
1206     |-- by-id
1207     |   |-- HTS726060M9AT00_MRH401M4G6UM9B -> ../../hda
1208     |   `-- IBM-Memory_Key -> ../../sda
1209     |-- by-label
1210     |   |-- swap -> ../../hda1
1211     |   |-- date -> ../../sda1
1212     |   `-- home -> ../../hda3
1213     `-- by-uuid
1214         |-- 2E08712B0870F2E7 -> ../../hda3
1215         |-- 9352cfef-7687-47bc-a2a3-34cf136f72e1 -> ../../hda1
1216         |-- E845-7A89 -> ../../sda1
1217         `-- b2a61681-3812-4f13-a4ff-920d70604299 -> ../../hda2
1218
1219   The IMPORT= operation will import these keys in the environment and make
1220   it available for later PROGRAM= and RUN= executed programs. The keys are
1221   also stored in the udevdb and can be queried from there with one of the
1222   next udev versions.
1223
1224 o A few binaries are silently added to the repository, which can be used
1225   to replay kernel events from initramfs instead of using coldplug. udevd
1226   can be instructed now to queue-up events while the stored events from
1227   initramfs are filled into the udevd-queue. This code is still under
1228   development and there is no documentation now besides the code itself.
1229   The additional binaries get compiled, but are not installed by default.
1230
1231 o There is also a temporary fix for a performance problem where too many
1232   events happen in parallel and every event needs to parse the rules.
1233   udev can now read precompiled rules stored on disk. This is likely to be
1234   replaced by a more elegant solution in a future udev version.
1235
1236 udev 058
1237 ========
1238 With kernel version 2.6.12, the sysfs file "detached_state" was removed.
1239 Fix for libsysfs not to expect this file was added.
1240
1241 udev 057
1242 ========
1243 All rules are applied now, but only the first matching rule with a NAME-key
1244 will be applied. All later rules with NAME-key are completely ignored. This
1245 way system supplied symlinks or permissions gets applied to user-defined
1246 naming rules.
1247
1248 Note:
1249 Please check your rules setup, if you may need to add OPTIONS="last_rule"
1250 to some rules, to keep the old behavior.
1251
1252 The rules are read on "remove"-events too. That makes is possible to match
1253 with keys that are available on remove (KERNEL, SUBSYSTEM, ID, ENV, ...) to
1254 instruct udev to ignore an event (OPTIONS="ignore_device").
1255 The new ACTION-key may be used to let a rule act only at a "remove"-event.
1256
1257 The new RUN-key supports rule-based execution of programs after device-node
1258 handling. This is meant as a general replacement for the dev.d/-directories
1259 to give fine grained control over the execution of programs.
1260
1261 The %s{}-sysfs format char replacement values are searched at any of the
1262 devices in the device chain now, not only at the class-device.
1263
1264 We support log priority levels now. The value udev_log in udev.conf is used
1265 to determine what is printed to syslog. This makes it possible to
1266 run a version with compiled-in debug messages in a production environment
1267 which is sometimes needed to find a bug.
1268 It is still possible to supress the inclusion of _any_ syslog usage with
1269 USE_LOG=false to create the smallest possible binaries if needed.
1270 The configured udev_log value can be overridden with the environment variable
1271 UDEV_LOG.
1272
1273 udev 056
1274 ========
1275 Possible use of a system-wide klibc:
1276   make USE_KLIBC=true KLCC=/usr/bin/klcc all
1277 will link against an external klibc and our own version will be ignored.
1278
1279 udev 055
1280 ========
1281 We support an unlimited count of symlinks now.
1282
1283 If USE_STATIC=true is passed to a glibc build, we link statically and use
1284 a built-in userdb parser to resolve user and group names.
1285
1286 The PLACE= key is gone. It can be replaced by an ID= for a long time, because
1287 we walk up the chain of physical devices to find a match.
1288
1289 The KEY="<value>" format supports '=', '==', '!=,' , '+=' now. This makes it
1290 easy to skip certain attribute matches without composing rules with weird
1291 character class negations like:
1292   KERNEL="[!s][!c][!d]*"
1293 this can now be replaced with:
1294   KERNEL!="scd*"
1295 The current simple '=' is still supported, and should work as it does today,
1296 but existing rules should be converted if possible, to be better readable.
1297
1298 We have new ENV{}== key now, to match against a maximum of 5 environment
1299 variables.
1300
1301 udevstart is its own binary again, because we don't need co carry this araound
1302 with every forked event.