Re: [PATCHv5] UBI: new module ubiblk: block layer on top of UBI

2011-09-18 Thread Artem Bityutskiy
Hi David, some review below. > +/** > + * ubiblk_release - close a UBI volume (close the volume descriptor) > + * > + * @gd: the disk that was previously opened > + * @mode: don't care > + */ > +static int ubiblk_release(struct gendisk *gd, fmode_t mode) > +{ > + struct ubiblk_dev *dev = gd->

[PATCHv5] UBI: new module ubiblk: block layer on top of UBI

2011-09-12 Thread David Wagner
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 i