projects
/
oweals
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5277eea
)
allow mtd devices to be mounted by block tool
author
John Crispin
<blogic@openwrt.org>
Tue, 23 Jul 2013 11:43:10 +0000
(13:43 +0200)
committer
John Crispin
<blogic@openwrt.org>
Tue, 23 Jul 2013 11:44:08 +0000
(13:44 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index 1c78a72470205e3fd3585a75a325151d4790e2e4..5ae0fd01fbeedbdc5aa261a951fb2ea760b6584e 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);