ed4504a python: Support resource clearing

1 file Authored by nsoffer 7 years ago, Committed by teigland 7 years ago,
    python: Support resource clearing
    
    Add a clear kwarg to sanlock.write_resource(), using SANLK_WRITE_CLEAR
    to clear the resource.
    
    To clear a resource, you can do now:
    
        sanlock.write_resource("lockspace", "resource", [("/path/to/resource", 0)],
                               clear=True)
    
    Subsequent sanlock.read_resource() calls will return the regular error
    when a resource is not found.
    
    Signed-off-by: Nir Soffer <nsoffer@redhat.com>
    
        
file modified
+15 -7