From owner-cvs-src@FreeBSD.ORG Mon Aug 21 13:24:50 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C74C016A566; Mon, 21 Aug 2006 13:24:50 +0000 (UTC) (envelope-from ken@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 835AB43D7B; Mon, 21 Aug 2006 13:24:50 +0000 (GMT) (envelope-from ken@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7LDOojH093213; Mon, 21 Aug 2006 13:24:50 GMT (envelope-from ken@repoman.freebsd.org) Received: (from ken@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7LDOoDh093212; Mon, 21 Aug 2006 13:24:50 GMT (envelope-from ken) Message-Id: <200608211324.k7LDOoDh093212@repoman.freebsd.org> From: "Kenneth D. Merry" Date: Mon, 21 Aug 2006 13:24:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/camcontrol camcontrol.8 camcontrol.c src/sys/cam/scsi scsi_all.c scsi_all.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2006 13:24:51 -0000 ken 2006-08-21 13:24:50 UTC FreeBSD src repository Modified files: sbin/camcontrol camcontrol.8 camcontrol.c sys/cam/scsi scsi_all.c scsi_all.h Log: Implement 'camcontrol reportluns'. This allows users to send the SCSI REPORT LUNS command to a device. camcontrol.[c8]: Implement reportluns. This tries to print the LUNs out in a reasonable format. Only the periph addressing method has been tested, since very little hardware that I know of supports the other methods. scsi_all.[ch]: Revamp the report luns CDB structure and helper functions. This constitutes a little bit of an API change, but since the old CDB length was 10 bytes, and the REPORT LUNS CDB length is actually 12 bytes, it's clear that no one was using this API in the first place. MFC After: 1 week Revision Changes Path 1.42 +39 -1 src/sbin/camcontrol/camcontrol.8 1.54 +261 -1 src/sbin/camcontrol/camcontrol.c 1.49 +5 -3 src/sys/cam/scsi/scsi_all.c 1.26 +30 -12 src/sys/cam/scsi/scsi_all.h