From owner-svn-src-all@FreeBSD.ORG Sun Apr 13 09:31:22 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A009C126; Sun, 13 Apr 2014 09:31:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BA441A5D; Sun, 13 Apr 2014 09:31:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3D9VMjT054825; Sun, 13 Apr 2014 09:31:22 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3D9VMMr054824; Sun, 13 Apr 2014 09:31:22 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201404130931.s3D9VMMr054824@svn.freebsd.org> From: Alexander Motin Date: Sun, 13 Apr 2014 09:31:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264405 - head/usr.bin/iscsictl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2014 09:31:22 -0000 Author: mav Date: Sun Apr 13 09:31:22 2014 New Revision: 264405 URL: http://svnweb.freebsd.org/changeset/base/264405 Log: Fix periph listing when IOCTL buffer border hits result for wanted bus. Modified: head/usr.bin/iscsictl/periphs.c Modified: head/usr.bin/iscsictl/periphs.c ============================================================================== --- head/usr.bin/iscsictl/periphs.c Sun Apr 13 06:30:02 2014 (r264404) +++ head/usr.bin/iscsictl/periphs.c Sun Apr 13 09:31:22 2014 (r264405) @@ -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: {