diff options
author | 2015-11-10 08:49:08 +0000 | |
---|---|---|
committer | 2015-11-10 08:49:08 +0000 | |
commit | 228b9531aa8aecf486aadc24c0d68aaf5b6cd04b (patch) | |
tree | 1d5e3c3eab8fc80760e9378809f0f55cdfde27d2 /deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh | |
parent | e314a19fdb051f21908668b176e3950f640ccfe4 (diff) | |
parent | 1af586830a464edcac67e2c7bae601f38ada03d3 (diff) |
Merge "when using loop files for cinder volumes, the file size must be 512-byte alignment"
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh')
-rw-r--r-- | deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh b/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh index 9670da12..55041c6e 100644 --- a/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh +++ b/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh @@ -2,5 +2,5 @@ size=`df /var | awk '$3 ~ /[0-9]+/ { print $4 }'`; if [[ $size -gt 2000000000 ]]; then echo -n 2000000000000; else - echo -n $((size * 1000)); + echo -n $((size * 1000 / 512 * 512)); fi |