mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The ziomon_fcpconf saves a lot of information about adapter into .cfg file. With this patch ziorep_config tool will extract PCHID additional adapter parameter from .cfg file and put it into .config file for future evaluation by ziorep_* tools group. This patch also adds notification for cases, when chid sysfs entry does not exist for specified CHPID, for example for old kernels. Before patch application typical line example from .config file looked like: ... 253:0 /dev/sde 8388672 8:64 Disk After application of the patch typical line example from .config file looks like: ... 253:0 /dev/sde 8388672 8:64 Disk 01c0 On older distros, which do not contain pchid sysfs entry, typical line example from .config file looks like: ... 253:0 /dev/sde 8388672 8:64 Disk n/a As PCHID value of FCP adapter can now be extracted from .config file, add PCHID field to report of ziorep_config tool. If there was no PCHID sysfs entry on the system, print following message into ziorep_config command output: ... PCHID: there is no PCHID entry in data source ... Signed-off-by: Fedor Loshakov <loshakov@linux.ibm.com> Reviewed-by: Steffen Maier <maier@linux.ibm.com> Reviewed-by: Benjamin Block <bblock@linux.ibm.com> Reviewed-by: Sakshi Singh <005c7w@linux.ibm.com> Reviewed-by: M Nikhil <nikh1092@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>