RTEMS | Ported LittleFS (!1064)

Harshit Shivhare (@002harshit) gitlab at rtems.org
Tue Mar 31 10:43:44 UTC 2026




Harshit Shivhare commented on a discussion on cpukit/libfs/src/littlefs/rtems-littlefs-file.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_147595

 > +  if ( rtems_libio_iop_is_append( iop ) ) {
 > +    iop->offset = rc;
 > +  }
 > +
 > +  prev_pos = lfs_file_tell( lfs, &node->file_handle );
 > +  if ( prev_pos < 0 ) {
 > +    rtems_littlefs_unlock( mt_entry );
 > +    errno = rtems_littlefs_to_posix_error( prev_pos );
 > +    return -1;
 > +  }
 > +
 > +  rc = lfs_file_write( lfs, &node->file_handle, buffer, write_size );
 > +
 > +  if ( rc < 0 ) {
 > +    if ( rc == LFS_ERR_NOSPC ) {
 > +      // INFO: Clearing LFS_F_ERRED flag because it causes lfs_file_sync to return early

will change that to /\*\*/ in next commit

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_147595
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/20260331/1617713c/attachment-0001.htm>


More information about the bugs mailing list