Google Summer of Code | IMFS - Improve Bytes Per Block Handling (#15)
Joel Sherrill (@joel)
gitlab at rtems.org
Wed May 14 21:48:21 UTC 2025
Joel Sherrill commented: https://gitlab.rtems.org/rtems/programs/gsoc/-/issues/15#note_122596
@gedare linked to one of the macros involved above. None of them include BLOCK_SIZE which explains why your search failed. Here's a bit of a roadmap to the code.
- [IMFS_MEMFILE_DEFAULT_BYTES_PER_BLOCK](https://docs.rtems.org/doxygen/main/group__IMFS.html#gae516a81a3c6a2b16c5063c2885be9dc5) is the default value
- [CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK](https://docs.rtems.org/docs/main/c-user/config/filesystem.html#configure-imfs-memfile-bytes-per-block)
These are used to set the variable `imfs_memfile_bytes_per_block` with this code [confdefs code](https://gitlab.rtems.org/rtems/rtos/rtems/-/blob/main/cpukit/include/rtems/confdefs/libio.h?ref_type=heads#L178)
I see two tests which exercise CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK
```
$ grep -r CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK
psxtests/psximfs01/init.c:#define CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK 16
psxtests/psximfs02/init.c:#define CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK MEMFILE_BYTES_PER_BLOCK
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/programs/gsoc/-/issues/15#note_122596
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250514/f4f220c0/attachment-0001.htm>
More information about the bugs
mailing list