>> Or
> >is there any other ioctl that will flush the buffer for me so that the
next
> >read will be done directly from the disk !!
>
ARUN SHARMA HAD REPLIED:

>Yes, there is one - hdparm uses it to calibrate disk read performance.
Can't
>remember it off the top of my head.

        -Arun
----------------------------------------------------------------------------
-------------------------------------------

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.
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.

TAI,

Regards,
Sandeep Sundaram.

_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com


-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH

Reply via email to