Displaying 6 results from an estimated 6 matches for "io_start_buffering_out".
2003 Jan 03
0
[Fwd: Re: rsync windows -> unix still hanging :(]
...; } while ( buf && len > 0 );
> return ret;
Index: flist.c
===================================================================
RCS file: /cvsroot/rsync/flist.c,v
retrieving revision 1.127
diff -r1.127 flist.c
894c894
< io_start_buffering(f);
---
> io_start_buffering_out(f);
Index: io.c
===================================================================
RCS file: /cvsroot/rsync/io.c,v
retrieving revision 1.105
diff -r1.105 io.c
44,45c44,45
< static int multiplex_in_fd;
< static int multiplex_out_fd;
---
> static int multiplex_in_fd = -1;
> static int mu...
2003 Jan 03
1
[Fwd: Re: rsync windows -> unix still hanging :(]
...le: /cvsroot/rsync/main.c,v
retrieving revision 1.156
diff -c -r1.156 main.c
*** main.c 1 Aug 2002 20:46:59 -0000 1.156
--- main.c 31 Dec 2002 01:21:34 -0000
***************
*** 346,351 ****
--- 346,353 ----
exit_cleanup(0);
}
+ io_start_buffering_in(f_in);
+ io_start_buffering_out(f_out);
send_files(flist,f_out,f_in);
io_flush();
report(f_out);
***************
*** 421,427 ****
close(error_pipe[1]);
if (f_in != f_out) close(f_in);
! io_start_buffering(f_out);
io_set_error_fd(error_pipe[0]);
--- 423,429 ----
close(error_pipe[1]);...
2002 Dec 09
2
Rsync performance increase through buffering
...( buf && len > 0 );
+ return ret;
}
while (len>0) {
diff -bur rsync/flist.c rsync-craig/flist.c
--- rsync/flist.c Sat Jul 27 11:01:21 2002
+++ rsync-craig/flist.c Sun Dec 8 16:28:14 2002
@@ -889,7 +889,7 @@
flist = flist_new();
if (f != -1) {
- io_start_buffering(f);
+ io_start_buffering_out(f);
}
for (i = 0; i < argc; i++) {
diff -bur rsync/io.c rsync-craig/io.c
--- rsync/io.c Wed Apr 10 19:11:50 2002
+++ rsync-craig/io.c Sun Dec 8 17:54:23 2002
@@ -41,8 +41,8 @@
static int io_multiplexing_out;
static int io_multiplexing_in;
-static int multiplex_in_fd;
-static int multi...
2006 Sep 18
1
code 23 error.
...R_FILESELECT);
}
argc--;
argv++;
if (argc == 0 && (recurse || list_only)) {
argc = 1;
argv--;
argv[0] = ".";
}
flist = send_file_list(f_out,argc,argv);
if (!flist || flist->count == 0) {
exit_cleanup(0);
}
the_file_list = flist;
io_start_buffering_in();
io_start_buffering_out();
send_files(flist,f_out,f_in);
io_flush(FULL_FLUSH);
handle_stats(f_out);
if (protocol_version >= 24)
read_final_goodbye(f_in, f_out);
io_flush(FULL_FLUSH);
exit_cleanup(0);
}
**************************snip**********************************
**************************************...
2004 Sep 28
3
Truncated output from "rsync -e ssh ... 2>&1 | tee"
(Versions: OpenSSH_3.7.1p2, rsync version 2.6.2)
I've just encountered a situation where "rsync -v -n" appears to run
normally,
but reports many fewer file transfers than actually get done when you remove
the -n. (This is not one of the usual "-n" corner cases.)
It turns out that this only happens when you're doing a remote
rsync over ssh AND you redirect stderr into
2004 Feb 06
4
memory reduction
...list(int f,
start_write = stats.total_written;
- flist = flist_new();
+ flist = flist_new(f == -1 ? WITHOUT_HLINK : WITH_HLINK,
+ "send_file_list");
if (f != -1) {
+ flist->hlink_pool = pool_create(128 * 1024,
+ sizeof (struct idev), out_of_memory, POOL_INTERN);
io_start_buffering_out(f);
if (filesfrom_fd >= 0) {
if (argv[0] && !push_dir(argv[0])) {
@@ -1177,6 +1191,12 @@ struct file_list *send_file_list(int f,
finish_filelist_progress(flist);
}
+ if (flist->hlink_pool)
+ {
+ pool_destroy(flist->hlink_pool);
+ flist->hlink_pool = NULL;
+ }
+...