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]
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]
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)
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)