diff options
author | Yifan Hong <elsk@google.com> | 2019-12-09 20:04:51 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-12-13 19:52:31 -0800 |
commit | c64cefc027e63d4d35056302f874507887387421 (patch) | |
tree | b46f7bf8407463d8a0c8201cdd469e287cfe3e69 /libutils/ProcessCallStack_fuzz.cpp | |
parent | babc2931408e580da480c7ba3d3c4d4e40f374cd (diff) |
libsnapshot: add GetCurrentSlot
Factor out obscure logic that reads boot indicator path.
GetCurrentSlot() returns three states:
- None (read failure)
- Old (before reboot)
- New (after reboot)
Use these "logical" slot values for simpler code.
Test: libsnapshot_test
Change-Id: I1fa2ce4916c5a1652d25682ec1f11e101c858822
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions