sys/tool/vbox: Library Dependencies
Location for storing VM data
Location for storing HD images
Location for storing ISO images
Default OS type (see vbox_manage list ostypes)
Default SATA controller settings
Default IDE controller settings
Default size of new disk (in MB)
vbox_data_typesList of registered data types
vbox_data_initInitialize data directories
vbox_data_listList contents of directory stored in $1
vbox_data_path$1 - data type
$2 - name
vbox_data_existsReturns success if data file exists
$1 - data type
$2 - name
$1 - command line
$2 - command verb
$3 - data type (e.g. "hd")
$4 - data term (e.g "image")
... - data names (to be transformed to filenames)
$1 - data type (e.g. "hd")
$2 - data term (e.g "image")
... - names
$1 - data type (e.g. "hd")
$2 - data term (e.g "image")
$3 - src
$4 - tgt
vbox_data_rm hd 'disk image' "$@"
vbox_mounttab_addAdd an entry to the mounttab
vbox_mounttab_removeRemove an entry from the mounttab
vbox_mounttab_devicesList of NBD devices being used
vbox_mounttab_deviceFind NBD device for given HD image
vbox_mounttab_device_nextdevse array index
next device id
skip devices that are bigger than the next id being considered
skip ids if the devices are in-use
vbox_mounttab_partitionsList all partition:path pairs for the image
vbox_mounttab_partitionFind partition mount point
if we need to mount the image, remember we did it
run fdisk on image device
if we mounted it, umount it
vbox_hd_mount_imageInternal helper for mounting HD image devices
vbox_hd_image_umountInternal helper for umounting an HD image device
vbox_hd_partition_mountMount an image partition
vbox_hd_partition_umountcheck the device number again
no partitions remain mounted, unmount the image