Package VMBuilder :: Module disk
[frames] | no frames]

Module disk

source code

Classes
  Disk
Virtual disk.
  Filesystem
Functions
 
parse_size(size_str)
Takes a size like qemu-img would accept it and returns the size in MB
source code
 
str_to_type(type) source code
 
rootpart(disks)
Returns the partition which contains the root dir
source code
 
bootpart(disks)
Returns the partition which contains /boot
source code
 
path_to_partition(disks, path) source code
 
create_filesystems(vm) source code
 
create_partitions(vm) source code
 
get_ordered_filesystems(vm)
Returns filesystems (self hosted as well as contained in partitions in an order suitable for mounting them
source code
 
get_ordered_partitions(disks)
Returns partitions from disks in an order suitable for mounting them
source code
 
devname_to_index(devname) source code
 
devname_to_index_rec(devname) source code
 
index_to_devname(index, suffix='') source code
 
detect_size(filename) source code
 
qemu_img_path() source code
 
vbox_manager_path() source code
Variables
  TYPE_EXT2 = 0
  TYPE_EXT3 = 1
  TYPE_XFS = 2
  TYPE_SWAP = 3
  TYPE_EXT4 = 4
  str_to_type_map = {'ext2': 0, 'ext3': 1, 'ext4': 4, 'linux-swa...
  __package__ = 'VMBuilder'
Variables Details

str_to_type_map

Value:
{'ext2': 0,
 'ext3': 1,
 'ext4': 4,
 'linux-swap': 3,
 'swap': 3,
 'xfs': 2}