Re: [PATCH v2] mmc : general purpose partition support.

From: NamJae Jeon
Date: Wed Sep 28 2011 - 09:50:28 EST


2011/9/28 Linus Walleij <linus.walleij@xxxxxxxxxx>:
> On Sat, Sep 24, 2011 at 7:07 AM, Namjae Jeon <linkinjeon@xxxxxxxxx> wrote:
>
>> It allows gerneral purpose partitions in MMC Device.
>> And I try to simpliy make mmc_blk_alloc_parts using mmc_part structure suggested by Andrei Warkentin.
>> After patching, we can see general purpose partitions like this.
>>> cat /proc/partitions
>> Â Â Â Â Â179 0 847872 mmcblk0
>> Â Â Â Â Â179 192 4096 mmcblk0gp4
>> Â Â Â Â Â179 160 4096 mmcblk0gp3
>> Â Â Â Â Â179 128 4096 mmcblk0gp2
>> Â Â Â Â Â179 96 Â1052672 mmcblk0gp1
>
> We notice there are 32 minors between 128 and 96,
> how are these allocated?
You can insert maximum minors in menuconfig. I set to 32.
>
>> Â Â Â Â Â179 64 Â1024 mmcblk0boot1
>> Â Â Â Â Â179 32 Â1024 mmcblk0boot0
>
> Does this mean that each GP-partition can contain an MBR and thus several
> subpartitions so we get things like:
>
> mmcblk0gp1p1, mmcblk0gp1p2...
>
>
Yes, We can divide dos partitions(included MBR) using fdisk like your
words(mmcblk0gp1p1, mmcblk0gp1p2...)

> Yours,
> Linus Walleij
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/