Userspace write to UBI partitions

Artem Bityutskiy dedekind1 at gmail.com
Wed Feb 8 08:58:06 EST 2012


On Wed, 2012-02-08 at 08:49 -0500, Atlant Schmidt wrote:
> All:
> 
>   But there are times when you really want a block erased
>   and erased NOW; in that case, "unmap" isn't what you
>   want as it only schedules the PEB for erasure at some
>   future time. And if a power cut intervenes, that
>   scheduling for erasure may be lost and the ultimate
>   erasure may not take place for a long, long time.
> 
>   So if you really intended to destroy the data, "unmap"
>   is not the correct function to call.

In this case you should first unmap and than map:

http://www.linux-mtd.infradead.org/doc/ubi.html#L_map

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120208/2c040786/attachment.sig>


More information about the linux-mtd mailing list