From 5112731666070037ac8ed78dfdad57a11bd4cb6d Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Sat, 8 Sep 2012 13:08:49 -0400 Subject: Improve storage size code, mount, unmount Add flag parsing from recovery.fstab --- roots.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roots.cpp') diff --git a/roots.cpp b/roots.cpp index 3bd680157..e74747378 100644 --- a/roots.cpp +++ b/roots.cpp @@ -40,7 +40,8 @@ static int parse_options(char* options, Volume* volume) { while ((option = strtok(options, ","))) { options = NULL; - if (strncmp(option, "length=", 7) == 0) { + if (strncmp(option, "flags=", 6) == 0) continue; + if (strncmp(option, "length=", 7) == 0) { volume->length = strtoll(option+7, NULL, 10); } else { LOGE("bad option \"%s\"\n", option); -- cgit v1.2.3