From 79e4798061a89152b967a0761f88f59742722b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Wed, 12 Feb 2020 14:52:16 +0100 Subject: [PATCH] zdev: Add FC Endpoint Security information for DASD devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide information for the DASD device attribute 'fc_security'. The help output for this attribute can be queried like this: chzdev dasd --help-attribute The lszdev tool can be used to display the current state of the FC Endpoint Security information: lszdev dasd -a -c TYPE,ID,ATTR:fc_security,ATTRPATH:fc_security Reviewed-by: Peter Oberparleiter Signed-off-by: Jan Höppner --- zdev/src/dasd.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/zdev/src/dasd.c b/zdev/src/dasd.c index 645e8b02..63b49e34 100644 --- a/zdev/src/dasd.c +++ b/zdev/src/dasd.c @@ -313,6 +313,22 @@ static struct attrib dasd_attr_safe_offline = { .writeonly = 1, }; +static struct attrib dasd_attr_fc_security = { + .name = "fc_security", + .title = "Show FC Endpoint Security state of DASD device", + .desc = + "This read-only attribute shows the Fibre Channel Endpoint Security\n" + "status of the connection to the DASD device:\n" + " Unsupported : The DASD device does not support Fibre Channel\n" + " Endpoint Security\n" + " Inconsistent : The operational channel paths of the DASD device\n" + " report inconsistent Fibre Channel Endpoint\n" + " Security status\n" + " Authentication: The connection has been authenticated\n" + " Encryption : The connection is encrypted\n", + .readonly = 1, +}; + /* * DASD subtype methods. */ @@ -617,6 +633,7 @@ struct subtype dasd_subtype_eckd = { &dasd_attr_reservation_policy, &dasd_attr_last_known_reservation_state, &dasd_attr_safe_offline, + &dasd_attr_fc_security, &internal_attr_early, ), .unknown_dev_attribs = 1,