a309b0a sanlock: add lvb feature

Authored and Committed by teigland 10 years ago
    sanlock: add lvb feature
    
    set_lvb and get_lvb allow up to a sector size of
    application specific data to be stored with a
    resource lease.  They are similar to the lvb
    feature found in the dlm.
    
    host 1:
    sanlock_acquire(ACQUIRE_LVB, r)
    application data written to lvb
    sanlock_set_lvb(r, lvb)
    sanlock_release(r)
    
    The lvb data is copied to the sanlock daemon in set_lvb,
    and written to the resource lease on disk in release.
    
    host 2:
    sanlock_acquire(ACQUIRE_LVB, r)
    sanlock_get_lvb(r, lvb)
    application data read from lvb
    sanlock_release(r)
    
    The lvb data is read by the sanlock daemon from disk
    in acquire, and copied to the application in get_lvb.
    
    Signed-off-by: David Teigland <teigland@redhat.com>
    
        
file modified
+104 -0
file modified
+81 -1
file modified
+17 -4
file modified
+145 -4
file modified
+4 -1
file modified
+2 -0
file modified
+9 -0
file modified
+2 -0
file added
+125