fix: patch adoptable storage
This commit is contained in:
parent
61e04ffc20
commit
d248cb60e5
1 changed files with 20 additions and 4 deletions
|
@ -6,8 +6,8 @@ Subject: [PATCH] vold: add option ^metadata_csum
|
|||
Change-Id: I1fe379967968e4be8973e98c4fcb9b5c95bb60e8
|
||||
---
|
||||
Utils.cpp | 2 +-
|
||||
fs/Ext4.cpp | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
fs/Ext4.cpp | 7 +++++--
|
||||
2 files changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Utils.cpp b/Utils.cpp
|
||||
index a7e85f2..9ffc1dd 100644
|
||||
|
@ -23,10 +23,26 @@ index a7e85f2..9ffc1dd 100644
|
|||
LOG(WARNING) << "blkid failed to identify " << path;
|
||||
return res;
|
||||
diff --git a/fs/Ext4.cpp b/fs/Ext4.cpp
|
||||
index 0ae5cb3..59c04d3 100644
|
||||
index 0ae5cb3..73971e1 100644
|
||||
--- a/fs/Ext4.cpp
|
||||
+++ b/fs/Ext4.cpp
|
||||
@@ -196,7 +196,7 @@ status_t Format(const std::string& source, unsigned long numSectors, const std::
|
||||
@@ -184,19 +184,22 @@ status_t Format(const std::string& source, unsigned long numSectors, const std::
|
||||
cmd.push_back("-t");
|
||||
cmd.push_back("ext4");
|
||||
|
||||
+ cmd.push_back("-m");
|
||||
+ cmd.push_back("0");
|
||||
+
|
||||
cmd.push_back("-M");
|
||||
cmd.push_back(target);
|
||||
|
||||
bool needs_casefold =
|
||||
android::base::GetBoolProperty("external_storage.casefold.enabled", false);
|
||||
- bool needs_projid = true;
|
||||
+ bool needs_projid = false;
|
||||
|
||||
if (needs_projid) {
|
||||
cmd.push_back("-I");
|
||||
cmd.push_back("512");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue