[PATCH V2 nvme-cli 0/2] add "Path Access" field in command "nvme list"

chengjike chengjike.cheng at huawei.com
Sun Sep 26 18:41:35 PDT 2021


This patch V2 is to add "Path Access" field in command "nvme list".
I have adjusted the patches order, added proper commit description,
modified the "State" to "Path Access".

When NVMe Subsystem is connected with one or more controllers via fabric, such as NVMe-oF over RDMA,  
if the link or NVMe Subsystem array is faulty, some nvme disks on the host are unavailable and 
they won't be deleted immediately. But the "nvme list" command does not show these faulty disks. 
So add "Path Access" field  in command "nvme list", and display the access status of each disk for users.
for examples:

[root at localhost nvme-cli]# nvme list 
Node      SN                   Model        Namespace Usage                      Format           FW Rev   Path Access 
--------- -------------------- ------------ --------- -------------------------- ---------------- -------- ------------
nvme1n1   2102352TSB10KC000015 Huawei-XSG1  1           0.00   B /   0.00   B      0   B +  0 B   1000001  faulty      
nvme0n1   2102352TSB10KC000015 Huawei-XSG1  1           0.00   B /   1.07  GB    512   B +  0 B   1000001  live   
[root at localhost nvme-cli]#


chengjike (1):
  initialize disk "access" variable

 src/nvme/private.h |  1 +
 src/nvme/tree.c    | 57 ++++++++++++++++++++++++++++++++++++++++++----
 src/nvme/tree.h    |  8 +++++++
 3 files changed, 61 insertions(+), 5 deletions(-)

chengjike (1):
  add "Path Access" entry in command output

 nvme-print.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
 
-- 
2.21.0.windows.1




More information about the Linux-nvme mailing list