OSDN Git Service

Switch Checkpoint Restore code to c style File ops
authorDaniel Rosenberg <drosen@google.com>
Tue, 5 Mar 2019 05:46:31 +0000 (21:46 -0800)
committerDaniel Rosenberg <drosen@google.com>
Thu, 7 Mar 2019 06:05:09 +0000 (22:05 -0800)
commit8271ae986edacd6ed5cab1e23766734c4d615a80
treee249ffbc796df7f2a2681fdc2fbff149a3b565ff
parentdecda14f024576acba0035cce76f8da3d660d275
Switch Checkpoint Restore code to c style File ops

In preparation for restore code, we need to guarantee fsync happens.
Switch over to fd based operations to prepare for that.

Test: Successfully restores device over reboots
Change-Id: Ic9901779e8a4258bf8090d6a62fa9829e343fd39
Checkpoint.cpp