Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
clsync
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2015-05-11 21:48:20 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aa640135d0c6c54c065b331655c09eac8042d54e
aa640135
1 parent
837e5fa9
Added "No space left on device" detection
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
sync.c
sync.c
View file @
aa64013
...
...
@@ -2569,14 +2569,14 @@ static inline int rsync_outline(FILE *outf, char *outline, eventinfo_flags_t fla
if
(
flags
&
EVIF_RECURSIVELY
)
{
debug
(
3
,
"Recursively
\"
%s
\"
: Writing to rsynclist:
\"
%s/***
\"
."
,
outline
,
outline
);
fprintf
(
outf
,
"%s/***
\n
"
,
outline
);
critical_on
(
fprintf
(
outf
,
"%s/***
\n
"
,
outline
)
<=
0
);
}
else
if
(
flags
&
EVIF_CONTENTRECURSIVELY
)
{
debug
(
3
,
"Content-recursively
\"
%s
\"
: Writing to rsynclist:
\"
%s/**
\"
."
,
outline
,
outline
);
fprintf
(
outf
,
"%s/**
\n
"
,
outline
);
critical_on
(
fprintf
(
outf
,
"%s/**
\n
"
,
outline
)
<=
0
);
}
else
{
debug
(
3
,
"Non-recursively
\"
%s
\"
: Writing to rsynclist:
\"
%s
\"
."
,
outline
,
outline
);
fprintf
(
outf
,
"%s
\n
"
,
outline
);
critical_on
(
fprintf
(
outf
,
"%s
\n
"
,
outline
)
<=
0
);
}
return
0
;
...
...
@@ -2690,7 +2690,7 @@ int sync_idle_dosync_collectedevents_commitpart(struct dosync_arg *dosync_arg_p)
g_hash_table_foreach_remove
(
indexes_p
->
out_lines_aggr_ht
,
rsync_aggrout
,
dosync_arg_p
);
if
(
dosync_arg_p
->
outf
!=
NULL
)
{
fclose
(
dosync_arg_p
->
outf
);
critical_on
(
fclose
(
dosync_arg_p
->
outf
)
);
dosync_arg_p
->
outf
=
NULL
;
}
...
...
@@ -2851,10 +2851,11 @@ void sync_idle_dosync_collectedevents_listpush(gpointer fpath_gp, gpointer evinf
(
ctx_p
->
flags
[
MODE
]
==
MODE_RSYNCDIRECT
)
||
(
ctx_p
->
flags
[
MODE
]
==
MODE_RSYNCSO
)
))
{
if
(
ctx_p
->
flags
[
SYNCLISTSIMPLIFY
])
fprintf
(
outf
,
"%s
\n
"
,
fpath
);
else
fprintf
(
outf
,
"sync %s %i %s
\n
"
,
ctx_p
->
label
,
evinfo
->
evmask
,
fpath
);
if
(
ctx_p
->
flags
[
SYNCLISTSIMPLIFY
])
{
critical_on
(
fprintf
(
outf
,
"%s
\n
"
,
fpath
)
<=
0
);
}
else
{
critical_on
(
fprintf
(
outf
,
"sync %s %i %s
\n
"
,
ctx_p
->
label
,
evinfo
->
evmask
,
fpath
)
<=
0
);
}
return
;
}
...
...
@@ -2947,7 +2948,7 @@ int sync_idle_dosync_collectedevents(ctx_t *ctx_p, indexes_t *indexes_p) {
#endif
g_hash_table_foreach_remove
(
indexes_p
->
exc_fpath_ht
,
sync_idle_dosync_collectedevents_rsync_exclistpush
,
&
dosync_arg
);
g_hash_table_foreach_remove
(
indexes_p
->
out_lines_aggr_ht
,
rsync_aggrout
,
&
dosync_arg
);
fclose
(
dosync_arg
.
outf
);
critical_on
(
fclose
(
dosync_arg
.
outf
)
);
#ifdef VERYPARANOID
require_strlen_le
(
dosync_arg
.
outf_path
,
PATH_MAX
);
#endif
...
...
Please
register
or
login
to post a comment