Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-02-26 | tiny fix on comment | Ryo Nakamura | |
2022-12-11 | use pthread_cleanup to acquire and release lock | Ryo 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-06 | add ssh_buffer_new_size and ssh_buffer_add_func to libssh | Ryo 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-03 | remove unused code and introduce -b buf_sz option | Ryo Nakamura | |
This commit removes ifdef ASYNC_WRITE. So, mscp always depends on the patched libssh. | |||
2022-11-27 | only the last thread changes dst file permission | Ryo Nakamura | |
2022-11-18 | add O_TRUNC when the first open() for a file | Ryo Nakamura | |
2022-11-18 | remove pr_warn debug | Ryo Nakamura | |
2022-11-18 | fix type of id for sftp_async_write | Ryo Nakamura | |
2022-11-18 | fix when copy multiple sources and various tiny fixes | Ryo Nakamura | |
* when copying multiple sources, target must be directory * add multi-src copy test and parametrize src/dst prefixes * cleanup REAMDE (s/sessions/connections/g) * make error output in copy functions simple | |||
2022-11-17 | fix async handling | Ryo Nakamura | |
2022-11-17 | fix idx increment (typo) and async write improves copy speed! | Ryo Nakamura | |
2022-11-17 | implement local-to-remote copy with async_write | Ryo Nakamura | |
2022-11-13 | add -a nr_ahead option | Ryo Nakamura | |
2022-11-12 | fix buf size in remote to local copy. | Ryo Nakamura | |
Too large buffer size for sftp_async_read causes unfinished copy: sftp_async_read returns 0 althrough data remains. | |||
2022-11-12 | use sftp_async_read for remote to local copy | Ryo Nakamura | |
2022-11-08 | fix incorrect ret handling for read/write | Ryo Nakamura | |
2022-11-05 | create file at the remote although file size is 0 | Ryo Nakamura | |
2022-10-31 | rename dirname if dst dir does not exist | Ryo Nakamura | |
`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-30 | fix on debug compile | Ryo Nakamura | |
2022-10-30 | Merge branch 'main' of github.com:upa/mscp | Ryo Nakamura | |
2022-10-30 | rename sscp to mscp | Ryo Nakamura | |
2022-10-30 | little refactoring for param names | Ryo Nakamura | |
2022-10-30 | fix int overflow | Ryo Nakamura | |
2022-10-30 | use sftp_get_ssh_error | Ryo Nakamura | |
2022-10-29 | change indent from space to tab | Ryo Nakamura | |
2022-10-29 | fix path handling | Ryo Nakamura | |
2022-10-25 | wrap print progress in pprint | Ryo Nakamura | |
2022-10-25 | add copy start and done output | Ryo Nakamura | |
These fputs should be wrapped in a function and protected by a lock. todo. | |||
2022-10-23 | configurable sftp_buf_sz. | Ryo Nakamura | |
default value 131072 is derived from qemu/block/ssh.c. we need more investigaion. | |||
2022-10-23 | cleanup copy codes | Ryo Nakamura | |
2022-10-23 | compilable on linux | Ryo Nakamura | |
2022-10-23 | fix a signifiant bug | Ryo Nakamura | |
2022-10-23 | handle permission on open | Ryo Nakamura | |
2022-10-23 | compilable in linux | Ryo Nakamura | |
2022-10-23 | add progress bar | Ryo Nakamura | |
2022-10-23 | fix stat output | Ryo Nakamura | |
2022-10-22 | copy over multiple connection works, but not checked file integirty | Ryo Nakamura | |
2022-10-22 | fix | Ryo Nakamura | |
2022-10-22 | fix on copy handling | Ryo Nakamura | |
2022-10-22 | fix copy from remote to local and add buffer size | Ryo Nakamura | |
2022-10-22 | implement copy chunk | Ryo Nakamura | |
2022-10-20 | add atomic refcnt and locks. | Ryo Nakamura | |
It might be unnecessary, if open/close can be done without lock. | |||
2022-10-20 | implement chunk fill | Ryo Nakamura | |
2022-10-16 | implement fill_file | Ryo Nakamura | |