Update host dump ids
Host dump ids need to be started from certain numbers
this commit adds the starting if for each type of dumps
Hardare dump: Starting ID - 0
Hostboot dump: Starting ID - 20000001
SBE dump: Starting ID - 30000001
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I26945184c727e70fb9f543eaa7c2266a650b2793
diff --git a/dump-extensions/openpower-dumps/dump_manager_hostdump.hpp b/dump-extensions/openpower-dumps/dump_manager_hostdump.hpp
index 95fe8ed..74e40f0 100644
--- a/dump-extensions/openpower-dumps/dump_manager_hostdump.hpp
+++ b/dump-extensions/openpower-dumps/dump_manager_hostdump.hpp
@@ -79,6 +79,7 @@
* @param[in] event - Dump manager sd_event loop.
* @param[in] path - Path to attach at.
* @param[in] baseEntryPath - Base path for dump entry.
+ * @param[in] startingId - Starting dump id
* @param[in] filePath - Path where the dumps are stored.
* @param[in] dumpNamePrefix - Prefix to the dump filename
* @param[in] dumpTempFileDir - Temporary location of dump files
@@ -88,12 +89,13 @@
*/
Manager(sdbusplus::bus::bus& bus, const phosphor::dump::EventPtr& event,
const char* path, const std::string& baseEntryPath,
- const char* filePath, const std::string dumpNamePrefix,
- const std::string dumpTempFileDir, const uint64_t maxDumpSize,
- const uint64_t minDumpSize, const uint64_t allocatedSize) :
+ uint32_t startingId, const char* filePath,
+ const std::string dumpNamePrefix, const std::string dumpTempFileDir,
+ const uint64_t maxDumpSize, const uint64_t minDumpSize,
+ const uint64_t allocatedSize) :
CreateIface(bus, path),
phosphor::dump::bmc_stored::Manager(
- bus, event, path, baseEntryPath, filePath,
+ bus, event, path, baseEntryPath, startingId, filePath,
dumpNamePrefix + HOST_DUMP_COMMON_FILENAME_PART, maxDumpSize,
minDumpSize, allocatedSize),
dumpNamePrefix(dumpNamePrefix), dumpTempFileDir(dumpTempFileDir)