diff options
author | Doug Zongker <dougz@android.com> | 2010-09-20 12:16:13 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2010-09-21 14:13:45 -0700 |
commit | cc8cd3f3cac07f6927ead277ef390c000ae798d9 (patch) | |
tree | eb69079a188920538b1d955d0da5d594d934723f /common.h | |
parent | 0f1ad110f8655d941afefcc57d371ea98c02a7a7 (diff) | |
download | bootable_recovery-cc8cd3f3cac07f6927ead277ef390c000ae798d9.zip bootable_recovery-cc8cd3f3cac07f6927ead277ef390c000ae798d9.tar.gz bootable_recovery-cc8cd3f3cac07f6927ead277ef390c000ae798d9.tar.bz2 |
remove the notion of "root path"; support mixed flash types
Remove the wacky notion of "roots" and "root paths" (those things that
look like "FOO:some/path" instead of just "/foo/some/path"). Let each
device specify its own table of available partitions and how to mount
them (needed for devices that use both MTD/yaffs2 and EMMC/ext4
partitions).
(Cherrypicked from gingerbread w/slight edits.)
Change-Id: I2479ce76b13e73f1d12035c89386c3a82b3edf51
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -87,4 +87,17 @@ void ui_reset_progress(); #define STRINGIFY(x) #x #define EXPAND(x) STRINGIFY(x) +typedef struct { + const char* mount_point; // eg. "/cache". must live in the root directory. + + const char* fs_type; // "yaffs2" or "ext4" or "vfat" + + const char* device; // MTD partition name if fs_type == "yaffs" + // block device if fs_type == "ext4" or "vfat" + + const char* device2; // alternative device to try if fs_type + // == "ext4" or "vfat" and mounting + // 'device' fails +} Volume; + #endif // RECOVERY_COMMON_H |