From a794f86522f9125f2547c94ebc7c74d1e7ace013 Mon Sep 17 00:00:00 2001 From: JP Abgrall Date: Tue, 17 Jun 2014 16:58:46 -0700 Subject: 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 --- fs_mgr/include/fs_mgr.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fs_mgr/include/fs_mgr.h') 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; -- cgit v1.1