Changeset 1330

Show
Ignore:
Timestamp:
10/18/09 08:12:34 (6 weeks ago)
Author:
dormando
Message:

Use actual available disk space.

The disk avail calculations were throwing out the actual available disk space
stat. Now we reduce the total to the actual available disk space... A future
fix should add 'available' to the device column and just use that.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/Mogstored/ChildProcess/DiskUsage.pm

    r1056 r1330  
    5858            } 
    5959 
     60            # FIXME: We're stupidly throwing away the 'avail' value here. 
     61            # This causes mogilefs to run aground when used with ext 
     62            # partitions using reserved space. Drop the reserved space from 
     63            # the total, and in the future add available to the device table 
     64            # and just use that. 
     65            $total = $used + $avail; 
     66 
    6067            # create string to print 
    6168            my $now = time;