Merge changes from topics "fscrypt-options", "fstab-options" am: c17827b095 am: 18b8ad91b8
am: 2615e01740

Change-Id: I8b2664197f51ecf3379e0de0e4303c71f0e2302b
diff --git a/FsCrypt.cpp b/FsCrypt.cpp
index d1fa256..c101ba8 100644
--- a/FsCrypt.cpp
+++ b/FsCrypt.cpp
@@ -201,8 +201,11 @@
     if (entry == nullptr) {
         return;
     }
-    ParseOptionsParts(entry->file_contents_mode, entry->file_names_mode, entry->file_policy_version,
-                      options);
+    if (!ParseOptions(entry->encryption_options, options)) {
+        LOG(ERROR) << "Unable to parse encryption options for " << DATA_MNT_POINT ": "
+                   << entry->encryption_options;
+        return;
+    }
 }
 
 // Retrieve the version to use for encryption policies on the /data filesystem.