[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH]: grub: Partitions can start at zero.

From: David Miller
Subject: Re: [PATCH]: grub: Partitions can start at zero.
Date: Wed, 22 Apr 2009 02:43:34 -0700 (PDT)

From: Vladimir Serbinenko <address@hidden>
Date: Mon, 20 Apr 2009 18:53:35 +0200

> On Mon, Apr 20, 2009 at 2:30 AM, David Miller <address@hidden> wrote:
>> With Sun partitions, individual partitions can start at disk
>> address zero.  That's right, zero.
>> This works because UFS and EXT{2,3,4} superblocks are offset
>> far enough into the partition that it won't overwrite the
>> disk label nor the boot block.
>> I added an, arguably hackish, heuristic to handle this properly.
>> Basically if the OS device name does not end in a digit we'll believe
>> that a zero hdg.start value can be a partition.
>> If anyone has a better way to handle this, let me know :-)
> What about the way I proposed in thread on implementing nested partitions?

Yes it seems that it should be able to handle this situation.

I cannot say %100 for sure until I see the code you end up
writing, of course :)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]