[PATCH 0/3] Export UBI map/unmap/is_mapped in userspace

Artem Bityutskiy dedekind at infradead.org
Mon Jan 5 09:24:12 EST 2009


Hi,

On Mon, 2009-01-05 at 14:58 +0100, Corentin Chary wrote:
> These are three patch to make a usespace program able to use map/unmap 
> operation and to query if a LEB is mapped.
> We are trying to do an UBI based userspace filesystem (using fuse) and we 
> needed these, but it could also be used for testing purpose.

OK.

> CONFIG_MTD_UBI_DEBUG_USERSPACE_IO is needed to enable theses functions.

In your patches I do not see why these ioctl's are enabled only if the
CONFIG_MTD_UBI_DEBUG_USERSPACE_IO configuration option is switched on.
It looks like the ioctl's are always enabled.

Well, you probably also need direct LEB write functionality, which is
present only as a debugging option so far. We may make it non-debugging
at some point, I guess. The reason why we disabled this is because we
wanted to prevent dump users from doing stupid things.

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




More information about the linux-mtd mailing list