platform_system_core/fs_mgr
Bowgo Tsai 8028189499 first stage mount: support mount points like /vendor/abc
Current syntax of the fstab in device tree (fstab_dt) assumes the
node name is the mount point, which doesn't allow subdir:

    vendor {   <== using "vendor/abc" leads to syntax error in device tree
        compatible = "android,vendor";
        dev = "/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor";
        type = "ext4";
        mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
        fsmgr_flags = "wait";
    };

This CL adds a new field "mnt_point" in the fstab_dt configuration:

    vendor_abc {
        compatible = "android,vendor_abc";
        dev = "/dev/block/platform/soc.0/f9824900.sdhci/by-name/abc";
        type = "ext4";
        mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
        mnt_point = "/vendor/abc";                          <== new field
        fsmgr_flags = "wait";
    };

The new field is optional and will fallback to using node name as mount
point if it is absent.

Note that this CL also sorts fstab_dt by mount point, because
/vendor needs to be mounted first, which contains a directory
/vendor/abc, before /vendor/abc can be mounted.

Bug: 69955336
Test: first stage mount /vendor/abc on a device
Change-Id: Ie2e519f9801f211a7a221622f32c82bedd00353f
2017-12-14 09:48:26 +08:00
..
include Merge "fs_mgr: removing __BEGIN_DECLS and __END_DECLS" 2017-10-11 01:53:35 +00:00
include_fstab/fstab Merge "fs_mgr: removing __BEGIN_DECLS and __END_DECLS" 2017-10-11 01:53:35 +00:00
.clang-format Fix-up coding style 2017-02-18 12:33:36 +08:00
Android.bp first stage mount: support mount points like /vendor/abc 2017-12-14 09:48:26 +08:00
fs_mgr.cpp Merge "fs_mgr: removing is_device_secure()" 2017-10-15 02:48:33 +00:00
fs_mgr_avb.cpp Merge "fs_mgr: Adding logs when failing to wait for a device file" 2017-07-06 04:19:00 +00: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 Fix-up coding style 2017-02-18 12:33:36 +08:00
fs_mgr_format.cpp fs_mgr: replace make_ext4 api with e2fsprogs 2017-09-11 18:34:32 +00:00
fs_mgr_fstab.cpp first stage mount: support mount points like /vendor/abc 2017-12-14 09:48:26 +08:00
fs_mgr_priv.h Merge "fs_mgr: removing is_device_secure()" 2017-10-15 02:48:33 +00: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 Fix-up coding style 2017-02-18 12:33:36 +08: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 Merge "DO NOT MERGE ANYWHERE Add comments and code about ro.boot.slot back" 2017-11-13 16:36:34 +00:00
fs_mgr_verity.cpp fs_mgr: removing is_device_secure() 2017-10-13 06:34:12 +08:00