check for bml too

Change-Id: Iff062f439c0daa0ce768c3853fd7c290e75b8d3d
This commit is contained in:
Koushik Dutta 2011-02-27 16:33:32 -08:00
parent d9fbe2f1ce
commit 33e37f3e5d

View File

@ -110,6 +110,7 @@ int nandroid_backup_partition(const char* backup_path, const char* root) {
char tmp[PATH_MAX];
int ret;
if (strcmp(vol->fs_type, "mtd") == 0 ||
strcmp(vol->fs_type, "bml") == 0 ||
strcmp(vol->fs_type, "emmc") == 0) {
const char* name = basename(root);
sprintf(tmp, "%s/%s.img", backup_path, name);
@ -282,6 +283,7 @@ int nandroid_restore_partition(const char* backup_path, const char* root) {
// see if we need a raw restore (mtd)
char tmp[PATH_MAX];
if (strcmp(vol->fs_type, "mtd") == 0 ||
strcmp(vol->fs_type, "bml") == 0 ||
strcmp(vol->fs_type, "emmc") == 0) {
int ret;
const char* name = basename(root);