projects
/
project
/
ubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow mtd devices to be mounted by block tool
[project/ubox.git]
/
block.c
diff --git
a/block.c
b/block.c
index
1c78a72
..
5ae0fd0
100644
(file)
--- a/
block.c
+++ b/
block.c
@@
-513,7
+513,7
@@
static int mount_device(struct blkid_struct_probe *pr, int hotplug)
if (m) {
char *target = m->target;
- char _target[
] = "/mnt/mmcblk123"
;
+ char _target[
32]
;
int err = 0;
if (!target) {
@@
-804,7
+804,7
@@
static int main_mount(int argc, char **argv)
if (config_load(NULL))
return -1;
- cache_load(
0
);
+ cache_load(
1
);
list_for_each_entry(pr, &devices, list)
mount_device(pr, 0);