Re: HDIO_GETGEO vs. BLKGETSIZE

From: Andries Brouwer (aeb@veritas.com)
Date: Mon May 22 2000 - 09:30:51 EST


On Mon, May 22, 2000 at 03:21:53PM +0100, David Woodhouse wrote:

> aeb@veritas.com said:
> > A modern fdisk will use the values for heads and sectors/track given
> > by HDIO_GETGEO, but ignore the value for cylinders.
>
> > Instead, the number of cylinders is computed as BLKGETSIZE/(H*S).

> What if BLKGETSIZE/(H*S) isn't an integer?

/ is the C operator. It rounds down.

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



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:21 EST