On Mon, 2 Oct 2000, Daniel Phillips wrote:

> Andries Brouwer wrote:
> > 
> > On Sun, Oct 01, 2000 at 11:16:23PM +0200, Daniel Phillips wrote:
> > > Daniel Phillips wrote:
> > 
> > > > 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 ..
> 
> OK: Could I please have a definition of the quantity that blk_size
> stores and what units it uses.

According to ll_rw_blk.c:

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

--
        Peter

Computers don't make errors.  What they do, they do on purpose.
                -- Dale

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]

Reply via email to