64026d2 sanlock: write lease with clear flag

Authored and Committed by teigland 7 years ago
    sanlock: write lease with clear flag
    
    Add the flag SANLK_WRITE_CLEAR to sanlock_write_resource()
    which causes the resource lease on disk to be written without
    the standard magic number.  This causes a subsequent
    sanlock_read_resource() to return the error -223/SANLK_LEADER_MAGIC
    indicating that no valid lease exists at that location.
    
    This can be used by an application to indicate that the lease area
    on disk is available to be reused for a new resource lease.  (An
    application can continue to use a special resource name of its own
    choosing to implement the same effect.)
    
        
file modified
+8 -2
file modified
+19 -18
file modified
+1 -1
file modified
+5 -3
file modified
+2 -1
file modified
+7 -3
file modified
+13 -3
file modified
+1 -1
file modified
+2 -1
file modified
+6 -0
file modified
+1 -0