#2162 closed defect (fixed)

RFS file system : statvfs will report 1 block free when all blocks are used

Reported by: Alan Cudmore Owned by: Chris Johns
Priority: normal Milestone: 4.11
Component: fs Version: 4.11
Severity: normal Keywords:
Cc: gedare@… Blocked By:
Blocking:

Description

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.

Change History (5)

comment:1 Changed on 12/09/13 at 18:26:02 by Gedare Bloom

Cc: Gedare Bloom added
Component: cpukitfilesystem
Owner: changed from Joel Sherrill to Chris Johns

comment:2 Changed on 04/11/14 at 19:15:12 by Gedare Bloom

Milestone: 4.114.12

comment:4 Changed on 11/20/14 at 03:25:13 by Chris Johns

Milestone: 4.124.11

comment:5 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.