summaryrefslogtreecommitdiffstats
path: root/fs_mgr
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2014-06-24 16:36:43 -0700
committerJP Abgrall <jpa@google.com>2014-06-25 20:04:25 +0000
commit983411318fb3b841c567cf1357649335806a0657 (patch)
treebfc014a74799ba5379a61b6193c66c4baf6c88a6 /fs_mgr
parent61be43907f2ad3430deeb0223ffe8ac5c165b986 (diff)
downloadsystem_core-983411318fb3b841c567cf1357649335806a0657.zip
system_core-983411318fb3b841c567cf1357649335806a0657.tar.gz
system_core-983411318fb3b841c567cf1357649335806a0657.tar.bz2
fs_mgr: fix double mounting of partition
When looking for partitions to encrypt, it would setup a tmpfs onto the mount point. But with multi-type mount points it would repeat the mount. This would lead to having and extra tmpfs mounted on /data, as only one would get removed. Change-Id: I28f2c2c4955906f1172342ea07e0795d6880986b Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'fs_mgr')
-rw-r--r--fs_mgr/fs_mgr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs_mgr/fs_mgr.c b/fs_mgr/fs_mgr.c
index 4feb921..4fad6ad 100644
--- a/fs_mgr/fs_mgr.c
+++ b/fs_mgr/fs_mgr.c
@@ -364,6 +364,7 @@ int fs_mgr_mount_all(struct fstab *fstab)
++error_count;
continue;
}
+ last_ok_mount_point = fstab->recs[j].mount_point;
}
encryptable = 1;
} else {