summaryrefslogtreecommitdiffstats
path: root/activation.cpp
diff options
context:
space:
mode:
authorSaqib Khan <khansa@us.ibm.com>2017-08-17 14:52:37 -0500
committerSaqib Khan <khansa@us.ibm.com>2017-08-19 08:36:14 -0500
commit2cbfa03543672125df47885ebb83ec8626bbdbf3 (patch)
tree5365d7c1ed112bc4b36cecc0ab94c1a4f3476b60 /activation.cpp
parentef8cd9f6777b4db0eb5fac8ec0c215d6aeb9716a (diff)
downloadopenpower-pnor-code-mgmt-2cbfa03543672125df47885ebb83ec8626bbdbf3.tar.gz
openpower-pnor-code-mgmt-2cbfa03543672125df47885ebb83ec8626bbdbf3.zip
Limit the number of Active pnor versions
- We need to limit the number of pnor versions because pnor chip has limited space. If we run out of space and the user tries another pnor code update then the update will fail. - Currently we can only hold two images on pnor at this point. As we continue to decrease the size of pnor image we will increment the number of active pnor chips we can hold. - This check will need to be removed once we have complete issue #1402 which will automatically monitor the flash usage and delete any image accordingly. Resolves openbmc/openbmc#2155 Change-Id: Id62ba8554fba1ddb78286f70b0c3482a7beb8a6b Signed-off-by: Saqib Khan <khansa@us.ibm.com>
Diffstat (limited to 'activation.cpp')
-rwxr-xr-xactivation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/activation.cpp b/activation.cpp
index 55ce08ee9..3f16b7b15 100755
--- a/activation.cpp
+++ b/activation.cpp
@@ -115,6 +115,7 @@ auto Activation::activation(Activations value) ->
if (value == softwareServer::Activation::Activations::Activating)
{
+ parent.freeSpace();
softwareServer::Activation::activation(value);
if (squashfsLoaded == false && rwVolumesCreated == false)
OpenPOWER on IntegriCloud