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
3ac830b9
Commit
3ac830b9
authored
Dec 28, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few minor tweaks to handle the newest variable names.
parent
f3d6d480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
hlink.c
hlink.c
+7
-7
No files found.
hlink.c
View file @
3ac830b9
...
...
@@ -33,12 +33,12 @@ extern int remove_source_files;
extern
int
stdout_format_has_i
;
extern
int
maybe_ATTRS_REPORT
;
extern
char
*
basis_dir
[];
extern
struct
file_list
*
the_file_
list
;
extern
struct
file_list
*
cur_f
list
;
#ifdef SUPPORT_HARD_LINKS
#define HASH_LOAD_LIMIT(size) ((size)*3/4)
#define FPTR(i) (
the_file_
list->files[i])
#define FPTR(i) (
cur_f
list->files[i])
struct
ihash_table
{
int32
size
;
...
...
@@ -251,10 +251,10 @@ void match_hard_links(void)
int
i
,
ndx_count
=
0
;
int32
*
ndx_list
;
if
(
!
(
ndx_list
=
new_array
(
int32
,
the_file_
list
->
count
)))
if
(
!
(
ndx_list
=
new_array
(
int32
,
cur_f
list
->
count
)))
out_of_memory
(
"match_hard_links"
);
for
(
i
=
0
;
i
<
the_file_
list
->
count
;
i
++
)
{
for
(
i
=
0
;
i
<
cur_f
list
->
count
;
i
++
)
{
if
(
F_IS_HLINKED
(
FPTR
(
i
)))
ndx_list
[
ndx_count
++
]
=
i
;
}
...
...
@@ -285,7 +285,7 @@ static int maybe_hard_link(struct file_struct *file, int ndx,
file
->
flags
|=
FLAG_HLINK_DONE
;
return
0
;
}
if
(
make_backups
)
{
if
(
make_backups
>
0
)
{
if
(
!
make_backup
(
fname
))
return
-
1
;
}
else
if
(
robust_unlink
(
fname
))
{
...
...
@@ -322,13 +322,13 @@ int hard_link_check(struct file_struct *file, int ndx, const char *fname,
/* Is the previous link is not complete yet? */
if
(
!
(
prev_file
->
flags
&
FLAG_HLINK_DONE
))
{
/* Is the previous link being transferred? */
if
(
prev_file
->
flags
&
FLAG_SENT
)
{
if
(
prev_file
->
flags
&
FLAG_
FILE_
SENT
)
{
/* Add ourselves to the list of files that will be
* updated when the transfer completes, and mark
* ourself as waiting for the transfer. */
F_HL_PREV
(
file
)
=
F_HL_PREV
(
prev_file
);
F_HL_PREV
(
prev_file
)
=
ndx
;
file
->
flags
|=
FLAG_SENT
;
file
->
flags
|=
FLAG_
FILE_
SENT
;
return
1
;
}
return
0
;
...
...
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