Notice: We have migrated to GitLab launching 2024-05-01 see here:

#3476 assigned enhancement

IMFS - Improve Bytes Per Block Handling

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: Indefinite
Component: fs Version:
Severity: normal Keywords: SoC, API, small, filesystem
Cc: Blocked By:

Description (last modified by Joel Sherrill)

This ticket involves improvements to the IMFS bytes per block behavior. These changes will also need to be reflected in user facing documentation.

  • Currently, the behavior when presented when an invalid configuration value for bytes per block is to silently use the default. It is likely preferable to have a fatal error.
  • Allow for larger block sizes. When implemented, a block size of 512 which resulted in a maximum file size of 1GB was near unimaginable for an embedded system. Allowing for a maximum of at least 1K and possibly 2K seems reasonable now. Note that adding new block size options requires calculating the corresponding maximum file sizes and updating imfs.h and user facing documentation.

Possible Mentors: Joel Sherrill
Skills: C
Difficulty: Easy

Note: For a SoC project, this may be combined with #3477 to make a large project.

Change History (4)

comment:1 Changed on 02/04/22 at 18:49:06 by Gedare Bloom

Keywords: API small added

comment:2 Changed on 02/25/22 at 20:07:33 by Joel Sherrill

Description: modified (diff)
Keywords: filesystem added

comment:3 Changed on 02/25/22 at 20:11:10 by Joel Sherrill

Description: modified (diff)
Version: 5

comment:4 Changed on 02/17/24 at 05:10:43 by Gedare Bloom

Owner: set to Joel Sherrill
Status: newassigned
Note: See TracTickets for help on using tickets.