[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] flashcp: change BUFSIZE to 4k
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2014-12-10 12:45:44
Message-ID: CAK1hOcOKpu_NvNk9Tx+pKWkRPThLFzUaD2KHuO0fGaHPY83Y7Q () mail ! gmail ! com
[Download RAW message or body]

On Thu, Dec 4, 2014 at 2:33 PM, Jacob Kjaergaard
<jacob.kjaergaard@prevas.dk> wrote:
> some flash partitions can be smaller than the existing BUFSIZE thus write
> BUFSIZE will fail with "no space left on device"
> ---
>  miscutils/flashcp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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)
>  {


Applied, thanks!
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic