mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zpcictl: Rephrase man page entries and tool output
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.\" Copyright 2017 IBM Corp.
|
||||
.\" Copyright IBM Corp. 2018
|
||||
.\" s390-tools is free software; you can redistribute it and/or modify
|
||||
.\" it under the terms of the MIT license. See LICENSE for details.
|
||||
.\"
|
||||
@@ -30,9 +30,10 @@ zpcictl - Manage PCI devices on z Systems
|
||||
.
|
||||
.
|
||||
.SH DESCRIPTION
|
||||
With
|
||||
.B zpcictl
|
||||
is a tool for managing PCI devices on the IBM z Systems platform. It is
|
||||
especially used for reporting errorneous PCI devices to the service element.
|
||||
, you can manage PCI devices on the IBM z Systems platform. It is especially
|
||||
used for reporting erroneous PCI devices to the service element.
|
||||
|
||||
.B Note:
|
||||
For NVMe devices additional data (such as S.M.A.R.T. data) is collected and sent
|
||||
@@ -44,7 +45,9 @@ for this to work.
|
||||
.SH DEVICE
|
||||
.B DEVICE
|
||||
can be either the PCI slot address (e.g. 0000:00:00.0) or the main device node
|
||||
of an NVMe device (e.g. /dev/nvme0).
|
||||
of an NVMe device (e.g.
|
||||
.I /dev/nvme0
|
||||
).
|
||||
.
|
||||
.
|
||||
.SH OPTIONS
|
||||
@@ -52,7 +55,7 @@ of an NVMe device (e.g. /dev/nvme0).
|
||||
.OD reset "" "DEVICE"
|
||||
Reset
|
||||
.I DEVICE
|
||||
and initiate a re-initialisation of the adapter.
|
||||
and initiate a re-initialization of the PCI device.
|
||||
.PP
|
||||
.
|
||||
.OD deconfigure "" "DEVICE"
|
||||
|
||||
@@ -240,7 +240,7 @@ static int device_exists(char *dev)
|
||||
static void get_device_info(struct zpci_device *pdev, char *dev)
|
||||
{
|
||||
if (!device_exists(dev))
|
||||
errx(EXIT_FAILURE, "Device %s not found", dev);
|
||||
errx(EXIT_FAILURE, "Could not find device %s", dev);
|
||||
if (is_blk_dev(dev))
|
||||
errx(EXIT_FAILURE, "Unsupported device type %s", dev);
|
||||
if (is_char_dev(dev)) {
|
||||
@@ -254,9 +254,10 @@ static void get_device_info(struct zpci_device *pdev, char *dev)
|
||||
pdev->fid = sysfs_read_value(pdev, "function_id");
|
||||
pdev->pchid = sysfs_read_value(pdev, "pchid");
|
||||
|
||||
/* In case a slot address was specified, we still need to figure out
|
||||
* the device node for NVMe devices. Otherwise we won't be able to
|
||||
* collect S.M.A.R.T. data at a later point.
|
||||
/*
|
||||
* In case a slot address was specified, the device node for NVMe
|
||||
* devices is still needed. Otherwise it won't be possible to collect
|
||||
* S.M.A.R.T. data at a later point.
|
||||
*/
|
||||
if (!pdev->device && pdev->class == PCI_CLASS_NVME)
|
||||
get_device_node(pdev);
|
||||
|
||||
Reference in New Issue
Block a user