Re: HDIO_GETGEO vs. BLKGETSIZE

From: David Woodhouse (dwmw2@infradead.org)
Date: Mon May 22 2000 - 09:21:53 EST


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.

> Indeed, since cylinders is a 16-bit field and the number of cylinders
> can be larger than 65535, the value may be truncated, and is to be
> considered worthless.

> Instead, the number of cylinders is computed as BLKGETSIZE/(H*S).

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

--
dwmw2

- 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