Re: determining if a block erasure failed

From: Artem Bityutskiy
Date: Tue May 15 2012 - 08:19:15 EST


On Tue, 2012-05-15 at 13:56 +0200, Joel Reardon wrote:
> Ah yes, if wl_wrk is freed in schedule_erase, theres no way to pass it
> back that way.
>
> The reason is that, if erasing a block of keys fails, then those keys may
> remain on the flash device for eternity. While a rare occurance, it may be
> nice to have ubifs perform GC on all main LEBs storing the data nodes that
> can no longer be deleted through key erasure / reencrypt the valid data
> nodes.

Erasure is asynchronous and I do not see an good way to implement your
idea. Do you have a good plan?

--
Best Regards,
Artem Bityutskiy

Attachment: signature.asc
Description: This is a digitally signed message part