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
eca2adb4
Commit
eca2adb4
authored
Apr 09, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OK, we can now get phase messages if we fail in send_file_entry
parent
4eea7793
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
flist.c
flist.c
+4
-0
io.c
io.c
+6
-2
rsync.h
rsync.h
+2
-0
No files found.
flist.c
View file @
eca2adb4
...
...
@@ -354,6 +354,8 @@ static void send_file_entry(struct file_struct *file, int f,
return
;
}
io_write_phase
=
"send_file_entry"
;
fname
=
f_name
(
file
);
flags
=
base_flags
;
...
...
@@ -449,6 +451,8 @@ static void send_file_entry(struct file_struct *file, int f,
strlcpy
(
lastname
,
fname
,
MAXPATHLEN
);
lastname
[
MAXPATHLEN
-
1
]
=
0
;
io_write_phase
=
"unknown"
;
}
...
...
io.c
View file @
eca2adb4
...
...
@@ -57,8 +57,12 @@ extern struct stats stats;
* remote instance crashed. Just giving the offset on the stream is
* not very helpful. So instead we try to make io_phase_name point to
* something useful.
*
* @todo Perhaps we want some simple stack functionality, but there's
* no need to overdo it.
**/
const
char
*
io_phase_name
=
"unknown"
;
const
char
*
io_write_phase
=
"unknown"
;
const
char
*
io_read_phase
=
"unknown"
;
/** Ignore EOF errors while reading a module listing if the remote
...
...
@@ -501,7 +505,7 @@ static void writefd_unbuffered(int fd,char *buf,size_t len)
io_multiplexing_close
();
rprintf
(
FERROR
,
RSYNC_NAME
": writefd_unbuffered failed to write %ld bytes: phase
\"
%s
\"
: %s
\n
"
,
(
long
)
len
,
io_
phase_nam
e
,
(
long
)
len
,
io_
write_phas
e
,
strerror
(
errno
));
exit_cleanup
(
RERR_STREAMIO
);
}
...
...
rsync.h
View file @
eca2adb4
...
...
@@ -622,3 +622,5 @@ const char *get_panic_action(void);
#endif
#define UNUSED(x) x __attribute__((__unused__))
const
char
*
io_write_phase
,
*
io_read_phase
;
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