Ryo Nakamura
a69115a4dc
add -m coremask option
2022-11-15 19:57:53 +09:00
Ryo Nakamura
e9d5ceb462
add memory barrier to notify monitor thread of copy threads finished
2022-11-13 15:33:45 +09:00
Ryo Nakamura
81a7fbd2d8
add -a nr_ahead option
2022-11-13 15:31:12 +09:00
Ryo Nakamura
cfbbae860c
little trick to make progress bar stable
2022-11-12 17:45:08 +09:00
Ryo Nakamura
756e0759f9
fix buf size in remote to local copy.
...
Too large buffer size for sftp_async_read causes unfinished copy:
sftp_async_read returns 0 althrough data remains.
2022-11-12 17:30:51 +09:00
Ryo Nakamura
71d827d613
fix some thread handling
2022-11-12 16:11:20 +09:00
Ryo Nakamura
8eb9e69c1c
fix incorrect ret handling for read/write
2022-11-08 10:06:30 +00:00
Ryo Nakamura
243bf1fa57
add -H option to disable host key check
...
tests use this option.
2022-11-05 22:46:02 +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
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
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
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
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
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
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
Ryo Nakamura
ec785ff33e
fix stat output
2022-10-23 00:14:28 +09:00
Ryo Nakamura
3a22043f41
copy over multiple connection works, but not checked file integirty
2022-10-22 23:57:36 +09:00
Ryo Nakamura
e5d1f6ec7d
fix help message
2022-10-22 19:04:40 +09:00
Ryo Nakamura
d6685c575b
fix copy from remote to local and add buffer size
2022-10-22 19:02:53 +09:00
Ryo Nakamura
b2ae183c81
implement copy chunk
2022-10-22 18:23:42 +09:00
Ryo Nakamura
ab0bf7e5dc
add atomic refcnt and locks.
...
It might be unnecessary, if open/close can be done without lock.
2022-10-20 20:25:23 +09:00
Ryo Nakamura
808069ab9d
implement chunk fill
2022-10-20 18:58:06 +09:00
Ryo Nakamura
def9cfeba7
implement fill_file
2022-10-16 22:12:03 +09:00
Ryo Nakamura
579629dea2
update usage
2022-10-15 22:19:40 +09:00
Ryo Nakamura
303a9eb974
initial commit
2022-10-15 21:59:25 +09:00