Age | Commit message (Collapse) | Author |
|
and clean-up chunk_sz related parts.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The top-level funtion in a thread should print errors using
priv_get_err(), while lower-level functions should set error messages
using priv_set_err() except that error mesesages should be printed
immediately, e.g., under walk_src_path().
|
|
The exception is that ColumnLimit is 90.
|
|
split message print fuctions (mpr_*), strerrno, and mscp_get/set_error
into print.c/h and strerrno.c/h.
ToDo: revise usages of priv_set_errv and pr_* functions.
|
|
|
|
instead, mpr_* functions print messages to stdout or stderr directly.
|
|
|
|
This commit makes struct path allocation use strndup().
It reduices the memory footprint for struct path per file (issue #8).
|
|
When a source file path is /FILE, its dest path would be dst/ILE.
This commit fixes this issue (#8).
|
|
during scanning src paths due to, e.g., too many levels of
symbolic links, too long path, and permission deineid.
|
|
-I INTERVAL option inserts sleep for interval (seconds) between
SSH connection attempts (issue #7).
|
|
It prevents `mscp localhost:hoge ~/hoge` from truncating the source
file. See https://bugzilla.mindrot.org/show_bug.cgi?id=3431.
https://github.com/upa/mscp/issues/1
|
|
Previously wrapper functions for open(), opendir(), and stat(), etc,
are implemneted in path.h, and now they are in fileops.h and fileops.c.
This commit is a reparation for remote glob.
|
|
Instead of m->threads array, struct mscp_thread instanes are
maintained in m->thread_list. This enables stable counter access
via mscp_get_stats().
|
|
|
|
Each copy thread establishes SSH/SFTP connection to remote host.
A delay is inserted between SSH connecting to the remote.
|
|
|
|
This commit runs mscp_prepare() in a pthread. mscp copy threads
run aysnchronously with mscp_prepare(). So, when mscp_prepare()
has not finished yet (due to too many source files), we can start
to copy files.
|
|
In new walk_src_path, resolve dst path and resolve chunks are
invoked when adding a path.
|
|
ToDo:
main should use pipe to receive messages from libmscp.
|
|
Instead of pr_err(), libmscp uses mscp_set_error() and
applications use mscp_get_errror() to get error message.
|
|
|
|
|
|
|
|
this commit starts to refactor file.h|c to path.h|c and
add mscp.c|h. not completed yet.
|