mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Add further debugging lines to domain lock manager
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
86f5457d49
commit
07143d84ba
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user