The init_lockspace/resource commands have been obsoleted, the new ones
are write_lockspace/resource.
Signed-off-by: Federico Simoncelli <fsimonce(a)redhat.com>
---
python/example.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/example.py b/python/example.py
index ef1c957..28b5180 100644
--- a/python/example.py
+++ b/python/example.py
@@ -19,10 +19,10 @@ def main():
fd = sanlock.register()
print "Initializing '%s'" % (LOCKSPACE_NAME,)
- sanlock.init_lockspace(LOCKSPACE_NAME, disk)
+ sanlock.write_lockspace(LOCKSPACE_NAME, disk)
print "Initializing '%s' on '%s'" % (RESOURCE_NAME,
LOCKSPACE_NAME)
- sanlock.init_resource(LOCKSPACE_NAME, RESOURCE_NAME, SNLK_DISKS)
+ sanlock.write_resource(LOCKSPACE_NAME, RESOURCE_NAME, SNLK_DISKS)
print "Acquiring the id '%i' on '%s'" % (HOST_ID,
LOCKSPACE_NAME)
sanlock.add_lockspace(LOCKSPACE_NAME, HOST_ID, disk)
--
1.7.1