* [PATCH 0/3] Export UBI map/unmap/is_mapped in userspace
@ 2009-01-05 13:58 Corentin Chary
2009-01-05 14:24 ` Artem Bityutskiy
0 siblings, 1 reply; 3+ messages in thread
From: Corentin Chary @ 2009-01-05 13:58 UTC (permalink / raw)
To: linux-mtd
Hi,
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.
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/3] Export UBI map/unmap/is_mapped in userspace
2009-01-05 13:58 [PATCH 0/3] Export UBI map/unmap/is_mapped in userspace Corentin Chary
@ 2009-01-05 14:24 ` Artem Bityutskiy
2009-01-05 14:39 ` Corentin Chary
0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2009-01-05 14:24 UTC (permalink / raw)
To: Corentin Chary; +Cc: linux-mtd
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 (Битюцкий Артём)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/3] Export UBI map/unmap/is_mapped in userspace
2009-01-05 14:24 ` Artem Bityutskiy
@ 2009-01-05 14:39 ` Corentin Chary
0 siblings, 0 replies; 3+ messages in thread
From: Corentin Chary @ 2009-01-05 14:39 UTC (permalink / raw)
To: dedekind; +Cc: linux-mtd
> 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.
>
Look the litle "#endif" at the end, it's the one for "#ifdef
CONFIG_MTD_UBI_DEBUG_USERSPACE_IO" used for UBI_IOCEBER
We make these using CONFIG_MTD_UBI_DEBUG_USERSPACE_IO only because
direct write and erase use that too.
But if you make it non-debugging, it'll be easier for us.
--
Corentin Chary
http://xf.iksaif.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-05 14:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-05 13:58 [PATCH 0/3] Export UBI map/unmap/is_mapped in userspace Corentin Chary
2009-01-05 14:24 ` Artem Bityutskiy
2009-01-05 14:39 ` Corentin Chary
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox