From owner-cvs-all@FreeBSD.ORG Sun Apr 25 10:10:19 2004 Return-Path: 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 6DA0316A4CE; Sun, 25 Apr 2004 10:10:19 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 480D643D2F; Sun, 25 Apr 2004 10:10:19 -0700 (PDT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3PHAJGe006395; Sun, 25 Apr 2004 10:10:19 -0700 (PDT) (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3PHAIOV006393; Sun, 25 Apr 2004 10:10:18 -0700 (PDT) (envelope-from marius) Message-Id: <200404251710.i3PHAIOV006393@repoman.freebsd.org> From: Marius Strobl Date: Sun, 25 Apr 2004 10:10:18 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/sbin/camcontrol camcontrol.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2004 17:10:19 -0000 marius 2004/04/25 10:10:18 PDT FreeBSD src repository Modified files: (Branch: RELENG_4) sbin/camcontrol camcontrol.c Log: MFC: 1.52 Fix a couple of camcontrol issues that popped up on sparc64: - bzero the CCB header in getdevtree() and set the path properly, to avoid having random garbage in the CCB header. - if the lun isn't specified in a device specifier, it should default to 0, not whatever random data happens to be in the lun variable. - move the prototype for getdevtree() out from under #ifndef MINIMALISTIC, since it is used in both cases. Approved by: ken (maintainer), marcel (mentor) Revision Changes Path 1.21.2.14 +12 -2 src/sbin/camcontrol/camcontrol.c