platform_system_core/fs_mgr/libdm
David Anderson 59abbfe647 ueventd: Fix a race condition in handling device-mapper events.
We've had flake in libdm_test for a long time, with no clear cause.
Lately however it has become particularly reproducible when running
the UeventAfterLoadTable test in isolation, and thus we've identified
the root cause.

uevents for device-mapper are fired when the sysfs node is added, but at
that time, the "dm" subnode has not yet been added. The root node and dm
node are added very close together, so usually it works, but sometimes
ueventd is too fast.

Instead of relying on sysfs, query the uuid/name node directly from
device-mapper.

Bug: 270183812
Test: libdm_test
Change-Id: I258de5de05d813c3cb7f129e82e56dbfe8bf3117
2023-05-17 15:52:16 -07:00
..
include/libdm ueventd: Fix a race condition in handling device-mapper events. 2023-05-17 15:52:16 -07:00
Android.bp libdm: Remove dm_linear_fuzzer. 2023-01-24 21:37:18 -08:00
dm.cpp ueventd: Fix a race condition in handling device-mapper events. 2023-05-17 15:52:16 -07:00
dm_table.cpp Fix the return values of DmTable::valid to match the expected type 2023-05-08 13:26:35 -07:00
dm_target.cpp fs_mgr: support 'check_at_most_once' for dm-verity 2021-05-31 10:43:25 +00:00
dm_test.cpp ueventd: Fix a race condition in handling device-mapper events. 2023-05-17 15:52:16 -07:00
loop_control.cpp adds LO_FLAGS_AUTOCLEAR for loop device of zram backing device 2021-09-26 10:07:50 +08:00
loop_control_test.cpp libdm: Fix race conditions in LoopControl::Attach. 2019-07-11 15:39:53 -07:00
test_util.cpp libdm: Add unit tests for dm-linear. 2018-06-25 12:56:14 -07:00
test_util.h Move TempDevice to test_util.h 2019-10-10 20:59:33 +01:00
utility.cpp libdm: Fix WaitForFile early-returning on failed accesses. 2020-02-26 15:21:53 -08:00
utility.h libdm: add an overload of DeleteDevice accepting a timeout_ms 2019-12-05 10:37:47 +00:00