Commit Graph
57095 Commits
Author SHA1 Message Date
Kay Sievers 6ecad86d49 path_id: remove broken example 2007-04-22 14:19:14 +02:00
VMiklos 8127859217 path_id: add man page 2007-04-22 14:10:18 +02:00
Kay Sievers fc630edad4 udevd: fix serialization of events
We see sequences like:
  UEVENT[1176966403.907336] add@/block/dasda
  UDEV  [1176966403.920359] add@/block/dasda
  UEVENT[1176966403.964379] add@/block/dasda/dasda1
  UEVENT[1176966403.964438] add@/block/dasda/dasda2
  UEVENT[1176966403.964483] online@/block/dasda
  UEVENT[1176966403.964519] online@/block/dasda/dasda1
  UEVENT[1176966403.964555] online@/block/dasda/dasda2
  UDEV  [1176966403.967413] add@/block/dasda/dasda1
  UDEV  [1176966403.968719] add@/block/dasda/dasda2
  UDEV  [1176966403.974750] online@/block/dasda/dasda1
  UDEV  [1176966403.982241] online@/block/dasda/dasda2
  UDEV  [1176966403.999847] online@/block/dasda

where the event for the disk (last event) should come before the
events for the partitons. We skipped events for dependency reasons,
but the dependency check for later events did not see the skipped
events.
2007-04-19 22:21:05 +02:00
Kay Sievers 3a6704cba7 create_path: don't fail if something else created the directory
Thanks to Jeremy for the patch.
2007-04-12 18:55:59 +02:00
Matthias Schwarzott 878645dca3 persistent device naming: add joystick links 2007-04-12 14:38:46 +02:00
Matthias Schwarzott 730cf8a7b3 update Gentoo rules 2007-04-12 10:15:40 +02:00
Harald Hoyer 7c70c25212 create_floppy_devices: create nodes with correct selinux context 2007-04-12 01:10:08 +02:00
Kay Sievers 0809c264e9 default rules: add libata compat links 2007-04-06 19:53:20 +02:00
Kay Sievers 019d666907 udevinfo: export all information stored in database 2007-04-06 19:50:19 +02:00
Kay Sievers 68d4af11ca udevtest: import uevent variables if possible 2007-04-06 19:18:33 +02:00
Kay Sievers 81313e1b48 make ACTION!="add|change" working
Thanks to Scott for the suggestion.
2007-03-31 02:46:32 +02:00
Kay Sievers 2dc2396aaf update SUSE rules 2007-03-31 02:42:32 +02:00
Kay Sievers 1c73ceeb94 udevtest: export ACTION string if given as option 2007-03-31 02:42:14 +02:00
Kay Sievers b8eb7940bb release 108 2007-03-28 20:47:26 +02:00
Kay Sievers a401355d5a finally remove the directory event-multiplexer crap 2007-03-28 20:35:05 +02:00
Matthias Schwarzott 1532b47bdf update Gentoo rules 2007-03-28 20:31:19 +02:00
Pozsar Balazs 4e2b290821 udevsettle: read udev not kernel seqnum first 2007-03-23 17:21:46 +01:00
Kay Sievers d2c9a56e0e don't write to sysfs files during test run 2007-03-23 17:18:03 +01:00
Kay Sievers be8594ab14 udevinfo: relax check for the correct device if looked up by name 2007-03-23 17:17:18 +01:00
Matthias Schwarzott 491a6a71ff write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices 2007-03-22 21:05:56 +01:00
Kay Sievers 9d534c0e76 release 107 2007-03-21 20:17:01 +01:00
Marco d'Itri 89d3ee2b3a update Debian rules 2007-03-21 20:05:08 +01:00
Kay Sievers 1ce3e4fef0 run_directory: add final warning before removal 2007-03-21 14:22:50 +01:00
Kay Sievers e578a44746 usb_id: append target:lun to storage device serial
Some broken usb-storage devices implement multiple
luns with all the same SCSI identifiers. Append the
target:lun to get unique names in /dev/disk/by-id/.
2007-03-21 13:55:48 +01:00
Kay Sievers 3d0bb292b5 udevinfo: print link priority 2007-03-21 12:13:28 +01:00
Kay Sievers eff4a67369 udevtest: add --force mode 2007-03-21 11:55:26 +01:00
Kay Sievers 7586b63719 update SUSE rules 2007-03-21 01:58:24 +01:00
Kay Sievers 7a17ca7e79 man: add "link_priority" option 2007-03-19 15:41:06 +01:00
Kay Sievers 3d1f807b89 update TODO 2007-03-19 12:50:44 +01:00
Kay Sievers 604f104af4 if a node goes away, possibly restore a waiting symlink 2007-03-19 11:57:54 +01:00
Kay Sievers eb5b86405b update %n on netif name change 2007-03-19 09:56:53 +01:00
Kay Sievers 3045132a0d udevinfo: remove -d option 2007-03-18 15:08:53 +01:00
Kay Sievers f0f7c715ae volume_id: get rid of compiler warning 2007-03-18 12:55:21 +01:00
Kay Sievers 24f0605c1f priority based symlink handling
Symlinks can have priorities now, the priority is assigned to the device
and specified with OPTIONS="link_priority=100". Devices with higher
priorities overwrite the symlinks of devices with lower priorities.
If the device, that currently owns the link goes away, the symlink
will be removed, and recreated, pointing to the next device with the
highest actual priority.

