projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfcd239
)
flashcp: change BUFSIZE to 4k
author
Jacob Kjaergaard
<jacob.kjaergaard@prevas.dk>
Wed, 10 Dec 2014 12:44:27 +0000
(13:44 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 10 Dec 2014 12:44:27 +0000
(13:44 +0100)
some flash partitions can be smaller than the existing BUFSIZE thus write
BUFSIZE will fail with "no space left on device"
Signed-off-by: Jacob Kjaergaard <jacob.kjaergaard@prevas.dk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/flashcp.c
patch
|
blob
|
history
diff --git
a/miscutils/flashcp.c
b/miscutils/flashcp.c
index b526566a41a6cbc99fa154318d7d4d8dfce1ec81..9bc588d14bd33a9759c022f26dba2f4ca9eaf76e 100644
(file)
--- a/
miscutils/flashcp.c
+++ b/
miscutils/flashcp.c
@@
-21,7
+21,7
@@
#define OPT_v (1 << 0)
-#define BUFSIZE (
8
* 1024)
+#define BUFSIZE (
4
* 1024)
static void progress(int mode, uoff_t count, uoff_t total)
{