acrn-hypervisor/devicemodel/hw
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
..
pci DM: add 'reset' option for ptdev 2018-06-29 09:50:15 +08:00
platform DM: Add write sync in fwrite 2018-07-05 11:38:06 +08:00
block_if.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
uart_core.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
usb_core.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00