Is there really need to build Block Device Emulation over UBI?

Artem Bityutskiy dedekind at infradead.org
Thu Jan 24 02:18:23 EST 2008


On Thu, 2008-01-24 at 11:13 +0800, Nancy wrote:
> Hi,
>    Is there really need to build Block Device Emulation over UBI? Why
> can't use the mtd_blkdev.c and mtdblock.c directly?
>    Thanks to gluebi, make UBI and MTD become one. More interesting
> thing is,  volume can be treat like a mtd partition. mtdblock.c do not
> have wear-leveling and bad block management mechanism but UBI has.
> gluebi make all those functions mix together right?
>    I have tried, and it work.

The problem with mtdblock is that when it needs to change an eraseblock,
it reads it, erases, then writes new data to it, which would cause data
loss in case of an unclean reboot.

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




More information about the linux-mtd mailing list