History | View | Annotate | Download (2.2 kB)
Add a function to load lock allocation from disk
Lock allocation are stored on disk as their JSON representation.
Signed-off-by: Klaus Aehlig <aehlig@google.com>Reviewed-by: Petr Pudlak <pudlak@google.com>
Make Locks a JSON instance
As requests to acquire or release locks come viainter-process communication, we need a serializationof the locks data type.
All locks are serialised as JSON objects, where thekey "type" describes the type of lock, and the remaining...
Make GanetiLocks an instance of Lock
Add a module for the Ganeti lock structure
Already provide a module holding the structure of the locksavailable in Ganeti, so that the overall structure of WConfDcan be implemented. The actual locks still have to be added.
Signed-off-by: Klaus Aehlig <aehlig@google.com>...