Always use new_size when extend

Always use new_size when extend.
Closes-Bug: #1909951

Change-Id: Ic5faa887448f363bb4d91bccfe8e035a06936454
This commit is contained in:
shews 2021-01-04 08:55:15 +00:00
parent 249904842c
commit fbc4ecb640
2 changed files with 8 additions and 1 deletions

View File

@ -667,7 +667,7 @@ class GenericShareDriver(driver.ExecuteMixin, driver.ShareDriver):
server_details['instance_id'],
volume)
self._resize_filesystem(server_details, volume)
self._resize_filesystem(server_details, volume, new_size=new_size)
self._mount_device(share, server_details, volume)
helper.restore_access_after_maintenance(server_details,
share['name'])

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixed a bug that if extend a volume after shrink it under generic
driver, it may have a wrong real size. Please see
`Launchpad bug <https://bugs.launchpad.net/manila/+bug/1909951>`_
for more details.