add quota when format userdata

Signed-off-by: 张文迪 <zhangwendi3@huawei.com>
This commit is contained in:
张文迪 2023-08-28 10:32:23 +08:00
parent b6780595a7
commit f04952fb91

View File

@ -121,11 +121,13 @@ int DoFormat(const char *devPath, const char *fsType)
} else if (strcmp(fsType, "f2fs") == 0) {
#ifdef __MUSL__
char *formatCmds[] = {
"/bin/mkfs.f2fs", "-d1", "-O", "encrypt", "-O", "quota", "-O", "verity", (char *)devPath, NULL
"/bin/mkfs.f2fs", "-d1", "-O", "encrypt", "-O", "quota", "-O", "verity", "-O", "project_quota,extra_attr",
"-O", "sb_checksum", (char *)devPath, NULL
};
#else
char *formatCmds[] = {
"/bin/make_f2fs", "-d1", "-O", "encrypt", "-O", "quota", "-O", "verity", (char *)devPath, NULL
"/bin/make_f2fs", "-d1", "-O", "encrypt", "-O", "quota", "-O", "verity", "-O", "project_quota,extra_attr",
"-O", "sb_checksum", (char *)devPath, NULL
};
#endif
int argc = ARRAY_LENGTH(formatCmds);