Re: [patch v2] UBIFS: add key state map data structure and accessors

From: Artem Bityutskiy
Date: Thu Aug 02 2012 - 02:28:58 EST


On Sun, 2012-07-08 at 19:30 +0200, Joel Reardon wrote:
> This patch adds the key state map to keymap, a structure that holds the state
> of all keys in the KSA. The states are defined in an enum, and a get/set
> accessor is added. These accessors are static only: the external interface
> will simply be "mark used" or "mark deleted" and range checking, along with
> locking the mutex for the state object, will be done there.
>
> The memory is allocated in keymap_init() and keymap_free()
> is added to deallocate the memory. Init is called when mounting is performed,
> and free is called mounting failed or when unmounting. This was tested using
> integck along with unit tests for get/set sanity.

Pushed to the joel branch, thanks. I did some amendments on top and
pushed as a separate commit.

--
Best Regards,
Artem Bityutskiy

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