Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 1998 18:39:30 +0700 (NSS)
From:      Ustimenko Semen <semen@iclub.nsu.ru>
To:        Dan Strick <dan@math.berkeley.edu>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re:  About to reset single device on SCSI bus
Message-ID:  <Pine.BSF.3.96.980728183544.19682C-100000@iclub.nsu.ru>
In-Reply-To: <199807150441.VAA02653@math.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 14 Jul 1998, Dan Strick wrote:
> > 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.
> 

Sorry for LATE answer :->

SCIOCRESET is not implemented in kernel 
(look sys/scsi/scsi_ioctl.c). I'm afraid that this feature is
not supported by current SCSI bus. (I looked in SCSI specification
and hadn't found there any reset commands beside BUS RESET).
Am I rigth?

Thank you.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980728183544.19682C-100000>