1 Oct 2011 16:08
Re: [PATCHv9] UBI: new module ubiblk: block layer on top of UBI
Artem Bityutskiy <dedekind1 <at> gmail.com>
2011-10-01 14:08:44 GMT
2011-10-01 14:08:44 GMT
On Mon, 2011-09-26 at 16:40 +0200, David Wagner wrote: > ubiblk is a read-only block layer on top of UBI. It presents UBI volumes as > read-only block devices (named ubiblkX_Y, where X is the UBI device number > and Y the Volume ID). > > It is used by putting a block filesystem image on a UBI volume, creating the > corresponding ubiblk device and then mounting it. > > It uses the UBI API to register to UBI notifications and to read from the > volumes. It also creates a ubiblk_ctrl device node that simply receives ioctl > from a userspace tool for creating/removing ubiblk devices. > > Some code is taken from mtd_blkdevs and gluebi. Some code for the ioctl part is > also inspired from ubi's core. > > Advantages of ubiblk over gluebi+mtdblock_ro: I do not have enough time to nicely answer with comments, so here is just some patch with my cosmetic changes plus I added "TODO:" items here and there. Please, apply it and resolve the TODO items, if you can, ok? diff --git a/drivers/mtd/ubi/ubiblk.c b/drivers/mtd/ubi/ubiblk.c index ccb22de..2da46fe 100644 --- a/drivers/mtd/ubi/ubiblk.c +++ b/drivers/mtd/ubi/ubiblk.c <at> <at> -40,7 +40,7 <at> <at> #define BLK_SIZE 512 /** - * struct ubiblk_dev - represents a ubiblk device, proxying a UBI volume(Continue reading)
RSS Feed