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.
This commit is contained in:
Ryo Nakamura
2022-11-12 17:30:51 +09:00
parent 71d827d613
commit 756e0759f9
3 changed files with 39 additions and 18 deletions

View File

@@ -96,10 +96,13 @@ void usage(bool print_help) {
printf(" -n NR_CONNECTIONS number of connections (default: half of # of cpu cores)\n"
" -s MIN_CHUNK_SIZE min chunk size (default: 64MB)\n"
" -S MAX_CHUNK_SIZE max chunk size (default: filesize / nr_conn)\n"
"\n"
" -b SFTP_BUF_SIZE buf size for sftp_read/write (default 131072B)\n"
" -B IO_BUF_SIZE buf size for read/write (default 131072B)\n"
" Note that this value is derived from\n"
" Note that the default value is derived from\n"
" qemu/block/ssh.c. need investigation...\n"
" -b and -B affect only local to remote copy\n"
"\n"
" -v increment verbose output level\n"
" -q disable output\n"
" -D dry run\n"