summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-10fix typoRyo Nakamura
2023-03-10add alpine docker to build mscp as a single binaryRyo Nakamura
The build recipe in docker/alpine-3.17.Dockerfile uses conan to build mscp as a single binary (with statically linked musl). Now the mscp binary is portable!
2023-03-09add conanfile.txt to compile mscp as a single binaryRyo Nakamura
conan cmake build with -DBUILD_CONAN=ON and -DBUILD_STATIC=ON in alpine make mscp as a single binary with statically linked musl.
2023-03-09Merge branch 'main' of github.com:upa/mscp into mainRyo Nakamura
2023-03-09fix cmake: remove modification to libssh CMakeRyo Nakamura
2023-03-04fix dryrun handling on main.cRyo Nakamura
2023-03-04add doxygen for mscp.hRyo Nakamura
2023-03-04remove sigalrm. integrate print messages and progress barRyo Nakamura
2023-03-04tiny fix for clang warningRyo Nakamura
2023-03-04use setitimer instead of alarm, and print message.Ryo Nakamura
print_stat now prints messages per interval. ToDo: - realtime message printing - use timer_create instead of setitimer (mscOS has different one)
2023-03-04compilable on ubuntuRyo Nakamura
2023-03-04accidentaly swap min_chunk_sz and max_chunk_sz...Ryo Nakamura
2023-03-04remove pprint, use message (mpr_*) instead.Ryo Nakamura
ToDo: main should use pipe to receive messages from libmscp.
2023-03-03implementing messaging.Ryo Nakamura
ToDo: remove pprint. mscp should use mpr_* functions, and main.c should use just fprintf(stdout, "\r\033[K" fmt, ...) for printing progress bar.
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-03-03tiny cleanupRyo Nakamura
2023-03-03add mscp_get_statsRyo Nakamura
move progress bar-related functions from mscp.c to main.c.
2023-03-03add mscp_ssh_opts and change -C optargRyo Nakamura
2023-02-27remove test.cRyo Nakamura
2023-02-26add comments to mscp.hRyo Nakamura
2023-02-26tiny fix on commentRyo Nakamura
2023-02-26fix dst path resolveRyo Nakamura
2023-02-26now mscp links libmscpRyo Nakamura
2023-02-26set default params in mscp_initRyo Nakamura
2023-02-26have written mscp.cRyo 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.
2023-02-18README: add instructions for package installRyo Nakamura
2023-02-16bump version to 0.0.6Ryo Nakamura
2023-02-16add -r option (but no effect)Ryo Nakamura
2023-02-16add \n at the final outputRyo Nakamura
2023-01-09fix typo on READMERyo Nakamura
2023-01-05remove unnecessary pr_warnRyo Nakamura
2022-12-26update README.mdRyo Nakamura
2022-12-11Update README.mdRyo Nakamura
2022-12-11add 'z' to tar in release.yml...Ryo Nakamura
and fix typo in README
2022-12-11update README.md. add demo movieRyo Nakamura
2022-12-11bump version to 0.0.5 and update READMERyo Nakamura
2022-12-11set default nr_threads to floor(log(cores) * 2) + 1)Ryo Nakamura
This change prevents mscp from establishing too many ssh connections on many-core machines in default.
2022-12-11use pthread_cleanup to acquire and release lockRyo Nakamura
In chunk_prepare(), if multiple threads wait for acquiring f->lock, and then pthread_cancel() is called, the waiting threads are never canceled because pthread_mutex_lock() is not a cancellation point. So, use pthread_cleanup_push/pop to release the lock.
2022-12-10allocate headroom for SFTP headerRyo Nakamura
This commit makes ssh_buffer_new_size() can insert headroom. This headroom can eliminate memcpy involved in ssh_buffer_prepend_data() for inserting SFTP common header.
2022-12-08set default NR_AHEAD to 32Ryo Nakamura
2022-12-06fix final progress outputRyo Nakamura
2022-12-06add ssh_buffer_new_size and ssh_buffer_add_func to libsshRyo Nakamura
sftp_async_write() with these functions reduces 1. realloc_buffer by ssh_buffer_new_size() 2. memcpy from read data to ssh buffer by ssh_buffer_add_func()
2022-12-05change prompt for ssh key passphraseRyo Nakamura
2022-12-05reuse ctrl sftp session for the first copy threadRyo Nakamura
2022-12-05update libssh build optionsRyo Nakamura
2022-12-04set TCP_NODELAY by default and introduce -N option to disable itRyo Nakamura
2022-12-03remove unused code and introduce -b buf_sz optionRyo Nakamura
This commit removes ifdef ASYNC_WRITE. So, mscp always depends on the patched libssh.
2022-12-02little cleanupRyo Nakamura