ba967ae Bugzilla 220622: backport GFS2 statfs() implementation to GFS1.

Authored and Committed by Wendy Cheng 17 years ago
    Bugzilla 220622: backport GFS2 statfs() implementation to GFS1.
    
      There are few compromises made while porting GFS2 approach over, mostly
      to avoid on-disk structure changes. GFS2 allocates (number-of-nodes + 1)
      physical files into disk during mkfs time but GFS1 only has one extra
      space (the unused license file) for this purpose. We deviate from GFS2
      by writing the local per-node changes into a memory buffer.
    
      Doing a "df" on a quiet filesystem now results:
    
      dhcp145 (1 cpu HP): old df took 0.875 seconds, new df 0.008 second
      dhcp146 (4 cpus DELL): old df took 0.808 seconds, new df 0.006 second.
    
        
file modified
+13 -0
file modified
+8 -0
file modified
+11 -2
file modified
+19 -0
file modified
+4 -0
file modified
+202 -0
file modified
+4 -0