Improve storage size code, mount, unmount

Add flag parsing from recovery.fstab
This commit is contained in:
Dees_Troy
2012-09-10 11:33:29 -04:00
parent 5bf439221d
commit 5112731666
8 changed files with 410 additions and 140 deletions
+2 -1
View File
@@ -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);