RTEMS | Ported LittleFS (!1064)
Gedare Bloom (@gedare)
gitlab at rtems.org
Mon Mar 30 20:03:09 UTC 2026
Gedare Bloom started a new discussion on cpukit/libfs/src/littlefs/rtems-littlefs-file.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_147514
> + 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
we don't use `//` comment style
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1064#note_147514
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/91d51bd3/attachment-0001.htm>
More information about the bugs
mailing list