mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-19 10:32:27 +03:00
add oleg's jffs2root fix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@800 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1d37fc3b1b
commit
2841be7433
@ -98,7 +98,7 @@ int main(int argc, char **argv)
|
||||
//bzero((void *)((int)ptr + ptr->len), (size_t)(len - ptr->len));
|
||||
ptr->len = offset;
|
||||
ptr->crc32 = crc32buf((void *) &(ptr->flag_version), ptr->len - offsetof(struct trx_header, flag_version));
|
||||
msync(ptr,len,MS_SYNC|MS_INVALIDATE);
|
||||
msync(ptr,sizeof(struct trx_header),MS_SYNC|MS_INVALIDATE);
|
||||
printf("Partition moved; please reboot\n");
|
||||
}
|
||||
} else {
|
||||
@ -113,6 +113,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
|
||||
munmap((void *) ptr, sizeof(struct trx_header));
|
||||
munmap((void *) ptr, len);
|
||||
close (fd);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user