summaryrefslogtreecommitdiffstats
path: root/fs_mgr/fs_mgr_fstab.c
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2014-06-18 07:28:14 +0000
committerJP Abgrall <jpa@google.com>2014-06-18 07:28:14 +0000
commitf786fe54388cb4461f8e13845ca6a1df0d2e1236 (patch)
tree281e8e34a649d2fe05062228e10a25650965faa1 /fs_mgr/fs_mgr_fstab.c
parenta794f86522f9125f2547c94ebc7c74d1e7ace013 (diff)
downloadsystem_core-f786fe54388cb4461f8e13845ca6a1df0d2e1236.tar.gz
system_core-f786fe54388cb4461f8e13845ca6a1df0d2e1236.tar.bz2
system_core-f786fe54388cb4461f8e13845ca6a1df0d2e1236.zip
fsmgr: revert multiple fs-types/mountpoint (fix N5 boot)
This is apparently breaking N5, so reverting for now. This reverts commit a794f86522f9125f2547c94ebc7c74d1e7ace013. Bug: 15709256 Change-Id: I37a5160eead17e153e2c83fa94632ffa5d8553c2
Diffstat (limited to 'fs_mgr/fs_mgr_fstab.c')
-rw-r--r--fs_mgr/fs_mgr_fstab.c30
1 files changed, 4 insertions, 26 deletions
diff --git a/fs_mgr/fs_mgr_fstab.c b/fs_mgr/fs_mgr_fstab.c
index 3f841792c..6c21425bd 100644
--- a/fs_mgr/fs_mgr_fstab.c
+++ b/fs_mgr/fs_mgr_fstab.c
@@ -367,45 +367,23 @@ int fs_mgr_add_entry(struct fstab *fstab,
return 0;
}
-/*
- * Returns the 1st matching fstab_rec that follows the start_rec.
- * start_rec is the result of a previous search or NULL.
- */
-struct fstab_rec *fs_mgr_get_entry_for_mount_point_after(struct fstab_rec *start_rec, struct fstab *fstab, const char *path)
+struct fstab_rec *fs_mgr_get_entry_for_mount_point(struct fstab *fstab, const char *path)
{
int i;
+
if (!fstab) {
return NULL;
}
- if (start_rec) {
- for (i = 0; i < fstab->num_entries; i++) {
- if (&fstab->recs[i] == start_rec) {
- i++;
- break;
- }
- }
- } else {
- i = 0;
- }
- for (; i < fstab->num_entries; i++) {
+ for (i = 0; i < fstab->num_entries; i++) {
int len = strlen(fstab->recs[i].mount_point);
if (strncmp(path, fstab->recs[i].mount_point, len) == 0 &&
(path[len] == '\0' || path[len] == '/')) {
return &fstab->recs[i];
}
}
- return NULL;
-}
-/*
- * Returns the 1st matching mount point.
- * There might be more. To look for others, use fs_mgr_get_entry_for_mount_point_after()
- * and give the fstab_rec from the previous search.
- */
-struct fstab_rec *fs_mgr_get_entry_for_mount_point(struct fstab *fstab, const char *path)
-{
- return fs_mgr_get_entry_for_mount_point_after(NULL, fstab, path);
+ return NULL;
}
int fs_mgr_is_voldmanaged(struct fstab_rec *fstab)