RTEMS | Ported LittleFS (!1064)

Joel Sherrill (@joel) gitlab at rtems.org
Tue Feb 17 20:31:41 UTC 2026




Joel Sherrill started a new discussion on cpukit/libfs/src/littlefs/rtems-littlefs-init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_142901

 > +  lfs_block_t block
 > +)
 > +{
 > +  rtems_littlefs_config_context_t *ctx;
 > +  off_t disk_offset;
 > +  ssize_t rc;
 > +
 > +  ctx = cfg->context;
 > +  if ( ctx == NULL || ctx->fd < 0 ) {
 > +    return LFS_ERR_INVAL;
 > +  }
 > +
 > +  disk_offset = ((off_t) block * (off_t) cfg->block_size);
 > +
 > +  if ( ctx->zero_buffer == NULL ) {
 > +    ctx->zero_buffer = calloc(cfg->block_size, 1);

Space inside parentheses.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_142901
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/20260217/3ec301fb/attachment-0001.htm>


More information about the bugs mailing list