Partition does not end on cylinder boundary

JD jd1008 at gmail.com
Sun Jun 5 03:01:34 UTC 2011


On 06/04/11 19:28, David wrote:
> On 5 June 2011 12:21, Genes MailLists<lists at sapience.com>  wrote:
>> On 06/04/2011 10:15 PM, David wrote:
>>> On 5 June 2011 12:07, JD<jd1008 at gmail.com>  wrote:
>>>> On 06/04/11 19:02, David wrote:
>>>>> On 5 June 2011 11:42, JD<jd1008 at gmail.com>    wrote:
>>>>>> I think you can read the kernel source code as well
>>>>>> as anyone. So you have to do some homework :)
>>>>> [david at kablamm partition]$ rpm -qf /sbin/mkfs.ext3
>>>>> e2fsprogs-1.41.9-5.fc12.i686
>>>>>
>>>>> kernel ?
>>>> Well, you can peruse the latest mainline kernel source:
>>>> http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.1.tar.bz2
>>> Partitioning is done by mkfs variants. Nothing to do with the kernel.
>>   David no need to keep teasing the mouse .. :-)
>>
>>   Nothing cares about cylinders on a hard drive after windows 95 (maybe
>> windows 98) ... everything since then uses LBA so cylinders are
>> completely irrelevant - its just a historical quirk.
>>
>>   So fuggit about it .. .:-)
> Awww, not teasing, fighting FUD about CHS! But yeah, agree, enuf :-)
Excerpts from Kernel code commentary:

ext2/inode.c

  *      Rules are:
  *        + if there is a block to the left of our position - allocate 
near it.
  *        + if pointer will live in indirect block - allocate near that 
block.
  *        + if pointer will live in inode - allocate in the same 
cylinder group.

ext3/inode.c

  *      Rules are:
  *        + if there is a block to the left of our position - allocate 
near it.
  *        + if pointer will live in indirect block - allocate near that 
block.
  *        + if pointer will live in inode - allocate in the same
  *          cylinder group.

ext4/inode.c

  *      Rules are:
  *        + if there is a block to the left of our position - allocate 
near it.
  *        + if pointer will live in indirect block - allocate near that 
block.
  *        + if pointer will live in inode - allocate in the same
  *          cylinder group.


Blocks are mapped (or organized in) cylinder groups.

Or, you can just ignore that and "fuggit" about it :)


More information about the users mailing list