[PATCH] UBIFS: add ksa_pos to replay buds, read when replaying

Artem Bityutskiy dedekind1 at gmail.com
Sun May 20 14:40:15 EDT 2012


On Sun, 2012-05-20 at 14:28 +0200, Joel Reardon wrote:
> This patch read the ksa_pos from data nodes to the replay buds when performing
> a replay after unclean commit. This is critical for the correctness of the key
> state map, because the keys that are assigned to uncommited data nodes will be
> considered "unused" after mounting but will be considered "used" after
> replaying. The ksa_pos values stored in the replay bud are passed to the TNC
> using ubifs_tnc_add.
> 
> This was tested by assigning distinct ksa_pos values and disabling commiting.
> Data was written and then the drive was remounted. The ksa_pos values were
> read from the journal and outputted while replaying. When the file was later
> read, it was confirmed that the ksa_pos values were already loaded into the
> TNC.
> 
> Signed-off-by: Joel Reardon <reardonj at inf.ethz.ch>

Pushed to the "joel" branch as well.

-- 
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/20120520/738df61a/attachment.sig>


More information about the linux-mtd mailing list