From: "Daniel P. Berrange" <berrange@xxxxxxxxxx> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> --- src/locking/domain_lock.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/locking/domain_lock.c b/src/locking/domain_lock.c index ba49f9c..4ac16f2 100644 --- a/src/locking/domain_lock.c +++ b/src/locking/domain_lock.c @@ -160,6 +160,9 @@ int virDomainLockProcessStart(virLockManagerPluginPtr plugin, int ret; int flags = VIR_LOCK_MANAGER_ACQUIRE_RESTRICT; + VIR_DEBUG("plugin=%p dom=%p paused=%d fd=%p", + plugin, dom, paused, fd); + if (!(lock = virDomainLockManagerNew(plugin, dom, true))) return -1; @@ -180,6 +183,9 @@ int virDomainLockProcessPause(virLockManagerPluginPtr plugin, virLockManagerPtr lock; int ret; + VIR_DEBUG("plugin=%p dom=%p state=%p", + plugin, dom, state); + if (!(lock = virDomainLockManagerNew(plugin, dom, true))) return -1; @@ -196,6 +202,9 @@ int virDomainLockProcessResume(virLockManagerPluginPtr plugin, virLockManagerPtr lock; int ret; + VIR_DEBUG("plugin=%p dom=%p state=%s", + plugin, dom, NULLSTR(state)); + if (!(lock = virDomainLockManagerNew(plugin, dom, true))) return -1; @@ -212,6 +221,9 @@ int virDomainLockProcessInquire(virLockManagerPluginPtr plugin, virLockManagerPtr lock; int ret; + VIR_DEBUG("plugin=%p dom=%p state=%p", + plugin, dom, state); + if (!(lock = virDomainLockManagerNew(plugin, dom, true))) return -1; @@ -229,6 +241,9 @@ int virDomainLockDiskAttach(virLockManagerPluginPtr plugin, virLockManagerPtr lock; int ret = -1; + VIR_DEBUG("plugin=%p dom=%p disk=%p", + plugin, dom, disk); + if (!(lock = virDomainLockManagerNew(plugin, dom, false))) return -1; @@ -253,6 +268,9 @@ int virDomainLockDiskDetach(virLockManagerPluginPtr plugin, virLockManagerPtr lock; int ret = -1; + VIR_DEBUG("plugin=%p dom=%p disk=%p", + plugin, dom, disk); + if (!(lock = virDomainLockManagerNew(plugin, dom, false))) return -1; @@ -278,6 +296,9 @@ int virDomainLockLeaseAttach(virLockManagerPluginPtr plugin, virLockManagerPtr lock; int ret = -1; + VIR_DEBUG("plugin=%p dom=%p lease=%p", + plugin, dom, lease); + if (!(lock = virDomainLockManagerNew(plugin, dom, false))) return -1; @@ -302,6 +323,9 @@ int virDomainLockLeaseDetach(virLockManagerPluginPtr plugin, virLockManagerPtr lock; int ret = -1; + VIR_DEBUG("plugin=%p dom=%p lease=%p", + plugin, dom, lease); + if (!(lock = virDomainLockManagerNew(plugin, dom, false))) return -1; -- 1.7.11.2 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list