platform_system_core/fs_mgr
David Anderson 62e5b20b50 init/fs_mgr: prototype first-stage dm-linear support
This adds an API to fs_mgr for reading dm-linear tables out of device trees
and issuing device-mapper ioctls. The device tree code will be
implemented separately. The dm-linear structures in fs_mgr are organized
assuming we may want to pull them from sources other than DT (for
example, text files, binary blobs, or something hardcoded for testing).

File systems which are mounted from these logical partitions have
specific fstab requirements. The block device must be a partition name,
and if Verified Boot is used, that name must match the vbmeta partition name.
Second, the entry must have the "logical" fs_mgr flag. Example fstab
entry:

    vendor  /vendor  ext4  ro  wait,logical

Example fstab entry in device tree:

    vendor {
        compatible = "android,fstab";
        dev = "vendor";
        type = "ext4";
        mnt_flags = "ro";
        fs_mgr_flags = "wait,slotselect,avb,logical";
    };

Bug: 78914864
Test: N/A
Change-Id: I4d8878ea8858f26310119616cadc3ee0dd08566c
2018-05-14 12:43:42 -07:00
..
include init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
include_fstab/fstab init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
.clang-format Fix-up coding style 2017-02-18 12:33:36 +08:00
Android.bp init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
fs_mgr.cpp init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
fs_mgr_avb.cpp init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
fs_mgr_avb_ops.cpp fs_mgr: Adding logs when failing to wait for a device file 2017-07-06 09:51:02 +08:00
fs_mgr_boot_config.cpp Allow the use of a custom Android DT directory 2017-07-28 11:10:48 +08:00
fs_mgr_dm_ioctl.cpp fs_mgr: target-agnostic device-mapper helpers 2018-05-03 16:35:09 -07:00
fs_mgr_dm_linear.cpp init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
fs_mgr_format.cpp make_f2fs: specify sector size for target image size and missing options 2018-04-04 09:24:24 -07:00
fs_mgr_fstab.cpp init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
fs_mgr_priv.h init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
fs_mgr_priv_avb_ops.h fs_mgr: Update for new libavb API. 2017-05-15 12:04:18 -04:00
fs_mgr_priv_boot_config.h Allow the use of a custom Android DT directory 2017-07-28 11:10:48 +08:00
fs_mgr_priv_dm_ioctl.h fs_mgr: target-agnostic device-mapper helpers 2018-05-03 16:35:09 -07:00
fs_mgr_priv_sha.h fs_mgr_avb: refactors how vbmeta is loaded 2017-04-14 21:50:55 +08:00
fs_mgr_slotselect.cpp init/fs_mgr: prototype first-stage dm-linear support 2018-05-14 12:43:42 -07:00
fs_mgr_verity.cpp fs_mgr: target-agnostic device-mapper helpers 2018-05-03 16:35:09 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00