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

Roman Tereshonkov roman.tereshonkov at nokia.com
Fri Sep 17 06:31:40 EDT 2010


    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(-)




More information about the linux-mtd mailing list