445e867 configurable sector size and align size

Authored and Committed by teigland 5 years ago
    configurable sector size and align size
    
    Through the library, set flags in the resource or
    lockspace structs corresponding to the desired
    sector size and align size.  Both flags should be
    set.  max_hosts is determined by this combination.
    
    From the command line, use -Z 512|4096 and -A 1M|2M|4M|8M.
    
    A lockspace and all the resources in that lockspace should
    use the same sector size and align size.  This is required
    when using the rindex.
    
    Both sector size and align size are recorded in the ondisk
    format for leases, and are set when a lockspace or
    resource is initially created.
    
    Accepted combinations are:
    
    ALIGN1M | SECTOR512: max_hosts 2000
    ALIGN1M | SECTOR4K:  max_hosts 250
    ALIGN2M | SECTOR4K:  max_hosts 500
    ALIGN4M | SECTOR4K:  max_hosts 1000
    ALIGN8M | SECTOR4K:  max_hosts 2000
    
    To create lockspaces/resources that can be used by sanlock
    version 3.6 and earlier:
    - on disks reporting sector size 512, use ALIGN1M | SECTOR512
    - on disks reporting sector size 4096, use ALIGN8M | SECTOR4K
    - on files use ALIGN1M | SECTOR512
    
    Other combinations will either not be usable, or will be
    corrupted if used by sanlock <= 3.6.
    
    (Also includes fixes for rindex.)
    
        
file modified
+2 -0
file modified
+44 -43
file modified
+36 -28
file modified
+6 -5
file modified
+148 -78
file modified
+2 -2
file modified
+7 -7
file modified
+26 -54
file modified
+2 -0
file modified
+16 -2
file modified
+54 -23
file modified
+90 -48
file modified
+46 -36
file modified
+1 -1
file modified
+38 -13
file modified
+112 -62
file modified
+33 -20
file modified
+47 -20
file modified
+18 -6
file modified
+47 -26
file modified
+3 -4
file modified
+4 -11
file modified
+3 -0
file added
+358
file added
+44