This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.block_device Module

nova.block_device.ephemeral_num(ephemeral_name)
nova.block_device.is_ephemeral(device_name)
nova.block_device.is_swap_or_ephemeral(device_name)
nova.block_device.mappings_prepend_dev(mappings)

Prepend ‘/dev/’ to ‘device’ entry of swap/ephemeral virtual type

nova.block_device.properties_root_device_name(properties)

get root device name from image meta data. If it isn’t specified, return None.

nova.block_device.strip_dev(device_name)

remove leading ‘/dev/’