Exemplo n.º 1
0
 def getMaximumSupportedDomains(self):
     msdInfo = self.masterDomain.getInfo()
     msdType = sd.name2type(msdInfo["type"])
     msdVersion = int(msdInfo["version"])
     if msdType in sd.BLOCK_DOMAIN_TYPES and \
             msdVersion in blockSD.VERS_METADATA_LV:
         return MAX_DOMAINS
     else:
         return config.getint("irs", "maximum_domains_in_pool")
Exemplo n.º 2
0
 def getMaximumSupportedDomains(self):
     msdInfo = self.masterDomain.getInfo()
     msdType = sd.name2type(msdInfo["type"])
     msdVersion = int(msdInfo["version"])
     if msdType in sd.BLOCK_DOMAIN_TYPES and \
             msdVersion in blockSD.VERS_METADATA_LV:
         return MAX_DOMAINS
     else:
         return config.getint("irs", "maximum_domains_in_pool")
Exemplo n.º 3
0
 def pad_memory_volume(memory_vol_path, sd_uuid):
     sd_type = sd.name2type(
         self.vm.cif.irs.getStorageDomainInfo(sd_uuid)['info']['type'])
     if sd_type in sd.FILE_DOMAIN_TYPES:
         iop = oop.getProcessPool(sd_uuid)
         iop.fileUtils.padToBlockSize(memory_vol_path)