RTEMS | Ported LittleFS (!1064)

Gedare Bloom (@gedare) gitlab at rtems.org
Mon Mar 30 19:57:03 UTC 2026




Gedare Bloom started a new discussion on cpukit/libfs/src/littlefs/rtems-littlefs-dir.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_147509

 > +                                 node->path,
 > +                                 info.name,
 > +                                 strlen( info.name ) );
 > +  if ( rc < 0 ) {
 > +    free( full_path );
 > +    rtems_littlefs_unlock( mt_entry );
 > +    return -1;
 > +  }
 > +
 > +  dp->d_ino = rtems_littlefs_hash_path( full_path );
 > +  free( full_path );
 > +
 > +  dp->d_off = iop->offset;
 > +  dp->d_reclen = sizeof( struct dirent );
 > +
 > +  size_t name_len = strlen( info.name );

declare all variables at the start of their scope.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_147509
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/20260330/70099181/attachment-0001.htm>


More information about the bugs mailing list