[git commit] flashcp: change BUFSIZE to 4k

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 10 12:44:27 UTC 2014


commit: http://git.busybox.net/busybox/commit/?id=bd7c1f2d13cd1f7927ec081e4f23ee0f0b079e9a
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

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 at prevas.dk>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/flashcp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/miscutils/flashcp.c b/miscutils/flashcp.c
index b526566..9bc588d 100644
--- 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)
 {


More information about the busybox-cvs mailing list