]> xenbits.xensource.com Git - libvirt.git/commit
qemu_driver: Introduce <filesystem/> support in device attach/detach
authorMatthieu Coudron <mattator@gmail.com>
Thu, 6 Feb 2014 14:30:07 +0000 (15:30 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Feb 2014 16:20:03 +0000 (17:20 +0100)
commit0778fc1ab9c39bb989d168ec44a980c3db943fca
tree650623b4566c6f4cfe5f4847f1f8924410a0e1b2
parent8fc98ac8cfbd092bf8142a0063031d69584caf9b
qemu_driver: Introduce <filesystem/> support in device attach/detach

This commit allows to attach/detach a <filesystem> device in qemu. For
this purpose I'm introducing two new functions: virDomainFSInsert() and
virDomainFSRemove() and adding necessary code in the qemu driver.  It
compares filesystems based on their "destination" folder. So if two
filesystems share the same destination, they are considered equal and
the qemu driver would reject the insertion.

Signed-off-by: Matthieu Coudron <mattator@gmail.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_driver.c