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
efa95a18
Commit
efa95a18
authored
Jul 20, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call map_file() with its new block_size arg.
parent
51bd4f0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
checksum.c
checksum.c
+3
-2
sender.c
sender.c
+2
-3
No files found.
checksum.c
View file @
efa95a18
...
...
@@ -99,9 +99,10 @@ void file_checksum(char *fname,char *sum,OFF_T size)
memset
(
sum
,
0
,
MD4_SUM_LENGTH
);
fd
=
do_open
(
fname
,
O_RDONLY
,
0
);
if
(
fd
==
-
1
)
return
;
if
(
fd
==
-
1
)
return
;
buf
=
map_file
(
fd
,
size
);
buf
=
map_file
(
fd
,
size
,
CSUM_CHUNK
);
mdfour_begin
(
&
m
);
...
...
sender.c
View file @
efa95a18
...
...
@@ -175,8 +175,7 @@ void send_files(struct file_list *flist, int f_out, int f_in)
initial_stats
=
stats
;
s
=
receive_sums
(
f_in
);
if
(
!
s
)
{
if
(
!
(
s
=
receive_sums
(
f_in
)))
{
io_error
|=
IOERR_GENERAL
;
rprintf
(
FERROR
,
"receive_sums failed
\n
"
);
return
;
...
...
@@ -210,7 +209,7 @@ void send_files(struct file_list *flist, int f_out, int f_in)
return
;
}
mbuf
=
st
.
st_size
?
map_file
(
fd
,
st
.
st_size
)
:
NULL
;
mbuf
=
st
.
st_size
?
map_file
(
fd
,
st
.
st_size
,
s
->
blength
)
:
NULL
;
if
(
verbose
>
2
)
{
rprintf
(
FINFO
,
"send_files mapped %s of size %.0f
\n
"
,
...
...
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