Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/locking/lock_driver_nop.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/locking/lock_driver_nop.c b/src/locking/lock_driver_nop.c
index 93a988e..89aad3a 100644
--- a/src/locking/lock_driver_nop.c
+++ b/src/locking/lock_driver_nop.c
@@ -101,6 +101,27 @@ static void virLockManagerNopFree(virLockManagerPtr lock
ATTRIBUTE_UNUSED)
{
}
+static int
+virLockManagerNopRemember(virLockManagerPtr lock ATTRIBUTE_UNUSED,
+ const char *path ATTRIBUTE_UNUSED,
+ const char *model ATTRIBUTE_UNUSED,
+ const char *label ATTRIBUTE_UNUSED)
+{
+ return 0;
+}
+
+static int
+virLockManagerNopRecall(virLockManagerPtr lock ATTRIBUTE_UNUSED,
+ const char *path ATTRIBUTE_UNUSED,
+ const char *model ATTRIBUTE_UNUSED,
+ char **label)
+{
+ if (label)
+ *label = NULL;
+
+ return 0;
+}
+
virLockDriver virLockDriverNop =
{
.version = VIR_LOCK_MANAGER_VERSION,
@@ -118,4 +139,7 @@ virLockDriver virLockDriverNop =
.drvRelease = virLockManagerNopRelease,
.drvInquire = virLockManagerNopInquire,
+
+ .drvRemember = virLockManagerNopRemember,
+ .drvRecall = virLockManagerNopRecall,
};
--
2.4.9