Home
last modified time | relevance | path

Searched hist:"6106 d54a" (Results 1 – 1 of 1) sorted by relevance

/openbmc/smbios-mdr/src/smbios-ipmi-blobs/
H A Dhandler.cpp6106d54a Thu Jun 29 07:36:02 CDT 2023 Konstantin Aladyshev <aladyshev22@gmail.com> blobs: Close file before calling 'AgentSynchronizeData'

The IPMI BLOB handler fills smbios2 file with content and calls
'AgentSynchronizeData' method for synchronization.
Because currently the file is not closed before the call to
'AgentSynchronizeData', this can lead to errors that smbios-mdr tries
to parse file that was not yet flushed to the disk.
Add file close operation to fix the issue.

Tested: tested on the AMD EthanolX CRB.
Before the change on the blob commit operation the file was created
in the BMC filesystem, but the call to 'AgentSynchronizeData' failed
with the error message:
"MDR V2 file size is smaller than mdr header".
After the change the file is correctly created in the BMC filesystem
and the sync operation finishes without any errors.

Change-Id: I7140f24a68e9e27665fe69bb4dd64495aa24c1aa
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>