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

Artem Bityutskiy dedekind at infradead.org
Sun Jan 18 09:47:19 EST 2009



On Wed, 7 Jan 2009, Corentin Chary wrote:

> Hi,x
> 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.
> CONFIG_MTD_UBI_DEBUG_USERSPACE_IO is needed to enable theses functions.

Hi,

I'm not sure whether you'll ever implement your user-space stuff
or not, but I was thinking that it is probably bad to make your
life difficult by requireing this CONFIG_MTD_UBI_DEBUG_USERSPACE_IO
option.

I suggest you to add yet another ioctl which enables/disables direct
user-space writes. And make them disabled by default. Then you may
remove the CONFIG_MTD_UBI_DEBUG_USERSPACE_IO option. Your FS will
only need to enable the volume direct I/O before it starts writing
anything.

Artem.



More information about the linux-mtd mailing list