diff options
author | David Anderson <dvander@google.com> | 2020-11-21 13:44:00 -0800 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2020-11-21 17:12:23 -0800 |
commit | 189e8e3a254a2e02e81053f6223411679eb182db (patch) | |
tree | 90142d2ca06fe59f6bc0eb76a93202cf10a35818 /trusty/coverage/coverage.cpp | |
parent | 46d18443776322748c2012ce8fa72c5a33e6ba30 (diff) |
libsnapshot: Add a helper for waiting for device paths.
Normally, DeviceMapper::CreateDevice() handles this for us. However, it
does not work in first-stage init, because ueventd is not running.
Therefore this patch adds a way for first-stage init to set a callback
to manually regenerate and process uevents.
Additionally, even with ueventd, dm-user misc device creation needs a
WaitForFile() call, since ueventd is asynchronous.
The WaitForDevice() helper in this patch accounts for both of these
scenarios.
Bug: 173476209
Test: device boots into first-stage init after full VABC ota
Change-Id: Ib7a9bfc2a5a5095aa00b358072f9cb1743c19ab2
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions