summaryrefslogtreecommitdiffstats
path: root/usr.bin/iscsictl
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-04-13 09:31:22 +0000
committermav <mav@FreeBSD.org>2014-04-13 09:31:22 +0000
commit2cab335736272ea889fa9271e3297e26e4eb09e2 (patch)
treee51634a0a692fb399d029d5d0d733483a4af593e /usr.bin/iscsictl
parent332f86f206cb61dee2f401bbce26496eea88deec (diff)
downloadFreeBSD-src-2cab335736272ea889fa9271e3297e26e4eb09e2.zip
FreeBSD-src-2cab335736272ea889fa9271e3297e26e4eb09e2.tar.gz
Fix periph listing when IOCTL buffer border hits result for wanted bus.
Diffstat (limited to 'usr.bin/iscsictl')
-rw-r--r--usr.bin/iscsictl/periphs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/iscsictl/periphs.c b/usr.bin/iscsictl/periphs.c
index 78b237f..fb4a686 100644
--- a/usr.bin/iscsictl/periphs.c
+++ b/usr.bin/iscsictl/periphs.c
@@ -102,6 +102,9 @@ print_periphs(int session_id)
ccb.cdm.num_patterns = 0;
ccb.cdm.pattern_buf_len = 0;
+ skip_bus = 1;
+ skip_device = 1;
+
/*
* We do the ioctl multiple times if necessary, in case there are
* more than 100 nodes in the EDT.
@@ -120,9 +123,6 @@ print_periphs(int session_id)
break;
}
- skip_bus = 1;
- skip_device = 1;
-
for (i = 0; i < ccb.cdm.num_matches; i++) {
switch (ccb.cdm.matches[i].type) {
case DEV_MATCH_BUS: {
OpenPOWER on IntegriCloud