Commit b1f31cf0 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add gnt-debug wconfd listalllocksowners



...so that wconfd's point of view on locks can be debugged
directly.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent 21a9adce
......@@ -652,6 +652,12 @@ def Wconfd(opts, args): # pylint: disable=W0613
return 1
result = wconfd.Client().ListAllLocks()
print "Answer: %s" % (result,)
elif args[0] == "listalllocksowners":
if len(args) != 1:
ToStderr("Command 'listalllocks' takes no arguments.")
return 1
result = wconfd.Client().ListAllLocksOwners()
print "Answer: %s" % (result,)
else:
ToStderr("Command '%s' not supported", args[0])
return 1
......
......@@ -148,6 +148,12 @@ sent to WConfd and the answer is displayed.
A request to list all locks in use, directly or indirectly, is
sent to WConfd and the answer is displayed.
| **wconfd** listalllocks
A request to list all locks in use, directly or indirectly, together
with their respective direct owners is sent to WConfd and the answer
is displayed.
.. vim: set textwidth=72 :
.. Local Variables:
.. mode: rst
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment