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 Pushed to the "joel" branch as well. -- Best Regards, Artem Bityutskiy