platform_system_core/fs_mgr/libdm
David Anderson e1c0744c26 libdm: Implement LoadTableAndActivate.
This change implements DeviceMapper::LoadTableAndActivate by serializing
the given DmTable and issuing DM_TABLE_LOAD and DM_DEV_SUSPEND ioctls.
In addition, this makes the CreateDevice() method private, and
introduces a separate method for creating a device and loading a table
as a single operation. This will obviate the need for separate inactive
device cleanup logic later.

Note that this change does not yet implement DmTable::Serialize().

Bug: 110035986
Test: N/A
Change-Id: Ic8affe591db4930ce672b00db989978b57ca8cbf
2018-06-20 15:16:05 -07:00
..
include/libdm libdm: Implement LoadTableAndActivate. 2018-06-20 15:16:05 -07:00
Android.bp fs_mgr: device mapper: Add libdm and 'dmctl' tool to use it. 2018-06-13 13:35:44 -07:00
dm.cpp libdm: Implement LoadTableAndActivate. 2018-06-20 15:16:05 -07:00
dm_table.cpp libdm: Implement LoadTableAndActivate. 2018-06-20 15:16:05 -07:00
dm_target.cpp libdm: Move includes to a libdm folder. 2018-06-20 15:16:04 -07:00