コード例 #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)