search for: io_buff

Displaying 6 results from an estimated 6 matches for "io_buff".

Did you mean: in_buff
2002 Jan 13
0
rsynd-2.5.1 / io.c patches
...writefd_unbuffered(int fd, const void * buf1,int len) { int total = 0; fd_set w_fds, r_fds; int fd_count, count; struct timeval tv; +unsigned char * buf; + buf = (unsigned char *)buf1; err_list_push(); @@ -469,24 +480,26 @@ } -static char *io_buffer; +static unsigned char *io_buffer; static int io_buffer_count; void io_start_buffering(int fd) { if (io_buffer) return; multiplex_out_fd = fd; - io_buffer = (char *)malloc(IO_BUFFER_SIZE); + io_buffer = malloc(IO_BUFFER_SIZE); if (!io_buffer) out_of_m...
2002 Dec 09
2
Rsync performance increase through buffering
...char *buffer; + static size_t bufferIdx = 0; + static size_t bufferSz; - if (!io_multiplexing_in || fd != multiplex_in_fd) + if (fd != multiplex_in_fd) return read_timeout(fd, buf, len); + if (!io_multiplexing_in && remaining == 0) { + if (!buffer) { + bufferSz = 2 * IO_BUFFER_SIZE; + buffer = malloc(bufferSz); + if (!buffer) out_of_memory("read_unbuffered"); + } + remaining = read_timeout(fd, buffer, bufferSz); + bufferIdx = 0; + } + while (ret == 0) { if (remaining) { len = MIN(len, remaining); - read_loop(fd, buf, l...
2003 Jun 10
1
Red Hat rsync - 'sign' patch
...dy Merrill Red Hat, Inc. -------------- next part -------------- diff -ur rsync-2.5.6/io.c rsync-2.5.6-sign/io.c --- rsync-2.5.6/io.c 2002-04-10 22:11:50.000000000 -0400 +++ rsync-2.5.6-sign/io.c 2003-06-05 14:05:54.000000000 -0400 @@ -605,7 +605,7 @@ } while (len) { - int n = MIN((int) len, IO_BUFFER_SIZE-io_buffer_count); + ssize_t n = MIN((ssize_t) len, IO_BUFFER_SIZE-io_buffer_count); if (n > 0) { memcpy(io_buffer+io_buffer_count, buf, n); buf += n; Only in rsync-2.5.6-sign/: io.c.orig diff -ur rsync-2.5.6/match.c rsync-2.5.6-sign/match.c --- rsync-2.5.6/match.c 2002-04-09 0...
2002 Feb 01
0
rsync Warning: unexpected read size of 0 in map_ptr
...+453,7 @@ } if (ret <= 0) { - rprintf(FERROR,"erroring writing %d bytes - exiting\n", len); + rprintf(FERROR,"erroring writing %lu bytes - exiting\n", len); exit_cleanup(RERR_STREAMIO); } @@ -561,7 +561,7 @@ } while (len) { - int n = MIN(len, IO_BUFFER_SIZE-io_buffer_count); + int n = MIN((ssize_t)len, IO_BUFFER_SIZE-io_buffer_count); if (n > 0) { memcpy(io_buffer+io_buffer_count, buf, n); buf += n; diff -ru rsync-2.4.6/match.c rsync-2.4.6-fixed/match.c --- rsync-2.4.6/match.c Sat Jan 29 06:35:03 2000 +++ rsync-2.4.6-fixed/match....
2003 Sep 14
2
rsync error: error in rsync protocol data stream (code 12) at io.c(463)
Hi, I'm having a problem rsyncing one file (since I signed it). It seems that the content of a file is able to cause problems in the protocol. building file list ... 28820 files to consider apt/packages/avifile/ apt/packages/avifile/avifile-0.7.34-1.dag.rh90.i386.rpm rsync: error writing 4 unbuffered bytes - exiting: Broken pipe rsync error: error in rsync protocol data stream (code
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...+ } + stats.total_read += total; } *************** *** 951,956 **** --- 960,972 ---- exit_cleanup(RERR_PROTOCOL); } + if (write_batch && am_sender) { + if (write(batch_fd, buf, len) < 0) { + close(batch_fd); + exit_cleanup(RERR_FILEIO); + } + } + if (!io_buffer || fd != multiplex_out_fd) { writefd_unbuffered(fd, buf, len); return; Index: main.c =================================================================== RCS file: /cvsroot/rsync/main.c,v retrieving revision 1.202 diff -c -b -d -r1.202 main.c *** main.c 30 Jun 2004 07:27:30 -0000 1.202 ---...