udev/path_id: improve and enhance bus detection for Linux on z Systems
authorLiu Yuan Yuan <bjyyliu@linux.vnet.ibm.com>
Fri, 13 Nov 2015 10:50:42 +0000 (11:50 +0100)
committerHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Fri, 13 Nov 2015 10:50:42 +0000 (11:50 +0100)
commite7eb5a8d88367a755944fdda3023a308e5272953
treeb81d1fe9e16ecfd8438597e6248944caf76ba91a
parent87fde73e185fabc346ee4d9c9befe972e3502dc3
udev/path_id: improve and enhance bus detection for Linux on z Systems

Improve and enhance the path_id udev builtin to correctly handle bus'
available on Linux on z Systems (s390).

Previously, the CCW bus and, in particular, any FCP devices on it, have
been treated separately.  This commit integrates the CCW bus into the
device chain loop.  FCP devices and their associated SCSI disks are now
handled through the common SCSI handling functions in path_id.

This implies also a change in the naming of the symbolic links created
by udev.  So any backports of this commit to existing Linux distribution
must be done with care.  If a backport is required, a udev rule must be
created to also create the "old-style" symbolic links.

Apart from the CCW bus, this commit adds bus support for the:

- ccwgroup bus which manages network devices, and
- ap bus which manages cryptographic adapters
- iucv bus which manages IUCV devices on z/VM
src/udev/udev-builtin-path_id.c