Add LogicalUnit.DeclareLocks
authorGuido Trotter <ultrotter@google.com>
Wed, 30 Jul 2008 11:29:51 +0000 (11:29 +0000)
committerGuido Trotter <ultrotter@google.com>
Wed, 30 Jul 2008 11:29:51 +0000 (11:29 +0000)
commitfb8dcb621e42b7b44c48573a89d17795081fb3db
tree81a81d6067e7c9d28e0a36f179e10e42e57028e7
parent74b5913febef175012e3d799b8839930b2c490e4
Add LogicalUnit.DeclareLocks

This additional LogicalUnit function is optional to implement, but lets
you change your locking needs for one level just before locking it, but
after the previous levels have been already locked. It is useful for
example to calculate what nodes to lock after locking an instance.

Reviewed-by: iustinp
lib/cmdlib.py
lib/mcpu.py