From e489ca69f609b64c0eb31c32fe101b3e17524789 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 4 Jan 2018 21:03:38 -0700 Subject: [PATCH] setup.sh: add virtio device names to status output Change-Id: I0f6e1d8df9480538e2dc39cf658396d4ecd14daa Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/393724 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- scripts/setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 6bfb265e9..628740307 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -379,12 +379,14 @@ function status_linux { #collect all the device_id info of virtio-scsi devices. TMP=`grep "PCI_DEVICE_ID_VIRTIO_SCSI" $rootdir/include/spdk/pci_ids.h \ | awk -F"x" '{print $2}'` - echo -e "BDF\t\tNuma Node\tDriver Name" + echo -e "BDF\t\tNuma Node\tDriver Name\t\tDevice Name" for dev_id in $TMP; do for bdf in $(iter_pci_dev_id 1af4 $dev_id); do driver=`grep DRIVER /sys/bus/pci/devices/$bdf/uevent |awk -F"=" '{print $2}'` node=`cat /sys/bus/pci/devices/$bdf/numa_node`; - echo -e "$bdf\t$node\t\t$driver" + blknames='' + get_virtio_names_from_bdf "$bdf" blknames + echo -e "$bdf\t$node\t\t$driver\t\t$blknames" done done }