Change-Id: I9c46bb443c43186fda1ae71e49278bd1a7d6aa6f
This commit is contained in:
Koushik Dutta 2010-12-12 02:53:21 -08:00
parent 02c360501b
commit cd8af06d64

View File

@ -27,7 +27,7 @@ int cmd_bml_restore_raw_partition(const char *partition, const char *filename)
{
printf("bml restore\n");
int fd = open("/dev/block/bml7", O_RDWR | O_LARGEFILE);
return ioctl(fd, BML_UNLOCK_ALL, 0);
ioctl(fd, BML_UNLOCK_ALL, 0);
char tmp[PATH_MAX];
sprintf("dd if=%s of=/dev/block/bml7 bs=4096", filename);