]> xenbits.xensource.com Git - libvirt.git/commit
parallels: add storage driver
authorDmitry Guryanov <dguryanov@parallels.com>
Wed, 1 Aug 2012 03:46:22 +0000 (11:46 +0800)
committerDaniel Veillard <veillard@redhat.com>
Wed, 1 Aug 2012 03:48:01 +0000 (11:48 +0800)
commitaa296e6c2942fa807bbce88538347aacda10f4b8
tree1b66d5ee89c95225651d99596910171f7cb9dc0a
parente356f6100dec0c537bf7d51957bdbf156beb4ef6
parallels: add storage driver

Parallels Cloud Server has one serious discrepancy with libvirt:
libvirt stores domain configuration files in one place, and storage
files in other places (with the API of storage pools and storage volumes).
Parallels Cloud Server stores all domain data in a single directory,
for example, you may have domain with name fedora-15, which will be
located in '/var/parallels/fedora-15.pvm', and it's hard disk image will be
in '/var/parallels/fedora-15.pvm/harddisk1.hdd'.

I've decided to create storage driver, which produces pseudo-volumes
(xml files with volume description), and they will be 'converted' to
real disk images after attaching to a VM.

So if someone creates VM with one hard disk using virt-manager,
at first virt-manager creates a new volume, and then defines a
domain. We can lookup a volume by path in XML domain definition
and find out location of new domain and size of its hard disk.

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
po/POTFILES.in
src/Makefile.am
src/parallels/parallels_driver.c
src/parallels/parallels_storage.c [new file with mode: 0644]
src/parallels/parallels_utils.c
src/parallels/parallels_utils.h