mirror of
https://gitee.com/openharmony/startup_init
synced 2025-02-26 07:27:01 +00:00
add quota when format userdata
Signed-off-by: 张文迪 <zhangwendi3@huawei.com>
This commit is contained in:
parent
b6780595a7
commit
f04952fb91
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user