From owner-freebsd-scsi Tue Jul 14 21:42:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA14637 for freebsd-scsi-outgoing; Tue, 14 Jul 1998 21:42:09 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from math.berkeley.edu (math.Berkeley.EDU [128.32.183.94]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA14632 for ; Tue, 14 Jul 1998 21:42:06 -0700 (PDT) (envelope-from dan@math.berkeley.edu) Received: (from dan@localhost) by math.berkeley.edu (8.8.7/8.8.7) id VAA02653; Tue, 14 Jul 1998 21:41:59 -0700 (PDT) Date: Tue, 14 Jul 1998 21:41:59 -0700 (PDT) From: dan@math.berkeley.edu (Dan Strick) Message-Id: <199807150441.VAA02653@math.berkeley.edu> To: semen@iclub.nsu.ru Subject: Re: About to reset single device on SCSI bus Cc: dan@math.berkeley.edu, freebsd-scsi@FreeBSD.ORG Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Does anybody know how to reinitialize SCSI device without > reinitialization of all bus? The problem is that SDT-7000 > (DDS-2 Tape) somehow gets in stupid mode, when it works with > the speed of 15-20 Kb/s, else in doesn't whant to read tapes > written in normal state and etc. But after reset the computer, > it works just fine. So I think Subject can help me to avoid > reboot and to get SDT-7000 in normal state. I don't see an option to the scsi(8) command that does this. There is an SCIOCRESET ioctl() that might might apply to a single device. There is a SCSI message for resetting a single device, but I don't if this ioctl() actually sends it or if it is likely to work. I assume it is worth a try. You might have to open the ".ctl" device to make this work. I have a program that will do this, but it just keeps saying "SCIOCRESET: Inappropriate ioctl for device" which I think offhand is error ENOTTY. I have not scoured the kernel scsi device drivers to determine what they really want from me. Dan Strick dan@math.berkeley.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message