scsi: add multipath support to qemu-pr-helper
commitfe8fc5ae5c808e037fa4746cbfeb3c07ffe0af81
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Aug 2017 04:50:55 +0000 (22 06:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Sep 2017 19:07:27 +0000 (22 21:07 +0200)
tree973ce75621cb47f79167bde4e48bdc357ed58bde
parentb855f8d175a0a26c9798cbc5962bb8c0d9538231
scsi: add multipath support to qemu-pr-helper

Proper support of persistent reservation for multipath devices requires
communication with the multipath daemon, so that the reservation is
registered and applied when a path comes up.  The device mapper
utilities provide a library to do so; this patch makes qemu-pr-helper.c
detect multipath devices and, when one is found, delegate the operation
to libmpathpersist.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile
configure
docs/pr-manager.rst
include/scsi/utils.h
scsi/qemu-pr-helper.c
scsi/utils.c