#2431 closed defect (fixed)

Add documentation and error checking for CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: low Milestone: 4.10.3
Component: fs Version: 4.10
Severity: minor Keywords:
Cc: Blocked By:
Blocking:

Description

When CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK was set to an invalid value, the startup code would silently use the default value of 128 bytes. In investigating why configuring 1024 byte block size did not work, I discovered that the maximum size was 512 and that there was no way for a user to know that they had configured an incorrect value. Beyond that, I discovered that there was no documentation outside the code of this configuration parameter or its valid values. This patch:

  • adds error checking to confdefs.h
  • adds documentation to the User's Guide
  • fixes an incorrect value in a test

Change History (2)

comment:1 Changed on Oct 27, 2015 at 12:32:18 PM by Joel Sherrill <joel.sherrill@…>

Resolution: fixed
Status: newclosed

In 69be1a222ae173e5cdd5c3cc47eab78e65299c72/rtems:

CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK was undocumented and not error checked

closes #2431.

comment:2 Changed on Oct 27, 2015 at 12:33:18 PM by Joel Sherrill <joel.sherrill@…>

In cb9bb9d13f5bb64634b36281589ae902bd3c0490/rtems:

CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK was undocumented and not error checked

closes #2431.

Note: See TracTickets for help on using tickets.