[PATCH 0/2] mtd: add BLKPG API based repartition support

Artem Bityutskiy dedekind1 at gmail.com
Mon Sep 20 08:42:37 EDT 2010


On Fri, 2010-09-17 at 13:31 +0300, Roman Tereshonkov wrote:
> Add support for mtd repartition based on the block
>     device BLKPG interface:
>     BLKPG_ADD_PARTITION - for partition creation;
>     BLKPG_DEL_PARTITION - for partition delete
> 
>     The usage is based on BLKPG ioctl called with
>     struct blkpg_ioctl_arg argument. This structure includes the
>     reference to struct blkpg_partition discribing the
>     partition name, offset and length for partition creation
>     and partition number for its deletion.
> 
>     Disadvantage: there is no implementation for mtd
>     flags control. The flags are always borrowed from
>     the master device.
> 
> Roman Tereshonkov (2):
>   mtd: prepare partition add and del functions for ioctl requests
>   mtd: add BLKPG API based repartition support
> 
>  drivers/mtd/mtdchar.c          |   62 ++++++++++++++++-
>  drivers/mtd/mtdpart.c          |  154 +++++++++++++++++++++++++++++++++++-----
>  include/linux/mtd/partitions.h |    5 ++
>  3 files changed, 201 insertions(+), 20 deletions(-)

The patches look good. Pushed to the l2-mtd-2.6.git tree with my
signature, thanks!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list