summaryrefslogtreecommitdiffstats
path: root/static/item_updater_static.hpp
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2019-02-28 14:26:37 +0800
committerLei YU <mine260309@gmail.com>2019-03-13 11:01:53 +0800
commit6da3dae3b40bdbe9663b94e1f36dd3e2833d9c14 (patch)
tree87542e570ae26f49a051a867d124c1fca9ee7b7b /static/item_updater_static.hpp
parent6cecc9b4a8e11327b5c59924c2865da5865f7d7d (diff)
downloadopenpower-pnor-code-mgmt-6da3dae3b40bdbe9663b94e1f36dd3e2833d9c14.tar.gz
openpower-pnor-code-mgmt-6da3dae3b40bdbe9663b94e1f36dd3e2833d9c14.zip
Static layout: Do not update PNOR when host is on
Static layout only has 1 active and functional PNOR. When host is running, do not update PNOR. This is done by checking the return value of freeSpace(), and if it returns false, it means there is no space for PNOR because the host is running and erase() returns false. Tested: Verify the status becomes Failed when trying to activate a PNOR while host is running. Change-Id: Ie2986b0c6fd29557685f67eb77ccc29709e1669a Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'static/item_updater_static.hpp')
-rw-r--r--static/item_updater_static.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/item_updater_static.hpp b/static/item_updater_static.hpp
index 75afedade..c3f273d37 100644
--- a/static/item_updater_static.hpp
+++ b/static/item_updater_static.hpp
@@ -33,7 +33,7 @@ class ItemUpdaterStatic : public ItemUpdater
void deleteAll() override;
- void freeSpace() override;
+ bool freeSpace() override;
void updateFunctionalAssociation(const std::string& versionId) override;
OpenPOWER on IntegriCloud