c5a3035 sanlock: io timeout related changes

Authored and Committed by teigland 14 years ago
    sanlock: io timeout related changes
    
    - the default io timeout is now 10 seconds, which
      impacts the other default timeouts as well
    
    - add an io timeout arg to the libsanlock_direct functions;
      this is especially important for the live_id() function
      which is based on knowing the timeout for a host to be
      dead or alive.  For this to return the correct result, the
      sanlock daemon and live_id() must be using the same io
      timeout
    
    - the -o option sets the io timeout seconds, no others;
      derive all other timeouts from that
    
    - remove the final read in the delta lease renewal function
      since the first read in the next renewal should effectively
      do the same thing.
    
    - allow a long timeout for the renewal write since there's
      no point in letting it timeout, and timing out is probably
      counter productive
    
    - verify our host_id generation also matches when we reread in
      renew to verify we still hold the host_id
    
    - add long comment about timeouts and max/min duration of
      various functions
    
        
file modified
+2 -0
file modified
+71 -23
file modified
+3 -0
file modified
+4 -1
file modified
+16 -49
file modified
+2 -1
file modified
+33 -20
file modified
+42 -106
file modified
+7 -7
file modified
+4 -2
file modified
+239 -71
file added
+129
file added
+16
file modified
+4 -2
file modified
+5 -11