Paolo Bonzini | 58b3017 | 2018-06-28 18:01:42 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Persistent reservation manager - stub for non-Linux platforms |
| 3 | * |
| 4 | * Copyright (c) 2018 Red Hat, Inc. |
| 5 | * |
| 6 | * Author: Paolo Bonzini <pbonzini@redhat.com> |
| 7 | * |
| 8 | * This code is licensed under the LGPL. |
| 9 | * |
| 10 | */ |
| 11 | |
| 12 | #include "qemu/osdep.h" |
| 13 | #include "qapi/error.h" |
| 14 | #include "scsi/pr-manager.h" |
| 15 | #include "trace.h" |
| 16 | #include "qapi/qapi-types-block.h" |
| 17 | #include "qapi/qapi-commands-block.h" |
| 18 | |
| 19 | PRManager *pr_manager_lookup(const char *id, Error **errp) |
| 20 | { |
| 21 | /* The classes do not exist at all! */ |
| 22 | error_setg(errp, "No persistent reservation manager with id '%s'", id); |
| 23 | return NULL; |
| 24 | } |
Paolo Bonzini | 5f64089 | 2018-02-28 18:47:57 +0100 | [diff] [blame] | 25 | |
| 26 | |
| 27 | PRManagerInfoList *qmp_query_pr_managers(Error **errp) |
| 28 | { |
| 29 | return NULL; |
| 30 | } |