summaryrefslogtreecommitdiff
path: root/src/path.h
AgeCommit message (Collapse)Author
2024-04-10add -L limit bitrate option (#14)Ryo Nakamura
2024-02-17add checkpoint.c and .hRyo Nakamura
2024-02-11little cleanupRyo Nakamura
2024-02-11change chunk_pool from list to poolRyo Nakamura
2024-02-11change path_list to path_poolRyo Nakamura
2024-02-06add .clang-format from Linux kernel and format sourcesRyo Nakamura
The exception is that ColumnLimit is 90.
2024-02-06refactor error message-related functionsRyo Nakamura
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.
2024-02-06add -p option, preserving file timestampsRyo Nakamura
2024-02-04do not passing msg_fp via mscp optsRyo Nakamura
instead, mpr_* functions print messages to stdout or stderr directly.
2024-01-18add SPDX-License-Identifier to source filesRyo Nakamura
2024-01-18don't allocate char[PATH_MAX] for each fileRyo Nakamura
This commit makes struct path allocation use strndup(). It reduices the memory footprint for struct path per file (issue #8).
2023-11-25add -I interval optionRyo Nakamura
-I INTERVAL option inserts sleep for interval (seconds) between SSH connection attempts (issue #7).
2023-08-03cleanup wrappers for file operationsRyo Nakamura
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.
2023-05-07mscp: maintain mscp_thread structs in listRyo Nakamura
Instead of m->threads array, struct mscp_thread instanes are maintained in m->thread_list. This enables stable counter access via mscp_get_stats().
2023-03-15cleanup message print functionsRyo Nakamura
2023-03-14cleanup mscp_prepare-related codeRyo Nakamura
2023-03-13mscp_prepare() scans source paths in a thread.Ryo Nakamura
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.
2023-03-13revise walk_src_path.Ryo Nakamura
In new walk_src_path, resolve dst path and resolve chunks are invoked when adding a path.
2023-03-04remove pprint, use message (mpr_*) instead.Ryo Nakamura
ToDo: main should use pipe to receive messages from libmscp.
2023-03-03add message.h and message.c, mscp_set|get_error()Ryo Nakamura
Instead of pr_err(), libmscp uses mscp_set_error() and applications use mscp_get_errror() to get error message.
2023-02-26fix dst path resolveRyo Nakamura
2023-02-26now mscp links libmscpRyo Nakamura
2023-02-25add copy-related functions to pathRyo Nakamura
2023-02-25start to impliment mscp as a libraryRyo Nakamura
this commit starts to refactor file.h|c to path.h|c and add mscp.c|h. not completed yet.