The nova.virt.disk.mount Module

Support for mounting virtual image files

class Mount(image, mount_dir, partition=None, device=None)

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.

device_id_string = None
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.

mode = None
reset_dev()

Reset device paths to allow unmounting.

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.

Previous topic

The nova.virt.disk.loop Module

Next topic

The nova.virt.disk.nbd Module

This Page