From owner-freebsd-scsi@FreeBSD.ORG Mon Jun 2 12:24:25 2003 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FB7237B405 for ; Mon, 2 Jun 2003 12:24:25 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id E919143FB1 for ; Mon, 2 Jun 2003 12:24:24 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 21009 invoked by uid 1000); 2 Jun 2003 19:24:25 -0000 Date: Mon, 2 Jun 2003 12:24:25 -0700 (PDT) From: Nate Lawson To: Douglas Gilbert In-Reply-To: <3EDAD5B6.5040308@torque.net> Message-ID: <20030602121526.W20895@root.org> References: <3EDAD5B6.5040308@torque.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: ballen@gravity.phys.uwm.edu cc: freebsd-scsi@freebsd.org Subject: Re: smartmontools port X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 19:24:25 -0000 On Mon, 2 Jun 2003, Douglas Gilbert wrote: > "The smartmontools package contains two utility > programs (smartctl and smartd) to control and > monitor storage systems using the Self-Monitoring, > Analysis and Reporting Technology System (S.M.A.R.T.) > built into most modern ATA and SCSI hard disks." > See http://smartmontools.sourceforge.net for more > details. > > Currently it only supports Linux but the maintainer, > Bruce Allen , has > received patches for a FreeBSD port for ATA disks. > [Those patches are not in the project's CVS yet.] I assume you've submitted the ATA patches to sos@? > I have rewritten the SCSI command handling code and > Kai Makisara has added code to support the TapeAlert > mechanism. The Linux SCSI command handling details > are hidden behind a CAM like structure. > This should facilitate a clean port of this code. I would be interested in reviewing any patches you have. camcontrol(8) code has good examples for the usermode libcam interface. > Other broader issues would need addressing (e.g. the > assumptions made at higher levels about device names > being SCSI or ATA devices). This could be done with a functional interface instead of data (i.e. IS_SCSI_DEV() being platform-specific). > If anyone wishes to volunteer or look at this please > contact me or Bruce. We would also be interested if > FreeBSD has any other utilities that provide SMART > facilities. You can implement this ad-hoc with the "camcontrol cmd" command. Hope this helps. -Nate