[PATCH] UBI: ioctl instead of CONFIG_MTD_UBI_DEBUG_USERSPACE_IO

Artem Bityutskiy dedekind at infradead.org
Tue Jan 27 08:06:59 EST 2009


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.

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




More information about the linux-mtd mailing list