예제 #1
0
파일: blockVolume.py 프로젝트: minqf/vdsm
 def getImageVolumes(cls, sdUUID, imgUUID):
     """
     Fetch the list of the Volumes UUIDs, not including the shared base
     (template)
     """
     lvs = lvm.lvsByTag(sdUUID, "%s%s" % (sc.TAG_PREFIX_IMAGE, imgUUID))
     return [lv.name for lv in lvs]
예제 #2
0
파일: blockVolume.py 프로젝트: nirs/vdsm
 def getImageVolumes(cls, sdUUID, imgUUID):
     """
     Fetch the list of the Volumes UUIDs, not including the shared base
     (template)
     """
     lvs = lvm.lvsByTag(sdUUID, "%s%s" % (sc.TAG_PREFIX_IMAGE, imgUUID))
     return [lv.name for lv in lvs]
예제 #3
0
파일: blockVolume.py 프로젝트: minqf/vdsm
    def getChildren(self):
        """ Return children volume UUIDs.

        Children can be found in any image of the volume SD.
        """
        lvs = lvm.lvsByTag(self.sdUUID,
                           "%s%s" % (sc.TAG_PREFIX_PARENT, self.volUUID))
        return tuple(lv.name for lv in lvs)
예제 #4
0
파일: blockVolume.py 프로젝트: nirs/vdsm
    def getChildren(self):
        """ Return children volume UUIDs.

        Children can be found in any image of the volume SD.
        """
        lvs = lvm.lvsByTag(self.sdUUID,
                           "%s%s" % (sc.TAG_PREFIX_PARENT, self.volUUID))
        return tuple(lv.name for lv in lvs)