Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
a72ba0cf
Commit
a72ba0cf
authored
Apr 20, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call the new {read,write}_varlong30() names for the long-int
functions that are protocol sensitive.
parent
ba59bd68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
main.c
main.c
+17
-16
No files found.
main.c
View file @
a72ba0cf
...
...
@@ -21,6 +21,7 @@
*/
#include "rsync.h"
#include "io.h"
#if defined CONFIG_LOCALE && defined HAVE_LOCALE_H
#include <locale.h>
#endif
...
...
@@ -190,12 +191,12 @@ static void handle_stats(int f)
if
(
am_server
)
{
if
(
am_sender
)
{
write_
longint
(
f
,
total_read
);
write_
longint
(
f
,
total_written
);
write_
longint
(
f
,
stats
.
total_size
);
write_
varlong30
(
f
,
total_read
,
3
);
write_
varlong30
(
f
,
total_written
,
3
);
write_
varlong30
(
f
,
stats
.
total_size
,
3
);
if
(
protocol_version
>=
29
)
{
write_
longint
(
f
,
stats
.
flist_buildtime
);
write_
longint
(
f
,
stats
.
flist_xfertime
);
write_
varlong30
(
f
,
stats
.
flist_buildtime
,
3
);
write_
varlong30
(
f
,
stats
.
flist_xfertime
,
3
);
}
}
return
;
...
...
@@ -208,22 +209,22 @@ static void handle_stats(int f)
else
if
(
!
am_sender
)
{
/* Read the first two in opposite order because the meaning of
* read/write swaps when switching from sender to receiver. */
total_written
=
read_
longint
(
f
);
total_read
=
read_
longint
(
f
);
stats
.
total_size
=
read_
longint
(
f
);
total_written
=
read_
varlong30
(
f
,
3
);
total_read
=
read_
varlong30
(
f
,
3
);
stats
.
total_size
=
read_
varlong30
(
f
,
3
);
if
(
protocol_version
>=
29
)
{
stats
.
flist_buildtime
=
read_
longint
(
f
);
stats
.
flist_xfertime
=
read_
longint
(
f
);
stats
.
flist_buildtime
=
read_
varlong30
(
f
,
3
);
stats
.
flist_xfertime
=
read_
varlong30
(
f
,
3
);
}
}
else
if
(
write_batch
)
{
/* The --read-batch process is going to be a client
* receiver, so we need to give it the stats. */
write_
longint
(
batch_fd
,
total_read
);
write_
longint
(
batch_fd
,
total_written
);
write_
longint
(
batch_fd
,
stats
.
total_size
);
write_
varlong30
(
batch_fd
,
total_read
,
3
);
write_
varlong30
(
batch_fd
,
total_written
,
3
);
write_
varlong30
(
batch_fd
,
stats
.
total_size
,
3
);
if
(
protocol_version
>=
29
)
{
write_
longint
(
batch_fd
,
stats
.
flist_buildtime
);
write_
longint
(
batch_fd
,
stats
.
flist_xfertime
);
write_
varlong30
(
batch_fd
,
stats
.
flist_buildtime
,
3
);
write_
varlong30
(
batch_fd
,
stats
.
flist_xfertime
,
3
);
}
}
}
...
...
@@ -727,7 +728,7 @@ static int do_recv(int f_in, int f_out, char *local_name)
handle_stats
(
f_in
);
send_msg
(
MSG_DONE
,
""
,
1
);
write_
longint
(
error_pipe
[
1
],
stats
.
total_read
);
write_
varlong
(
error_pipe
[
1
],
stats
.
total_read
,
3
);
io_flush
(
FULL_FLUSH
);
/* Handle any keep-alive packets from the post-processing work
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment