commit | 889c3dda306f4af76cb3699a28d1dc57a21019e2 | [log] [tgz] |
---|---|---|
author | Vadim Bendebury <vbendeb@chromium.org> | Sat Dec 03 07:27:09 2016 +0800 |
committer | chrome-bot <chrome-bot@chromium.org> | Fri Dec 02 19:12:57 2016 -0800 |
tree | 2b30f881929c7f7e44cb0b2d124d2da5818655a5 | |
parent | 81e70877e2e3387beac631dd7acaeed4a7c13022 [diff] |
Introduce NVRAM storage format versioning We want to be able to detect situations when NVRAM storage format changes for whatever reason. At the very least the NVRAM needs to be reinitialized, ideally its contents should be migrated from old to new storage format. This patch implements the reinitialization part. BUG=chrome-os-partner:60537 TEST=added some code to print out a message when NvInit() is invoked in NvCheckAndMigrateIfNeeded(). Verified that it is invoked on the first restart after upgrade to this new version. Change-Id: Ia713a6fe7814bbe44ed5ce28ebcc0435a99b7716 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/416294 Reviewed-by: Andrey Pronin <apronin@chromium.org>