summaryrefslogtreecommitdiffstats
path: root/image_manager.hpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: Update to match docs repoGunnar Mills2018-09-111-1/+2
| | | | | | | | Update the .clang-format file. Now includes header sorting and updating PointerAlignment. Change-Id: I5c7690d8d83cdebe26ff3a73b90a2a8c17dd8054 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Enable clang code formatAdriana Kobylak2018-03-021-36/+36
| | | | | Change-Id: Ia899858c11cff6e4fa26b820b35b1e5dca1b57df Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* BMC: Fix the delete implementation.Saqib Khan2017-12-061-22/+1
| | | | | | | | | | | | | | | | | | | - Implement delete interface inside version class so that both item_updater and image_manager can share the same interface. This meant removing the delete interface from inside the activation class. - The delete is created as a separate object inside version, only if the image is non-functional. This helps remove the delete interface from a running BMC/HOST image. - As part of the activation process, the version from inside the image_manager is deleted and so is the version's tarfile from the image upload dir. Partially resolves openbmc/openbmc#2490 Change-Id: Ib35bf188df85ebd2277d3d9ad04300e434965eea Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Fix problem requiring two Delete calls to remove an imageEddie James2017-09-121-1/+23
| | | | | | | | | | | | - Remove Delete inheritance and method from Version object. - Add Delete inheritance and method to Activation object. - Add a listener in the image Manager for deleted Versions and remove its 'backup' copy of the Version. Resolves openbmc/openbmc#2086 Change-Id: If41783319cf1ff5b840b747ba457d0570bc52918 Signed-off-by: Eddie James <eajames@us.ibm.com>
* image_manager: Added erase methodLeonel Gonzalez2017-07-261-0/+8
| | | | | | | | Image manager deletes image, image directory, and the version from its map. Change-Id: Ica128927b706257eb8c4b28d3b9d2ac9ca397b91 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* Move Active BMC version object to item_updater.Saqib Khan2017-06-261-2/+1
| | | | | | | | | - There needs to be only one version class for both BMC and PNOR images. Thus removing the BMCVERSION class and moving the functionality to MANAGER class. Change-Id: I6dda818960588cfd9ed345fe93068531efc7a877 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Create version dbus objectGunnar Mills2017-05-241-17/+42
| | | | | | | | | | Read the version and purpose from the manifest. Compute the id from the version. Create the image dir, <IMAGE_UPLOAD_DIR>/<id>/. Create the version object with the version, purpose, id and image dir path. Change-Id: I6d2d710fb8eeeda085af8ab116f2dafc720a2ade Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Untar tarballGunnar Mills2017-05-241-0/+10
| | | | | | | | | Untar the tarball to the image dir. The image dir is <IMG_UPLOAD_DIR>/<id>/. The MANIFEST is first extracted, the version is read from the MANIFEST and used to compute the id. Change-Id: Ifed01e980202404e104ce7c20beb85ab23527913 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Call processImage from inotifyGunnar Mills2017-05-111-0/+21
Change-Id: I0b748f93f8e34552cef67616317c28660284ac99 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
OpenPOWER on IntegriCloud