Fix the incorrect parameter quota when userdata is formatted with EXT4
The userdata will be formatted by VOLD during bootup when the userdata is not completed file system(EXT4 or F2FS). For EXT4 on userdata and quota feature is enabled. the parameter quota is incorrect in ext4::Format(). Change the parameter from quotatype=prjquota to quotatype=usrquota:grpquota:prjquota. Bug: 199802158 Test: run cts-on-gsi -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest Change-Id: Ibff10e8e67b4e6ffabea97f534ff6551aed91963
This commit is contained in:
parent
407b2c2386
commit
3101ac01ac
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ status_t Format(const std::string& source, unsigned long numSectors, const std::
|
|||
cmd.push_back("-E");
|
||||
std::string extopts = "";
|
||||
if (needs_casefold) extopts += "encoding=utf8,";
|
||||
if (needs_projid) extopts += "quotatype=prjquota,";
|
||||
if (needs_projid) extopts += "quotatype=usrquota:grpquota:prjquota,";
|
||||
cmd.push_back(extopts);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue