Changes to work with updated make_ext4fs tool that supports creating sparse images.
An extra parameter was added to the make_ext4fs() function, we these tools need to be updated to match. Change-Id: Id640a7f2b03153eb333b00337f0f991ff5332349
This commit is contained in:
parent
80dcee145f
commit
8101125ee5
2
roots.c
2
roots.c
@ -386,7 +386,7 @@ format_root_device(const char *root)
|
||||
if (strcmp(info->filesystem, "ext4") == 0) {
|
||||
LOGW("starting to reformat ext4\n");
|
||||
reset_ext4fs_info();
|
||||
int result = make_ext4fs(info->device, NULL, NULL, 0, 0);
|
||||
int result = make_ext4fs(info->device, NULL, NULL, 0, 0, 0);
|
||||
LOGW("finished reformat ext4: result = %d\n", result);
|
||||
if (result != 0) {
|
||||
LOGW("make_ext4fs failed: %d\n", result);
|
||||
|
@ -237,7 +237,7 @@ Value* FormatFn(const char* name, State* state, int argc, Expr* argv[]) {
|
||||
#ifdef USE_EXT4
|
||||
} else if (strcmp(fs_type, "ext4") == 0) {
|
||||
reset_ext4fs_info();
|
||||
int status = make_ext4fs(location, NULL, NULL, 0, 0);
|
||||
int status = make_ext4fs(location, NULL, NULL, 0, 0, 0);
|
||||
if (status != 0) {
|
||||
fprintf(stderr, "%s: make_ext4fs failed (%d) on %s",
|
||||
name, status, location);
|
||||
|
Loading…
Reference in New Issue
Block a user