Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2008 11:28:14 -0800
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        gelraen <gelraen.ua@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Andrew Thompson <thompsa@freebsd.org>, freebsd-geom@freebsd.org
Subject:   Re: Changed names of logical disks on recent -CURRENT: part of logical disks not accessible now
Message-ID:  <A3628E7B-4D26-4A1E-A537-610E59CE47BD@mac.com>
In-Reply-To: <ac42db050812231103j54087613gffad2827eba14a03@mail.gmail.com>
References:  <ac42db050812201132s7c2ca7bekc9c0e60a728314ce@mail.gmail.com> <3a142e750812201747o339d7298p11236bb02c7f858f@mail.gmail.com> <20081223050425.GA89448@citylink.fud.org.nz> <6D4A57D3-3F6D-43E6-9B69-95514F69C57A@mac.com> <ac42db050812231103j54087613gffad2827eba14a03@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Dec 23, 2008, at 11:03 AM, gelraen wrote:

> 2008/12/23 Marcel Moolenaar <xcllnt@mac.com>:
>>
>>
>> I'm thinking about it. I have a couple of things
>> I need to do first, 7.1-RC2 being one of them...
>>
>
> I think, I can try to fix this if you give me couple advices (mostly
> about what code I should look and change)

All the code is under src/sys/geom/part.
o   g_part.c contains the high-level (abstract) code
     for partitioning.
o   g_part_mbr.c deals specifically with MBR.

> I spent some time in thinking about the best way to implement naming
> of extended partition.
> IMO, the only reasonable way is to sequentially numerate slices. So
> the result may look like this:
> ad0s3s1      ad0s3s2       ad0s3s3        ad0s3s4         
> ad0s3s5   ....

Well, the question is whether to expose the nesting
in the naming or use a flattened partition naming
scheme. Secondly, how generic do you want to make the
flattening.

With flattening, you have ad0sX, with X from 1 to many.
Without flattening you get ad0sX[sY...], with X and Y
from 1 to 4.

What you suggest is a partial flattening: adsXsY, with
X from 1 to 4 and Y from 1 to many.

The question of how generic you want to make it, relates
to having a BSD label under a MBR or a MBR under a GPT
and whether to flatten the namespace. As an example, you
can limit flattening for nested partitions of the same
type (i.e. same-scheme nesting).

> Main problem here is detecting which type of naming to use in  
> particilar case.

Exactly. This requires information exchange between level
X-1 to level X of the nesting. Such an exchange already
exists for example: the absolute sector offset of the
partition is passed from level X-1 to level X. So, it's
definitely doable.

In short: we just need to nail down what we're going to
fix, if we're going to fix anything, and understand the
consequences of our choice so that we can document it
or beter, avoid introducing new bugs in the process..

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A3628E7B-4D26-4A1E-A537-610E59CE47BD>