This should solve the issue, that inserting an USB-stick may overwrite the
/dev/disk/by-id/-link of another disk, and removes the entire link after the
USB-stick is disconnected. If no priorities are specified, the new link will
overwrite the current one, and if the device goes away, it will restore
the old link. It should be possible to assign lower priorities to removable
devices, if needed.

In multipath setups, we see several devices, which all connect to the same
volume, and therefore all try to create the same metadata-links. The
different path-devices are combined into one device-mapper device, which also
contains the same metadata. It should be possible, to assign multipath-table
device-mapper devices a higher priority, so path-devices that appear and
disappear, will not overwrite or delete the device-mapper device links.
2007-03-18 12:51:57 +01:00
Kay Sievers 31de3a2ba1 read list of devices from index, make index private to database 2007-03-17 10:08:25 +01:00
Kay Sievers d7fdcd6192 remove old error message 2007-03-16 21:15:54 +01:00
Kay Sievers 456cb38756 selinux: move selinux_exit() to the main programs 2007-03-16 21:13:07 +01:00
Kay Sievers 6eee03ef45 cleanup already existing db-entries and db-index on device update 2007-03-16 17:24:39 +01:00
Kay Sievers 2afb8cb37a pick actual valid device in udev_db_lookup_name 2007-03-16 16:02:22 +01:00
Kay Sievers 2dbb47f860 add link_priority to rule options, and store it in database 2007-03-16 15:16:08 +01:00
Kay Sievers fc6da921ad store devpath with the usual leading slash 2007-03-16 03:09:02 +01:00
Jean Tourrilhes 043c6f6d4a udevtest: export UDEV_LOG if we changed it 2007-03-16 01:09:47 +01:00
Matthias Schwarzott 3f641815ec udevmonitor: fix swapped event switch descriptions 2007-03-15 16:30:08 +01:00
Kay Sievers 27d4bf1817 restore overwritten symlinks when the device goes away 2007-03-15 03:54:12 +01:00
Kay Sievers fbda4babec maintain index over device-names to devpath relation 2007-03-15 02:09:39 +01:00
Kay Sievers 8d48959a23 increase /proc/stat buffer 2007-03-15 00:10:59 +01:00
Kay Sievers 4a7e6bcef0 update internal variables if we see $DEVPATH during IMPORT 2007-03-15 00:10:22 +01:00
Kay Sievers 9c6ad9fbba encode db-file names, instead of just replacing '/' 2007-03-14 21:41:33 +01:00
Matthias Schwarzott 5edec024b1 udevd: cleanup std{in,our,err} on startup
It occurs, when root-partition has no /dev/console, meaning that kernel
could not open it, and such udevd is started without open filedescriptors
0 1 2. In that case udevd openes its sockets (netlink and control). They
get fds between 0 and 2. Later duping /dev/null to 0 1 2 closes the sockets
and replaces them with /dev/null.

The error condition can also be reproduced by starting udevd with this
command-line:
  udevd --daemon <&- >&- 2>&-
2007-03-13 22:27:21 +01:00
Kay Sievers d7eeab1194 update Gentoo rules 2007-03-13 22:20:53 +01:00