Opened on 12/09/13 at 16:42:28
Closed on 04/21/14 at 15:08:28
#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: | cpukit → filesystem |
Owner: | changed from Joel Sherrill to Chris Johns |
comment:2 Changed on 04/11/14 at 19:15:12 by Gedare Bloom
Milestone: | 4.11 → 4.12 |
---|
comment:3 Changed on 04/21/14 at 15:08:28 by Gedare Bloom
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed on 11/20/14 at 03:25:13 by Chris Johns
Milestone: | 4.12 → 4.11 |
---|
comment:5 Changed on 11/24/14 at 18:58:28 by Gedare Bloom
Version: | HEAD → 4.11 |
---|
Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11
Note: See
TracTickets for help on using
tickets.
http://git.rtems.org/rtems/commit/?id=9b48dc67ed57f31c00b2e4351a30fac947472899