acrn-hypervisor/devicemodel/hw/platform/rpmb
Huang Yang 0621b24819 DM: Add write sync in fwrite
An immediate reset or power down will cause a loss of write content.
The cause is the data write to disk is at cache within a short
time window before it's synced to storage media.
An explicit fsync() forces to sync the data to storage to prevent
the data loss of such immediate reset.

Signed-off-by: Huang Yang <yang.huang@intel.com>
Signed-off-by: duminx <minx.du@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-07-05 11:38:06 +08:00
..
rpmb_backend.c DM: Refactor RPMB files 2018-05-30 13:51:03 +08:00
rpmb_sim.c DM: Add write sync in fwrite 2018-07-05 11:38:06 +08:00