Reviewed: https://review.openstack.org/174291 Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=3fe6adbe7d3e2009c09dd0b8516c501d50fdf25d Submitter: Jenkins Branch: master
commit 3fe6adbe7d3e2009c09dd0b8516c501d50fdf25d Author: Lucian Petrut <email address hidden> Date: Fri Mar 27 15:00:28 2015 +0200
Windows SMBFS: Fix image resize errors during volume creation
When creating volumes from images or snapshots, the corresponding virtual disk image is resized up to the volume size.
At the moment, the resize is performed even if the image already has the requested size. This can raise an excepion in some environments.
This patch checks the image size and performs the resize only if it's required.
Change-Id: Ib65f0e8d69f93ae21975eb46ba24e085c06e4e34 Closes-Bug: #1437306
Reviewed: https:/ /review. openstack. org/174291 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=3fe6adbe7d3 e2009c09dd0b851 6c501d50fdf25d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3fe6adbe7d3e200 9c09dd0b8516c50 1d50fdf25d
Author: Lucian Petrut <email address hidden>
Date: Fri Mar 27 15:00:28 2015 +0200
Windows SMBFS: Fix image resize errors during volume creation
When creating volumes from images or snapshots, the corresponding
virtual disk image is resized up to the volume size.
At the moment, the resize is performed even if the image already
has the requested size. This can raise an excepion in some
environments.
This patch checks the image size and performs the resize only if
it's required.
Change-Id: Ib65f0e8d69f93a e21975eb46ba24e 085c06e4e34
Closes-Bug: #1437306