diff options
author | Daniel Wakefield <daniel.wakefield@hp.com> | 2014-10-06 15:24:19 +0100 |
---|---|---|
committer | Daniel Wakefield <daniel.wakefield@hp.com> | 2014-10-10 12:57:35 +0100 |
commit | 5f89dcc46ea0ae126c9ebc328d6569da839336cd (patch) | |
tree | c60cd64cc0d604015bae4a0cdb865f65ba538149 /swiftclient/multithreading.py | |
parent | bb4d2ab59c4de9389667eeed255642f51e276f1e (diff) | |
download | python-swiftclient-5f89dcc46ea0ae126c9ebc328d6569da839336cd.tar.gz |
Allow segment size to be specified in a human readable way.
Instead of always specifying segment size in bytes the user
can now use B,K,M or G as suffixes for the corresponding
size.
Conversion is done with Binary units (1024) rather than SI
units (1000).
e.g
swift upload test_container -S 1073741824 large_file
can now be written
swift upload test_container -S 1G large_file
The change is backwards compatible as it ignores arguments to -S
that don't have a valid suffix.
Updated unit tests and help message.
Change-Id: I6314b4e45cf2fbffde2fe57a02df77a25e911e84
Diffstat (limited to 'swiftclient/multithreading.py')
0 files changed, 0 insertions, 0 deletions