diff options
author | JP Abgrall <jpa@google.com> | 2014-06-17 16:58:46 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2014-06-17 17:01:20 -0700 |
commit | a794f86522f9125f2547c94ebc7c74d1e7ace013 (patch) | |
tree | 86c06f8e6089ebc0c1618a19dfc74e87041132af /fs_mgr/include/fs_mgr.h | |
parent | 1235158c29909132fbe9aa52939061fc81f0800e (diff) | |
download | system_core-a794f86522f9125f2547c94ebc7c74d1e7ace013.zip system_core-a794f86522f9125f2547c94ebc7c74d1e7ace013.tar.gz system_core-a794f86522f9125f2547c94ebc7c74d1e7ace013.tar.bz2 |
fsmgr: allow for a multiple fs-types for a mount point.
This changes allows an fstab to contain multiple lines for a given
mount point.
The lines sharing a mount MUST be after each other.
The 1st matching line is the primary when it comes to mounting
and look ups for wiping.
Mounting based on a mount_point will attempt each dup in turn
until one succeeds.
This is to allow quick experimentations between different FSes.
It does not deal with checkfs yet, because the underlying invocation
of fs-type appropriate fsck does not handle the error code.
Only the primary FS (1st in the dups) is checked.
Change-Id: I8329737454b53e2681436fe85cd00a9bc522676b
Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'fs_mgr/include/fs_mgr.h')
-rw-r--r-- | fs_mgr/include/fs_mgr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs_mgr/include/fs_mgr.h b/fs_mgr/include/fs_mgr.h index 835cf64..b8bb5aa 100644 --- a/fs_mgr/include/fs_mgr.h +++ b/fs_mgr/include/fs_mgr.h @@ -24,6 +24,11 @@ extern "C" { #endif +/* + * The entries must be kept in the same order as they were seen in the fstab. + * Unless explicitly requested, a lookup on mount point should always + * return the 1st one. + */ struct fstab { int num_entries; struct fstab_rec *recs; |