]> xenbits.xensource.com Git - libvirt.git/commit
storageVolCreateXMLFrom: Allow multiple accesses to origvol
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Apr 2014 13:16:20 +0000 (15:16 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 6 May 2014 08:24:44 +0000 (10:24 +0200)
commiteb54426659888bf04fdef409afaccf8c0fd199a0
treec868a0b7650fc120556a7a5c8dd6ca7153bc180e
parentc3f6882383eec6adc3a42440ca24834b0f1c0575
storageVolCreateXMLFrom: Allow multiple accesses to origvol

When creating a new volume, it is possible to copy data into it from
another already existing volume (referred to as @origvol). Obviously,
the read-only access to @origvol is required, which is thread safe
(probably not performance-wise though). However, with current code
both @newvol and @origvol are marked as building for the time of
copying data from the @origvol to @newvol. The rationale behind
is to disallow some operations on both @origvol and @newvol, e.g.
vol-wipe, vol-delete, vol-download. While it makes sense to not allow
such operations on partly copied mirror, but it doesn't make sense to
disallow vol-create or vol-download on the source (@origvol).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/storage_conf.h
src/storage/storage_driver.c