Add further debugging lines to domain lock manager

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2012-08-07 12:08:28 +01:00
parent 86f5457d49
commit 07143d84ba
1 changed files with 24 additions and 0 deletions

View File

@ -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;