[Bugs] [Bug 1533736] posix_statfs returns incorrect f_bfree values if brick is full.

bugzilla at redhat.com bugzilla at redhat.com
Fri Jan 12 05:20:49 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1533736

Nithya Balachandran <nbalacha at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|bugs at gluster.org            |nbalacha at redhat.com



--- Comment #1 from Nithya Balachandran <nbalacha at redhat.com> ---

In posix_statfs:

   ...                                                                          
        percent = priv->disk_reserve;                                           
        buf.f_bfree = (buf.f_bfree - ((buf.f_blocks * percent) / 100)); 

This becomes a negative value if buf.f_bfree is 0 (brick is full).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list