mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6181: Set the correct flags when resizing RBD
This commit is contained in:
parent
abc0b40acb
commit
7542ffc482
|
|
@ -1880,7 +1880,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
StorageVol v = conn.storageVolLookupByPath(path);
|
||||
int flags = 0;
|
||||
|
||||
if (conn.getLibVirVersion() > 1001000 && vol.getFormat() == PhysicalDiskFormat.RAW) {
|
||||
if (conn.getLibVirVersion() > 1001000 && vol.getFormat() == PhysicalDiskFormat.RAW && pool.getType() != StoragePoolType.RBD) {
|
||||
flags = 1;
|
||||
}
|
||||
if (shrinkOk) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue