• Jan Höppner's avatar
    s390/dasd: Display FC Endpoint Security information via sysfs · 19508b20
    Jan Höppner authored
    Add a new sysfs attribute (fc_security) per device and per operational
    channel path. The information of the current FC Endpoint Security state
    is received through the CIO layer.
    
    The state of the FC Endpoint Security can be either "Unsupported",
    "Authentication", or "Encryption".
    
    For example:
    $ cat /sys/bus/ccw/devices/0.0.c600/fc_security
    Encryption
    
    If any of the operational paths is in a state different from all
    others, the device sysfs attribute will display the additional state
    "Inconsistent".
    
    The sysfs attributes per paths are organised in a new directory called
    "paths_info" with subdirectories for each path.
    
    /sys/bus/ccw/devices/0.0.c600/paths_info/
    ├── 0.38
    │   └── fc_security
    ├── 0.39
    │   └── fc_security
    ├── 0.3a
    │   └── fc_security
    └── 0.3b
        └── fc_security
    Signed-off-by: default avatarJan Höppner <hoeppner@linux.ibm.com>
    Signed-off-by: default avatarStefan Haberland <sth@linux.ibm.com>
    Reviewed-by: default avatarStefan Haberland <sth@linux.ibm.com>
    Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    19508b20
dasd_int.h 40.7 KB