Re: elevator algorithm bug in ll_rw_blk.c

Martin Mares (mj@ucw.cz)
Mon, 16 Nov 1998 10:49:17 +0100


Hello,

> Hmmm, why not?
>
> root@rhino /root> hdparm -I /dev/hda
>
> /dev/hda:
>
> Model=OTHSBI AKM1230AM V , FwRev=0D0. 5 A,
> SerialNo=722H5244
> Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
> RawCHS=4200/16/63, TrkSize=40257, SectSize=639, ECCbytes=21
> BuffType=3(DualPortCache), BuffSize=128kB, MaxMultSect=16, MultSect=16
> DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=2(fast)
> CurCHS=4200/16/63, CurSects=4233600, LBA=yes, LBAsects=4233600
> tDMA={min:120,rec:120}, DMA modes: sword0 sword1 sword2 mword0 mword1
> *mword2
> IORDY=on/off, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4

The CHS numbers reported by the disk usually don't correspond at all with
the physical geometry since most modern drivers use variable numbers of sectors
per track and you cannot express that in the IDE info structure.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"return(EIEIO); /* Here-a-bug, There-a-bug... */"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/