[lkml]   [2007]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 41/44 take 2] [UBI] gluebi unit header
    On Saturday 17 February 2007 17:57, Artem Bityutskiy wrote:
    > + * This unit is responsible for emulating MTD devices on top of UBI devices.
    > + * This sounds strange, but it is in fact quite useful to make legacy software
    > + * work on top of UBI. New software should use native UBI API instead.
    > + *
    > + * Gluebi emulated MTD devices of "MTD_UBIVOLUME" type. Their minimal I/O unit
    > + * size (mtd->writesize) is equivalent to the underlying flash minimal I/O
    > + * unit. The eraseblock size is equivalent to the logical UBI volume eraseblock
    > + * size.

    This approach doesn't seem to make sense at all. If the MTD device interface
    is flawed, the right approach should be to fix that instead. After all,
    there are not many users of the MTD interface, so you should be able to
    adapt them.

    In fact, I would expect that there is much more reason to merge the existing
    MTD interface with the block interface in the kernel, but you now introduce
    a third interface that is unrelated to the first two, and make another
    conversion to convert it back?

    Let's assume I want to use the wear levelling capabilities of UBI on top
    of an SD card, and use the ext3 file system on top of it. I get a stack of

    1. MMC
    2. block2mtd
    3. UBI
    4. gluebi
    5. mtdblock
    6. VFS

    when in an ideal world, it should just be

    1. MMC
    2. UBI
    3. VFS

    Arnd <><
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-02-17 22:17    [W:0.025 / U:0.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site