platform_system_core/fs_mgr/include
David Anderson 4929df0c44 fs_mgr: Allow using major:minor device strings in CreateLogicalPartition.
IPartitionOpener is useful for writing gtests, however, it can't easily
be used with CreateLogicalPartition. fs_mgr assumes the super partition
name will map to /dev/block/by-name/super whereas in tests we want to
redirect it to a different block device.

This CL makes two changes. First, it adds a new method to IPartitionOpener
to return a "device string" for a device name. The string must either be
an absolute path (for example /dev/block/by-name/super) or a major:minor
sequence, since device-mapper will accept either.

Second, CreateLogicalPartition now accepts an optional IPartitionOpener.
When converting block devices to paths, it uses the opener instead of
automatically prepending /dev/block/by-name.

Bug: 139204329
Test: liblp_test gtest
      libsnapshot_test gtest

Change-Id: Id6b3120cc2ef5c0dd941b29ff96215ad3c8ec848
2019-08-15 16:39:48 -07:00
..
fs_mgr Introduce inotify-based replacements for fs_mgr_wait_for_file. 2019-06-18 15:27:09 -07:00
fs_mgr.h Make ext4 userdata checkpoints work with metadata encryption 2019-06-26 15:09:07 -07:00
fs_mgr_dm_linear.h fs_mgr: Allow using major:minor device strings in CreateLogicalPartition. 2019-08-15 16:39:48 -07:00
fs_mgr_overlayfs.h fs_mgr: overlayfs: pre-emptive filesystem setup 2019-05-31 11:23:01 -07:00
fs_mgr_vendor_overlay.h Mount vendor overlay from the system partition 2018-11-01 10:26:12 +09:00