[PATCH v1 14/23] lock_driver_nop: Implement remember and recall APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]