Commit Graph

63 Commits

Author SHA1 Message Date
Ryo Nakamura
edb4bfd10f Create cmake.yml
add build test by github actions
2022-11-05 21:34:59 +09:00
Ryo Nakamura
6f7f564315 update README for test 2022-11-05 21:29:26 +09:00
Ryo Nakamura
fc56c53d04 add install-build-deps.sh and fix docker build procedure 2022-11-05 21:26:34 +09:00
Ryo Nakamura
6e6e5066c7 create file at the remote although file size is 0 2022-11-05 19:13:53 +09:00
Ryo Nakamura
24126c927d mv LICENSE.md to LICENSE 2022-11-01 02:07:55 +09:00
Ryo Nakamura
b8ee960732 add test_transfer_zero_bytes 2022-11-01 00:34:40 +09:00
Ryo Nakamura
d62fc2cddd do not print progress when total bytes transferred is 0 2022-10-31 15:30:42 +00:00
Ryo Nakamura
7039b84c4f capture retval from copy threads 2022-11-01 00:17:05 +09:00
Ryo Nakamura
07b9d8ca55 add ctest to run pytest 2022-11-01 00:02:34 +09:00
Ryo Nakamura
93b02300d5 add (not complete) end-to-end test with pytest 2022-10-31 23:27:28 +09:00
Ryo Nakamura
44ed580f4d add rename-logic.py 2022-10-31 22:55:43 +09:00
Ryo Nakamura
926688e849 rename dirname if dst dir does not exist
`scp remote:srcdir dstdir` renames srcdir to dstdir if dstdir does
not exist. If dstdir exists, it creates dstdir/srcdir.
This commit imitates this behavior.
2022-10-31 22:51:39 +09:00
Ryo Nakamura
77651305fd add custom_target to build mscp in contaners through cmake 2022-10-31 02:40:54 +09:00
Ryo Nakamura
a67dd1957d update README 2022-10-31 00:11:13 +09:00
Ryo Nakamura
3de70300f7 update README. add rhel instruction and fix build steps 2022-10-30 23:51:53 +09:00
Ryo Nakamura
548565d888 add docker files 2022-10-30 23:37:10 +09:00
Ryo Nakamura
6f37260411 update CMakeLists.txt for build at centos 2022-10-30 23:30:54 +09:00
Ryo Nakamura
db8dba23f2 use /etc/os-release instead of lsb_release 2022-10-30 22:55:57 +09:00
Ryo Nakamura
02eef1be92 wrap build options inside if 2022-10-30 22:02:47 +09:00
Ryo Nakamura
e997d692c2 set nr_threads to # of chunks if # of chunks is small 2022-10-30 12:27:58 +00:00
Ryo Nakamura
453e8f27ce add cpack to build debian package 2022-10-30 12:17:17 +00:00
Ryo Nakamura
2bcbdd2292 add install to cmake 2022-10-30 17:58:56 +09:00
Ryo Nakamura
abd6bf2bbf Merge branch 'main' of github.com:upa/mscp 2022-10-30 07:41:58 +00:00
Ryo Nakamura
96c10a700a fix on debug compile 2022-10-30 07:41:49 +00:00
Ryo Nakamura
0fb0284ff9 fix typo 2022-10-30 16:34:16 +09:00
Ryo Nakamura
7e65006e22 Create LICENSE.md 2022-10-30 16:08:10 +09:00
Ryo Nakamura
6e37331b4a add README 2022-10-30 15:57:24 +09:00
Ryo Nakamura
b9f44bb030 Merge branch 'main' of github.com:upa/mscp 2022-10-30 15:22:17 +09:00
Ryo Nakamura
c495f6b89b rename sscp to mscp 2022-10-30 15:20:05 +09:00
Ryo Nakamura
65bdbdaede little refactoring for param names 2022-10-30 06:13:02 +00:00
Ryo Nakamura
5d848ccab1 fix int overflow 2022-10-30 05:47:21 +00:00
Ryo Nakamura
37c37990f5 use sftp_get_ssh_error 2022-10-30 00:02:21 +09:00
Ryo Nakamura
c76fa3141d change indent from space to tab 2022-10-29 23:48:50 +09:00
Ryo Nakamura
ff697aa514 fix path handling 2022-10-29 23:36:12 +09:00
Ryo Nakamura
47f6983148 wrap print progress in pprint 2022-10-25 01:47:39 +09:00
Ryo Nakamura
c83927cd5a add copy start and done output
These fputs should be wrapped in a function and protected by a lock. todo.
2022-10-25 00:14:47 +09:00
Ryo Nakamura
7ca4a85b76 fix miss flag handling for threads[n].finished 2022-10-25 00:04:59 +09:00
Ryo Nakamura
8d7e6fe016 todo: consider smp for counters 2022-10-24 23:50:00 +09:00
Ryo Nakamura
962542bd9c adjust order of thread spawning 2022-10-23 21:53:41 +09:00
Ryo Nakamura
79e717d1ed configurable sftp_buf_sz.
default value 131072 is derived from qemu/block/ssh.c.
we need more investigaion.
2022-10-23 21:43:44 +09:00
Ryo Nakamura
e6339bf464 cleanup copy codes 2022-10-23 19:11:07 +09:00
Ryo Nakamura
0213b316c5 compilable on linux 2022-10-23 16:42:20 +09:00
Ryo Nakamura
7c18d42004 bps to byte/s 2022-10-23 16:10:07 +09:00
Ryo Nakamura
03a20c77d8 spawn monitor thread before copy threads 2022-10-23 16:05:49 +09:00
Ryo Nakamura
77e977ce8e fix a signifiant bug 2022-10-23 16:04:50 +09:00
Ryo Nakamura
b79e20e54d handle permission on open 2022-10-23 16:00:55 +09:00
Ryo Nakamura
d11ac58f4b compilable in linux 2022-10-23 15:51:21 +09:00
Ryo Nakamura
99b2bca7e5 fix usage 2022-10-23 01:21:44 +09:00
Ryo Nakamura
3849cc6bc6 fix on progress bar 2022-10-23 01:16:03 +09:00
Ryo Nakamura
75a1d8e737 add progress bar 2022-10-23 01:08:40 +09:00