Date: Wed, 7 May 2014 08:04:41 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r265532 - stable/10/usr.bin/iscsictl Message-ID: <201405070804.s4784frg034952@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Wed May 7 08:04:41 2014 New Revision: 265532 URL: http://svnweb.freebsd.org/changeset/base/265532 Log: MFC r264405: Fix periph listing when IOCTL buffer border hits result for wanted bus. Modified: stable/10/usr.bin/iscsictl/periphs.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.bin/iscsictl/periphs.c ============================================================================== --- stable/10/usr.bin/iscsictl/periphs.c Wed May 7 08:03:30 2014 (r265531) +++ stable/10/usr.bin/iscsictl/periphs.c Wed May 7 08:04:41 2014 (r265532) @@ -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: {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405070804.s4784frg034952>