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.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to