Fix extend operation of shrinked share in generic driver
If a share is shrank from 10G to 5G, the volume is still 10G.
This share`s size display is 5G, but the share extend newsize
must be > 10G in the old code. So, I think only need to perform
resize_filesystem when the share extend newsize <= volume size.
The volume extension is performed only when new size larger than
volume size.
Reviewed: https:/ /review. openstack. org/393589 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=77a0349adc0 a529b52c50347d1 df3cca21a6dcfd
Committed: https:/
Submitter: Jenkins
Branch: master
commit 77a0349adc0a529 b52c50347d1df3c ca21a6dcfd
Author: Xiaoyang Zhang <email address hidden>
Date: Mon Nov 14 17:08:33 2016 +0800
Fix extend operation of shrinked share in generic driver
If a share is shrank from 10G to 5G, the volume is still 10G. filesystem when the share extend newsize <= volume size.
This share`s size display is 5G, but the share extend newsize
must be > 10G in the old code. So, I think only need to perform
resize_
The volume extension is performed only when new size larger than
volume size.
Change-Id: I7e49b446445b80 05e2eb23e1d4393 54eb24915e0
Close-Bug: #1639188