Subject: Re: BAD BLOCKS WITH SCSI DISKS, HOW TO REMAP
To: Warner Losh <imp@village.org>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 06/12/1996 00:35:18
On Tue, 11 Jun 1996 22:38:28 -0600 
 Warner Losh <imp@village.org> wrote:

 > FreeBSD has a scsi command.  However, I believe that it requires at
 > least some kernel support.  It lets you execute an arbitrary scsi
 > command, so you really have to have the permissions of the disk drives
 > correct.

NetBSD has the same (or similar) support for user-land access to raw SCSI 
commands.  xmcd uses this facility, as does my sdremap program, which I've 
posted here previously.

 > Should likely prove useful for this sort of undertaking.

Actually, I was thinking of something much more "high-level" than what 
FreeBSD provides as a libscsi and scsi(8) ... The FreeBSD libscsi doesn't 
look terribly useful itself ... It places a _lot_ of responsibility on 
the calling application (much more than I would consider necessary), which 
seems to defeat the purpose of a library.

----save the ancient forests - http://www.bayarea.net/~thorpej/forest/----
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939