Userspace write to UBI partitions

Artem Bityutskiy dedekind1 at gmail.com
Wed Feb 8 06:59:06 EST 2012


On Tue, 2012-02-07 at 17:36 +0100, Ricard Wanderlof wrote:
> > If dynamic, have you tried setting the UBI_VOL_PROP_DIRECT_WRITE
> > property by issuing a UBI_IOCSETVOLPROP volume ioctl?
> > (formerly named UBI_PROP_DIRECT_WRITE and UBI_IOCSETPROP)
> 
> Thanks for the pointer, I've never noticed this ioctl before.
> 
> I'll try this out.

It should help.

>  In the meantime, there doesn't seem to be an ioctl for 
> erasing blocks?

In UBI it is called "unmap" instead of "erase":

http://www.linux-mtd.infradead.org/doc/ubi.html#L_unmap

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120208/61fa74ba/attachment.sig>


More information about the linux-mtd mailing list