You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use rclone --fast-list=true check local-storage:path crypt-on-top-of-B2-storage:path, it calls b2_authorize_account and b2_list_buckets twice. Here are the first few API calls, captured with --dump-headers:
2017/08/31 19:07:05 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
2017/08/31 19:07:06 DEBUG : POST /b2api/v1/b2_list_buckets HTTP/1.1
2017/08/31 19:07:06 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
2017/08/31 19:07:06 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
2017/08/31 19:07:07 DEBUG : POST /b2api/v1/b2_list_buckets HTTP/1.1
2017/08/31 19:07:07 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
...lots more b2_list_file_names, followed by some b2_download_file_by_id...
The b2_authorize_account and b2_list_buckets calls are Class C transactions, i.e., the most expensive B2 transaction type. It would be preferable if they were only invoked once per invocation of rclone rather than twice.
The text was updated successfully, but these errors were encountered:
This is to do with the crypt layer checking to see if the argument you passed in points to a file or not.
This isn't particularly easy to fix unfortunately. What it really needs is a Chroot call for a remote so the crypt layer would have to make a whole new remote (call NewFs) whichi s what calls the b2_authorize_account and b2_list_buckets. I made a new issue about Chroot #1644 to think about this.
$ rclone --fast-list ls b2secret: -vv --dump-headers 2>&1 | egrep 'GET|POST'
2017/09/01 10:11:02 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
2017/09/01 10:11:02 DEBUG : POST /b2api/v1/b2_list_buckets HTTP/1.1
2017/09/01 10:11:03 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
2017/09/01 10:11:03 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
2017/09/01 10:11:03 DEBUG : POST /b2api/v1/b2_list_buckets HTTP/1.1
2017/09/01 10:11:04 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
$ rclone --fast-list ls b2:rclone-secrets -vv --dump-headers 2>&1 | egrep 'GET|POST'
2017/09/01 10:11:15 DEBUG : GET /b2api/v1/b2_authorize_account HTTP/1.1
2017/09/01 10:11:16 DEBUG : POST /b2api/v1/b2_list_buckets HTTP/1.1
2017/09/01 10:11:16 DEBUG : POST /b2api/v1/b2_list_file_names HTTP/1.1
When I use
rclone --fast-list=true check local-storage:path crypt-on-top-of-B2-storage:path
, it callsb2_authorize_account
andb2_list_buckets
twice. Here are the first few API calls, captured with--dump-headers
:The
b2_authorize_account
andb2_list_buckets
calls are Class C transactions, i.e., the most expensive B2 transaction type. It would be preferable if they were only invoked once per invocation ofrclone
rather than twice.The text was updated successfully, but these errors were encountered: