On Wed, Mar 15, 2000 at 10:42:22PM -0600, Sandeep Sundaram wrote:
> Hi Arun,
>           
>            Yes, there is an ioctl,namely "BLKFLSBUF" which is used by
> hdparm for benchmarking. I had tried out this option also. Though it took
> quite a long time ( about 5 secs ) it still gave me the geometry of the
> disk when the cable was pulled.

I think there is a way to get the geometry using some BIOS calls too. Sorry,
I forget - were you using fdisk ? It might be using the other method when
the disk read failed. Or getting a value cached by the operating system 
or the device driver.

> But it also logged an error message in the /var/log/messages file, which
> was something like this:
> 
> ::scsi disk I/O error: dev 08:00, sector 0
> ::scsi channel 0: reseting for second half of retries
> ::SCSI bus is being reset for host 0 channel 0
> ::SCSI disk error : host 0 channel 0 id 4 lun 0
> ***return code = 26030000****
>  My problem is that I do not know how to interpret these messages and
> especially the return code. Any help in this regard will be helpfull.

dev 08:00 refers to major:minor number of the device. Probably /dev/sdaXX
I don't know how to interpret the return code. If I were you I'd grep
in the driver sources.

        -Arun

-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/

Reply via email to