lkml.org 
[lkml]   [2000]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Meaning of blk_size
Daniel Phillips:

>>> After staring at the block device code for, um, quite a long time, I
>>> came to the conclusion that blk_size stores one less than the number of
>>> 512 byte blocks on a device. Is this true?

No.

>> Um, slight revision: they wouldn't be blocks, they'd be 'sectors', and
>> there is a magic shift-by-one in the code I'm looking at, implying 256
>> byte units.

False.

Why don't you ask your real question, instead of coming
with such vague ..

> That was *really* unhelpful, thanyou.

> Could I please have a definition of the quantity that blk_size
> stores and what units it uses.

Let me quote ll_rw_blk.c:

* blk_size contains the size of all block-devices in units of
* 1024 byte sectors

Andries


[you sounded as if you noticed a discrepancy somewhere - so I expected:
foo.c uses this in line 123 but bar.c uses that in line 666.]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.099 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site