On 03/06/2018 12:15 AM, Martin Wilck wrote: > implement display of path information for NVMe foreign paths and maps. > With this patch, I get output like this for Linux NVMe soft targets: > > nvme-submultipathd show topology > sys0:NQN:subsysname (uuid.96926ba3-b207-437c-902c-4a4df6538c3f) [nvme] nvme0n1 NVMe,Linux,4.15.0-r > size=2097152 features='n/a' hwhandler='n/a' wp=rw > `-+- policy='n/a' prio=n/a status=n/a > |- 0:1:1 nvme0c1n1 0:0 n/a n/a live > |- 0:2:1 nvme0c2n1 0:0 n/a n/a live > |- 0:3:1 nvme0c3n1 0:0 n/a n/a live > `- 0:4:1 nvme0c4n1 0:0 n/a n/a live > > multipathd show paths format '%G %d %i %o %z %m %N' > foreign dev hcil dev_st serial multipath host WWNN > [nvme] nvme0c1n1 0:1:1 live 1c2c86659503a02f nvme0n1 rdma:traddr=192.168.201.101,trsvcid=4420 > [nvme] nvme0c2n1 0:2:1 live 1c2c86659503a02f nvme0n1 rdma:traddr=192.168.202.101,trsvcid=4420 > [nvme] nvme0c3n1 0:3:1 live 1c2c86659503a02f nvme0n1 rdma:traddr=192.168.203.101,trsvcid=4420 > [nvme] nvme0c4n1 0:4:1 live 1c2c86659503a02f nvme0n1 rdma:traddr=192.168.204.101,trsvcid=4420 > > (admittedly, I abused the 'WWNN' wildcard here a bit to display information > which is helpful for NVMe over RDMA). > > Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> > --- > libmultipath/foreign/nvme.c | 334 ++++++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 320 insertions(+), 14 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg) -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel