From owner-cvs-all Mon Dec 9 9:36:40 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E15D437B401; Mon, 9 Dec 2002 09:36:38 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C6C343EDC; Mon, 9 Dec 2002 09:36:37 -0800 (PST) (envelope-from gibbs@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gB9HVtmV089842; Mon, 9 Dec 2002 09:31:55 -0800 (PST) (envelope-from gibbs@repoman.freebsd.org) Received: (from gibbs@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gB9HVtV4089841; Mon, 9 Dec 2002 09:31:55 -0800 (PST) Message-Id: <200212091731.gB9HVtV4089841@repoman.freebsd.org> From: "Justin T. Gibbs" Date: Mon, 9 Dec 2002 09:31:55 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam cam_xpt.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG gibbs 2002/12/09 09:31:55 PST Modified files: (Branch: RELENG_4) sys/cam cam_xpt.c Log: Correct an off by one in the calculation of the "full inquiry length". Although the SCSI spec indicates that the "additional length field" of the inquiry data is "n - 4", n is an index to the last byte of inquiry data, not the length of data. For length calculations, use 5, not 4. In xpt_set_transfer_settings, never attempt U320 transfer speeds if the information transfer units capability is not supported by the device. The SPI4 spec precludes running any PACED transfer speed without IUTs. Reviewed by: scottl, ken Revision Changes Path 1.80.2.18 +21 -10 src/sys/cam/cam_xpt.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message