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.virt.disk.mount Module

Support for mounting virtual image files

class nova.virt.disk.mount.Mount(image, mount_dir, partition=None, disable_auto_fsck=False)

Bases: object

Standard mounting operations, that can be overridden by subclasses.

The basic device operations provided are get, map and mount, to be called in that order.

do_mount()

Call the get, map and mnt operations.

do_umount()

Call the unmnt, unmap and unget operations.

get_dev()

Make the image available as a block device in the file system.

map_dev()

Map partitions of the device to the file system namespace.

mnt_dev()

Mount the device into the file system.

unget_dev()

Release the block device from the file system namespace.

unmap_dev()

Remove partitions of the device from the file system namespace.

unmnt_dev()

Unmount the device from the file system.