nova/virt/libvirt/imagebackend.py
def libvirt_info(self, disk_bus, disk_dev, device_type, cache_mode,
            extra_specs, hypervisor_version):
        """Get `LibvirtConfigGuestDisk` filled for this image.

        :disk_dev: Disk bus device name
        :disk_bus: Disk bus type
        :device_type: Device type for this image.
        :cache_mode: Caching mode for this image
        :extra_specs: Instance type extra specs dict.
        """
        info = vconfig.LibvirtConfigGuestDisk()

        # see http://libvirt.org/formatdomain.html
        info.device_type = device_type
        info.driver_name = 'qemu'
        # would like to use passed cache_mode argument, but that
        # inherits from driver._supports_direct_io which checks the
        # local filesystem rather than sheepdog.
        info.driver_cache = 'writethrough'
        info.driver_io = 'threads'
        info.driver_ioeventfd = 'on'
        info.driver_event_idx = 'off'

        info.source_type = 'network'
        info.source_protocol = 'sheepdog'
        info.source_name = self._sheepdog_source_name()

        info.target_bus = disk_bus
        info.target_dev = disk_dev
        return info
Get `LibvirtConfigGuestDisk` filled for this image.

        :disk_dev: Disk bus device name
        :disk_bus: Disk bus type
        :device_type: Device type for this image.
        :cache_mode: Caching mode for this image
        :extra_specs: Instance type extra specs dict.
        
Get `LibvirtConfigGuestDisk` filled for this image.
Get ` LibvirtConfigGuestDisk ` filled for this image .
def libvirt_info(self, disk_bus, disk_dev, device_type, cache_mode,
            extra_specs, hypervisor_version):
        info = vconfig.LibvirtConfigGuestDisk()
        info.device_type = device_type
        info.driver_name = 'qemu'
        info.driver_cache = 'writethrough'
        info.driver_io = 'threads'
        info.driver_ioeventfd = 'on'
        info.driver_event_idx = 'off'
        info.source_type = 'network'
        info.source_protocol = 'sheepdog'
        info.source_name = self._sheepdog_source_name()
        info.target_bus = disk_bus
        info.target_dev = disk_dev
        return info
def libvirt_info ( self , disk_bus , disk_dev , device_type , cache_mode , extra_specs , hypervisor_version ) : info = vconfig . LibvirtConfigGuestDisk ( ) info . device_type = device_type info . driver_name = 'qemu' info . driver_cache = 'writethrough' info . driver_io = 'threads' info . driver_ioeventfd = 'on' info . driver_event_idx = 'off' info . source_type = 'network' info . source_protocol = 'sheepdog' info . source_name = self . _sheepdog_source_name ( ) info . target_bus = disk_bus info . target_dev = disk_dev return info
Get `LibvirtConfigGuestDisk` filled for this image.
Get ` LibvirtConfigGuestDisk ` filled for this image .
"""Get `LibvirtConfigGuestDisk` filled for this image.

        :disk_dev: Disk bus device name
        :disk_bus: Disk bus type
        :device_type: Device type for this image.
        :cache_mode: Caching mode for this image
        :extra_specs: Instance type extra specs dict.
        """ # see http://libvirt.org/formatdomain.html # would like to use passed cache_mode argument, but that # inherits from driver._supports_direct_io which checks the # local filesystem rather than sheepdog.
self
disk_bus
disk_dev
device_type
cache_mode
extra_specs
hypervisor_version
disk_dev
Disk bus device name
Disk bus device name
disk_bus
Disk bus type
Disk bus type
device_type
Device type for this image.
Device type for this image .
cache_mode
Caching mode for this image
Caching mode for this image
extra_specs
Instance type extra specs dict.
Instance type extra specs dict .