diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-02-28 18:47:57 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-06-28 19:05:35 +0200 |
commit | 5f64089416f0d77c87683401838f064c51a292ed (patch) | |
tree | 86fa253ee60b461df86c18121399139646ad9be0 /include/scsi | |
parent | 58b3017f7fba15e8c440115dfd5d380f490d0b61 (diff) | |
download | qemu-5f64089416f0d77c87683401838f064c51a292ed.zip |
pr-manager: add query-pr-managers QMP command
This command lets you query the connection status of each pr-manager-helper
object.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/pr-manager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/pr-manager.h b/include/scsi/pr-manager.h index 71971ae34a..50a77b08fc 100644 --- a/include/scsi/pr-manager.h +++ b/include/scsi/pr-manager.h @@ -33,8 +33,10 @@ typedef struct PRManagerClass { /* <public> */ int (*run)(PRManager *pr_mgr, int fd, struct sg_io_hdr *hdr); + bool (*is_connected)(PRManager *pr_mgr); } PRManagerClass; +bool pr_manager_is_connected(PRManager *pr_mgr); BlockAIOCB *pr_manager_execute(PRManager *pr_mgr, AioContext *ctx, int fd, struct sg_io_hdr *hdr, |