more fixes

Change-Id: Ic55d94ef69b6b8ea4ec2a6df708a9444e9d5f4e5
This commit is contained in:
Koushik Dutta 2011-05-26 11:29:29 -07:00
parent 8a6bc77423
commit e62132bb6d
2 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ int nandroid_backup(const char* backup_path)
serialno[0] = 0;
property_get("ro.serialno", serialno, "");
sprintf(tmp, "%s/wimax.%s.img", backup_path, serialno);
ret = backup_raw_partition(vol->device, tmp);
ret = backup_raw_partition(vol->fs_type, vol->device, tmp);
if (0 != ret)
return print_and_error("Error while dumping WiMAX image!\n");
}
@ -348,7 +348,7 @@ int nandroid_restore(const char* backup_path, int restore_boot, int restore_syst
if (0 != (ret = format_volume("/wimax")))
return print_and_error("Error while formatting wimax!\n");
ui_print("Restoring WiMAX image...\n");
if (0 != (ret = restore_raw_partition(vol->device, tmp)))
if (0 != (ret = restore_raw_partition(vol->fs_type, vol->device, tmp)))
return ret;
}
}

View File

@ -302,7 +302,7 @@ int format_volume(const char* volume) {
}
if (strcmp(v->fs_type, "emmc") == 0) {
return erase_raw_partition(v->device);
return erase_raw_partition("emmc", v->device);
}
if (strcmp(v->fs_type, "ext4") == 0) {