Correction of VPD using ECC
ECC algorithm corrects VPD data in 32:1 bit ratio in the
event of corruption.
Main Test Cases:
1) Check correction of KW in records.
2) Check correction while writing and reading VPD.
3) Check for Module VPD correction.
Signed-off-by: Giridhari Krishna <giridharikrishnan@gmail.com>
Change-Id: I48a3db18df9d3a2aecde814610ab1b357e6f310d
diff --git a/vpd-manager/editor_impl.hpp b/vpd-manager/editor_impl.hpp
index d10e157..5beedba 100644
--- a/vpd-manager/editor_impl.hpp
+++ b/vpd-manager/editor_impl.hpp
@@ -171,6 +171,9 @@
void makeDbusCall(const std::string& object, const std::string& interface,
const std::string& property, const std::variant<T>& data);
+ /** @brief Method to check the record's Data using ECC */
+ void checkRecordData();
+
// path to the VPD file to edit
inventory::Path vpdFilePath;
@@ -180,6 +183,9 @@
// stream to perform operation on file
std::fstream vpdFileStream;
+ // stream to operate on VPD data
+ std::fstream vpdDataFileStream;
+
// offset to get vpd data from EEPROM
uint32_t startOffset;