commit | 587811d80edfbea42f849500f1e961b28b9c32bb | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon Dec 09 20:04:51 2019 -0800 |
committer | Yifan Hong <elsk@google.com> | Fri Dec 13 19:52:31 2019 -0800 |
tree | b46f7bf8407463d8a0c8201cdd469e287cfe3e69 | |
parent | 085fba3e1ccd7da004fe2ff98ea259476092c53c [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