1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00
systemd/rules
Joerg Steffens 7f8ddf96a2 udev-rules: make tape-changers also apprear in /dev/tape/by-path/
It is important to be able to access tape changer ("Medium Changers") by
persistant name.
While tape devices can be accessed via /dev/tape/by-id/ and
/dev/tape/by-path/, tape-changers could only be accessed by
/dev/tape/by-id/.
However, in some cases, especially when accessing Amazon Webservice
Storage Gateway VTLs (or accessing iSCSI VTLs in general?) this does not
work, as all tape devices and the tape changer have the same ENV{ID_SERIAL}.
The results is, that only the last device is available in
/dev/tape/by-id/, as the former devices have been overwritten.

As this behavior is hard to change without breaking consistentcy,
this additional device in /dev/tape/by-path/ can be used to access the medium changes.
The tape devices can also be accessed by this path.

The content of the directory will now look like:

  # SCSI tape device, rewind (unchanged)
  /dev/tape/by-path/$env{ID_PATH} -> ../../st*

  # SCSI tape device, no-rewind (unchanged)
  /dev/tape/by-path/$env{ID_PATH}-nst -> ../../nst*

  # SCSI tape changer device (newly added)
  /dev/tape/by-path/$env{ID_PATH}-changer -> ../../sg*

Tape devices and tape changer have different ID_PATHs.
SCSI tape changer get the suffix "-changer"
to make them better distinguishable from tape devices.
2017-11-21 12:21:49 +01:00
..
50-udev-default.rules.in udev-rules: Add rule for /dev/kfd 2017-11-08 08:22:05 -08:00
60-block.rules rules: watch metadata changes in mmcblk devices (#6050) 2017-05-30 15:19:03 +02:00
60-cdrom_id.rules rules: allow SPARC vdisk devices when identifying CD drives (#5599) 2017-03-20 11:22:54 +01:00
60-drm.rules rules: add persistent by-path drm rules (#5337) 2017-02-14 10:18:27 +01:00
60-evdev.rules rules: move input_id rule to a separate file 2017-06-27 13:28:10 +02:00
60-input-id.rules hwdb: add a hwdb file to override ID_INPUT assignments 2017-10-30 10:57:18 +10:00
60-persistent-alsa.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-input.rules rules: run all persistent-input rules for rmi and i8042 (#7287) 2017-11-10 10:32:51 +01:00
60-persistent-storage-tape.rules udev-rules: make tape-changers also apprear in /dev/tape/by-path/ 2017-11-21 12:21:49 +01:00
60-persistent-storage.rules rules: Add MODEL_ID for NVMe device (#7037) 2017-10-10 10:03:38 +02:00
60-persistent-v4l.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
60-sensor.rules rules: allow quirks for platform input accelerometers 2017-03-03 21:23:39 +01:00
60-serial.rules rules: merge tty and serial rules file 2015-03-12 17:22:19 +01:00
64-btrfs.rules.in fix path in btrfs rule (#6844) 2017-09-15 21:28:24 +02:00
70-joystick.rules hwdb: Add ID_INPUT_JOYSTICK_INTEGRATION property (#5413) 2017-06-26 12:17:36 +02:00
70-mouse.rules hwdb: add rule and first entry for PS/2 mice 2014-12-24 08:08:23 +10:00
70-touchpad.rules hwdb: add a 70-touchpad.hwdb to tag internal vs external touchpads 2016-07-01 15:25:34 +10:00
75-net-description.rules rules: net, tty description - ask hwdb explicitly for pci data 2013-07-21 16:33:27 +02:00
75-probe_mtd.rules build-sys: make loadable module support optional 2012-11-20 19:35:27 +01:00
78-sound-card.rules rules: identify internal sound cards on platform bus (#4893) 2016-12-15 23:11:11 +01:00
80-drivers.rules rules: load drivers only on "add" events 2017-09-11 21:04:34 +02:00
80-net-setup-link.rules udev: import the full db on MOVE events for devices without dev_t 2014-09-09 15:03:49 +02:00
99-systemd.rules.in Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
meson.build Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01:00