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

Corentin Chary corentin.chary at gmail.com
Sun Jan 18 12:24:11 EST 2009


On Sun, Jan 18, 2009 at 3:47 PM, Artem Bityutskiy
<dedekind at infradead.org> wrote:
>
>
> 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.

Hi,
Indeed I think it's the way to go. We'll send a patch ASAP.

Thanks for your advice

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



More information about the linux-mtd mailing list