Increasing IMFS_NAME_MAX value

Peter Dufault dufault at hda.com
Mon Jun 20 11:38:57 UTC 2011


On Jun 20, 2011, at 7:19 , Sebastien Bourdeauducq wrote:

> the file cpukit/libfs/src/imfs/imfs.h currently defines IMFS_NAME_MAX as
> 32. While this is fine for the system files that normally reside on the
> IMFS, the architecture of the RTEMS filesystem, on top of its numerous
> other flaws, implies that this limit also affects the files at the root
> of filesystems mounted on the IMFS. This is a serious issue on modern
> devices where the user can typically mount a SD card with long filenames
> on it.
> 
> Would it be possible to define this value to 128 to make the problem
> less visible?
> 
> The drawback is that IMFS will use more memory, as a buffer of size
> IMFS_NAME_MAX is allocated in the nodes. If this is a problem on some
> BSPs, can we make it configurable on a per-BSP basis?

I've changed it to allocate the space.  I'll assemble the patches once I've re-syncd with the HEAD.

Peter
-----------------
Peter Dufault
HD Associates, Inc.      Software and System Engineering





More information about the users mailing list