Home | Trees | Indices | Help |
---|
|
object --+ | Disk
Virtual disk.
Nested Classes | |
Partition |
Instance Methods | |||
|
|||
string |
|
||
|
|||
|
|||
|
|||
|
|||
string |
|
||
number |
|
||
|
|||
|
|||
string |
|
||
Inherited from |
Instance Variables | |
vm The hypervisor to which the disk belongs. |
|
filename The filename of the disk image. |
|
partitions The list of partitions on the disk. |
|
preallocated Whether the file existed already (True if it did, False if we had to create it). |
|
size The size of the disk. |
|
format_type The format type of the disks. |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Creates the disk image (if it doesn't already exist). Once this method returns succesfully, filename can be expected to points to point to whatever holds the virtual disk (be it a file, partition, logical volume, etc.). |
Partitions the disk image. First adds a partition table and then adds the individual partitions. Should only be called once and only after you've added all partitions. |
Create loop devices corresponding to the partitions. Once this has returned succesfully, each partition's map device is set as its filename attribute. Call this after partition. |
|
|
Destroy all mapping devices Unsets Partitions' and Filesystems' filename attribute |
Add a partition to the disk
|
Convert the disk image
|
Instance Variable Details |
partitionsThe list of partitions on the disk. Is kept in order by add_part. |
sizeThe size of the disk. For preallocated disks, this is detected. |
format_typeThe format type of the disks. Only used for converted disks. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 16 14:11:29 2011 | http://epydoc.sourceforge.net |