Re: blocks or KB? (was: .. current meaning of blk_size array)

Martin Dalecki (dalecki@evision-ventures.com)
Wed, 14 Nov 2001 10:44:33 +0100


"Peter T. Breuer" wrote:
>
> Let me put it more plainly. Martin Daleki + rumour assures me that the
> blk_size array nowadays measure in blocks not KB, yet to me it seems that

sectors = 512 per default
blocks = 1024 per default.

Never said anything else.

Look at the initialization point for the arrays. They all use constants
which you can look up in the kernel headers.

./linux/fs.h:#define BLOCK_SIZE_BITS 10
./linux/fs.h:#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)

Which means 1024 bytes for blk_size as default value.

> it doesn't. Look at this code from ll_rw_blk.c in 2.4.13:

-- 
- phone: +49 214 8656 283
- job:   eVision-Ventures AG, LEV .de (MY OPINIONS ARE MY OWN!)
- langs: de_DE.ISO8859-1, en_US, pl_PL.ISO8859-2, last ressort:
ru_RU.KOI8-R
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/