Re: BLKGGETSIZE and logical partitions

Jan Kara (jack@atrey.karlin.mff.cuni.cz)
Sat, 10 Apr 1999 11:30:03 +0200


Hello.

> genhd.c:resetup_one_dev() does
>
> dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9 );
>
> Which seems to be stopping me from accessing the last sector; is this a bug
> or a feature?
I would consider it as a feature. The size of device in dev->sizes is
in blocks sized BLOCK_SIZE which is 1024 bytes. So IMHO there is no other
solution than just truncating the last sector when it is odd...

Honza.

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