From d248cb60e53cd2f9e9a5212626591f37af82083f Mon Sep 17 00:00:00 2001 From: nyyu Date: Mon, 9 Jan 2023 21:42:59 +0100 Subject: [PATCH] fix: patch adoptable storage --- vold-add-option-metadata_csum.patch | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/vold-add-option-metadata_csum.patch b/vold-add-option-metadata_csum.patch index e6c5907..ced6d80 100644 --- a/vold-add-option-metadata_csum.patch +++ b/vold-add-option-metadata_csum.patch @@ -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"); }