Date: Tue, 14 Jul 1998 21:41:59 -0700 (PDT) From: dan@math.berkeley.edu (Dan Strick) To: semen@iclub.nsu.ru Cc: dan@math.berkeley.edu, freebsd-scsi@FreeBSD.ORG Subject: Re: About to reset single device on SCSI bus Message-ID: <199807150441.VAA02653@math.berkeley.edu>
next in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807150441.VAA02653>