diff options
Diffstat (limited to 'ubi/item_updater_ubi.cpp')
-rw-r--r-- | ubi/item_updater_ubi.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ubi/item_updater_ubi.cpp b/ubi/item_updater_ubi.cpp index 875847f6e..61a8e0156 100644 --- a/ubi/item_updater_ubi.cpp +++ b/ubi/item_updater_ubi.cpp @@ -357,8 +357,9 @@ void ItemUpdaterUbi::deleteAll() } // TODO: openbmc/openbmc#1402 Monitor flash usage -void ItemUpdaterUbi::freeSpace() +bool ItemUpdaterUbi::freeSpace() { + bool isSpaceFreed = false; // Versions with the highest priority in front std::priority_queue<std::pair<int, std::string>, std::vector<std::pair<int, std::string>>, @@ -393,7 +394,9 @@ void ItemUpdaterUbi::freeSpace() erase(versionsPQ.top().second); versionsPQ.pop(); count--; + isSpaceFreed = true; } + return isSpaceFreed; } std::string ItemUpdaterUbi::determineId(const std::string& symlinkPath) |