kvm.volumes

attach

(attach domain image device)
Attach a image file to domain using device

clear-volumes

(clear-volumes c domain volumes)

create-volume

(create-volume c domain {:keys [id path]} type capacity image device)
Create a volume on pool with given capacity

create-volumes

(create-volumes c domain volumes)

disk?

(disk? loc)

exists?

(exists? c domain image)

find-volume

(find-volume c path)

get-disks

(get-disks root)

into-volume

(into-volume c [dev file type])

list-volumes

(list-volumes c domain)

pool-lookup

(pool-lookup c id)

pools

(pools c)

safe

macro

(safe f)
Volumes might be destroyed as we iterate though, its safe to ignore

update-disks

(update-disks root volumes)

update-file

(update-file volumes node)

volume-disk-xml

(volume-disk-xml file device)
A libvirt disk volume XML

volume-xml

(volume-xml size file name')(volume-xml size unit type' file name' & block?)
A libvirt volume XML

volumes

(volumes pool)