aboutsummaryrefslogtreecommitdiff
path: root/scsi/pr-manager-stub.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-06-28 18:01:42 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-06-28 19:05:35 +0200
commit58b3017f7fba15e8c440115dfd5d380f490d0b61 (patch)
tree17343fbe37603d6778949d46a52935cf3eaf11c0 /scsi/pr-manager-stub.c
parentaad10040d411d21542dc9ae58a2854c89ccedd78 (diff)
downloadqemu-58b3017f7fba15e8c440115dfd5d380f490d0b61.zip
qemu-58b3017f7fba15e8c440115dfd5d380f490d0b61.tar.gz
qemu-58b3017f7fba15e8c440115dfd5d380f490d0b61.tar.bz2
pr-manager: put stubs in .c file
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scsi/pr-manager-stub.c')
-rw-r--r--scsi/pr-manager-stub.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/scsi/pr-manager-stub.c b/scsi/pr-manager-stub.c
new file mode 100644
index 0000000..632f17c
--- /dev/null
+++ b/scsi/pr-manager-stub.c
@@ -0,0 +1,24 @@
+/*
+ * Persistent reservation manager - stub for non-Linux platforms
+ *
+ * Copyright (c) 2018 Red Hat, Inc.
+ *
+ * Author: Paolo Bonzini <pbonzini@redhat.com>
+ *
+ * This code is licensed under the LGPL.
+ *
+ */
+
+#include "qemu/osdep.h"
+#include "qapi/error.h"
+#include "scsi/pr-manager.h"
+#include "trace.h"
+#include "qapi/qapi-types-block.h"
+#include "qapi/qapi-commands-block.h"
+
+PRManager *pr_manager_lookup(const char *id, Error **errp)
+{
+ /* The classes do not exist at all! */
+ error_setg(errp, "No persistent reservation manager with id '%s'", id);
+ return NULL;
+}