]> xenbits.xensource.com Git - libvirt.git/commit
virstoragefile: Introduce virStoragePRDef
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 27 Nov 2017 10:54:33 +0000 (11:54 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 May 2018 07:02:56 +0000 (09:02 +0200)
commit687730540e405fe4da1148c8fe0e162339b0815b
tree88f2fbd6eb3f6802fba8a19fdabdedb5e3e51c14
parent4a3d6ed5ee07d2cbfb6577f3870ef1d947177b67
virstoragefile: Introduce virStoragePRDef

This is a definition that holds information on SCSI persistent
reservation settings. The XML part looks like this:

  <reservations enabled='yes' managed='no'>
    <source type='unix' path='/path/to/qemu-pr-helper.sock' mode='client'/>
  </reservations>

If @managed is set to 'yes' then the <source/> is not parsed.
This design was agreed on here:

https://www.redhat.com/archives/libvir-list/2017-November/msg01005.html

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
docs/schemas/storagecommon.rng
src/conf/domain_conf.c
src/libvirt_private.syms
src/util/virstoragefile.c
src/util/virstoragefile.h
tests/qemuxml2argvdata/disk-virtio-scsi-reservations.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/disk-virtio-scsi-reservations.xml [new symlink]
tests/qemuxml2xmltest.c