[Bug 2162] New: RFS file system : statvfs will report 1 block free when all blocks are used

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Mon Dec 9 17:42:28 UTC 2013


https://www.rtems.org/bugzilla/show_bug.cgi?id=2162

             Bug #: 2162
           Summary: RFS file system : statvfs will report 1 block free
                    when all blocks are used
    Classification: Unclassified
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: Alan.P.Cudmore at nasa.gov


The RTEMS file system ( RFS ) reports free blocks in the statvfs call. The call
will never report less than 1 block, even if all of the space is used. 

The problem is that the total number of blocks includes the superblock and that
is not accounted for in the free space calculation. 

The problem can be fixed by subtracting 1 from the total number of free blocks
in the statvfs call and in the debugrfs/data shell command, but a more elegant
solution might exist such as storing the superblock within each group.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list