Displaying 5 results from an estimated 5 matches for "simple_recv_token".
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...if (do_progress)
end_progress(st.st_size);
diff -au rsync-3.0.6/token.c rsync-3.0.6.fast/token.c
--- rsync-3.0.6/token.c 2009-01-17 23:41:35.000000000 +0200
+++ rsync-3.0.6.fast/token.c 2009-09-23 13:33:17.000000000 +0300
@@ -212,7 +212,7 @@
/* non-compressing recv token */
static int32 simple_recv_token(int f, char **data)
{
- static int32 residue;
+ static off_t residue;
static char *buf;
int32 n;
@@ -222,6 +222,21 @@
out_of_memory("simple_recv_token");
}
+ if (f < 0) {
+ /* fast copy handle */
+ f = -f;
+ if (!*data) {
+ /* start reading this file */
+ struct s...
2015 Dec 26
0
About data/token send/receive protocol part and more
...e following seems to work:
----------------------------------------------------------------------------
diff -rupN ../rsync.git/token.c ./token.c
--- ../rsync.git/token.c 2015-11-03 18:21:36.264183118 +0100
+++ ./token.c 2015-12-26 03:43:09.043841052 +0100
@@ -226,8 +226,12 @@ static int32 simple_recv_token(int f, ch
if (residue == 0) {
int32 i = read_int(f);
- if (i <= 0)
+ if (i <= 0) {
+ if (protocol_version >= 32) {
+ int32 j = read_int(f); /* additional metadata */
+...
2002 Sep 25
0
Rsync Hangs 100% of the time when copying files from win2k machin es to linux
...2 0x8056c05 in read_unbuffered (fd=5, buf=0x8186018 "\213E??@\030\002",
len=4128) at io.c:279
#3 0x8056d4a in readfd (fd=5, buffer=0x817f038 "MZ\220", N=32768) at
io.c:329
#4 0x8056dfb in read_buf (f=5, buf=0x817f038 "MZ\220", len=32768) at
io.c:374
#5 0x8057d6f in simple_recv_token (f=5, data=0xbfffc73c) at token.c:84
#6 0x805888f in recv_token (f=5, data=0xbfffc73c) at token.c:504
#7 0x804bd6b in receive_data (f_in=5, buf=0x0, fd=4, fname=0x8078360
"WINNT/$NtUninstallQ287687$/icaapi.dll",
total_size=121616) at receiver.c:224
#8 0x804c486 in recv_files (f_in=...
2020 Feb 06
0
[PATCH] Add support for zstd compression
...oken(f, token, buf, offset, n);
else
send_deflated_token(f, token, buf, offset, n, toklen);
@@ -648,7 +890,9 @@ int32 recv_token(int f, char **data)
{
int tok;
- if (!do_compression) {
+ if (do_compression_zstd) {
+ tok = recv_zstd_token(f, data);
+ } else if (!do_compression) {
tok = simple_recv_token(f,data);
} else {
tok = recv_deflated_token(f, data);
--
2.25.0
2004 Jun 17
1
[PATCH] make write_batch local
...==============================
RCS file: /cvsroot/rsync/token.c,v
retrieving revision 1.30
diff -c -b -d -r1.30 token.c
*** a/token.c 6 Jan 2004 05:33:02 -0000 1.30
--- b/token.c 17 Jun 2004 04:01:58 -0000
***************
*** 63,68 ****
--- 63,69 ----
/* non-compressing recv token */
static int simple_recv_token(int f,char **data)
{
+ extern int write_batch;
static int residue;
static char *buf;
int n;
***************
*** 74,79 ****
--- 75,82 ----
if (residue == 0) {
int i = read_int(f);
+ if (write_batch)
+ write_batch_delta_file((char *) &i, sizeof(int));
if (i &...