diff options
author | Nikita Ioffe <ioffe@google.com> | 2019-12-04 15:36:59 +0000 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2019-12-05 10:37:47 +0000 |
commit | 2c28919d484b68896dd3e9a07849c86e95c20174 (patch) | |
tree | 2bd7d12a21a4c924b948a931471d2224f8da917b /trusty/coverage/coverage.cpp | |
parent | 028e1d4434dd8c3d4f429a402dcdf66a6c552eb0 (diff) |
libdm: add an overload of DeleteDevice accepting a timeout_ms
In some scenarios (e.g. apexd or userspace reboot), dm-devices are
getting deleted and re-created. Since this operation can be racy (newly
created device can get the same path as the previously deleted one,
resulting in the unexpected ENOENT errors on a system call to the path),
it will be nice to have an API that blocks until ueventd processes
corresponding udev events.
Test: libdm_test
Bug: 143970043
Bug: 122059364
Change-Id: I31a19afd9e245bf5e3554011bdde1c3cc4878f1c
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions