summaryrefslogtreecommitdiffstats
path: root/watch.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Create version dbus objectGunnar Mills2017-05-241-4/+6
| | | | | | | | | | 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>
* Check if image upload dir existsGunnar Mills2017-05-241-0/+12
| | | | | | | | The inotify doesn't work if the image upload dir doesn't exist. If the image dir doesn't exist log an error. Change-Id: I2b8c49182f2f19b8343587f4723575b6f6fc8781 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Call processImage from inotifyGunnar Mills2017-05-111-5/+10
| | | | | Change-Id: I0b748f93f8e34552cef67616317c28660284ac99 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Change inotify to look at IN_CLOSE_WRITE flagGunnar Mills2017-04-271-2/+2
| | | | | | | | | The inotify is triggering before the image is done downloading. This leads to a corrupted tar. Look at the IN_CLOSE_WRITE flag instead. Change-Id: Ib9d3f97ae3c48960a0bdf84250a66d1f8254a7f5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* image manager: add inotify watchDeepak Kodihalli2017-04-181-0/+104
Add an inotify watch to the known software image location. Hook the inotify fd with sd-event, so that on callback, version d-bus objects can be created based on the newly added software image. Resolves openbmc/openbmc#1444. Change-Id: I5c460f820c8d3a851b8ddc969f26d38870c36991 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
OpenPOWER on IntegriCloud