[PATCH] UBI: ioctl instead of CONFIG_MTD_UBI_DEBUG_USERSPACE_IO

Corentin Chary corentin.chary at gmail.com
Tue Jan 27 09:18:50 EST 2009


On Tue, Jan 27, 2009 at 2:06 PM, Artem Bityutskiy
<dedekind at infradead.org> wrote:
> On Tue, 2009-01-27 at 10:11 +0100, Sidney Amani wrote:
>> Introduce a new ioctl UBI_IOCSETPROP to set properties
>> on a volume. Also add the first property:
>> UBI_PROP_DIRECT_WRITE, this property is used to set the
>> ability to use direct writes in userspace
>>
>> Signed-off-by: Sidney Amani <seed at uffs.org>
>> Signed-off-by: Corentin Chary <corentincj at iksaif.net>
>
> But I have to warn you, that now you are responsible for writing
> eraseblocks properly:
>
> 1. Sequentially, from the beginning to the end.
> 2. Writes have to be aligned to min I/O unit size
> 3. You cannot write more than once to the same place
>
> Be careful.

We are aware of that =).
We are currently working on a libubi in userspace wich will provide
the same interface the kernel does (and will also do the same checks:
aligned writes, etc ...). It should be finished this week. I'll send a
mail here when it's done.

Thanks.

-- 
Corentin Chary
http://xf.iksaif.net



More information about the linux-mtd mailing list