CLOUDSTACK-6181: Set the correct flags when resizing RBD

This commit is contained in:
Wido den Hollander 2014-07-26 11:39:08 +02:00
parent abc0b40acb
commit 7542ffc482
1 changed files with 1 additions and 1 deletions

View File

@ -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) {