mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
At the moment, if we specify the slot address of an NVMe device but can't find the corresponding device node, the execution is terminated. This is a bit harsh as the device node is rather optional and only necessary to collect S.M.A.R.T. data. We should still be able to issue the error reporting, even if we couldn't determine the device node. Therefore, make sure the device node for NVMe devices is optional by changing various error messages to warnings. Change sysfs_get_slot_addr() to have a return value and work with that accordingly. Also make sure, that execution is terminated when a valid device node was specified but no matching slot address was determined. The slot address is necessary to issue the error reporting commands. Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>